VTK-m  2.0
Public Member Functions | Private Attributes | List of all members
vtkm::Bitset< MaskType > Struct Template Reference

A bitmap to serve different needs. More...

#include <Bitset.h>

Public Member Functions

VTKM_EXEC_CONT void set (vtkm::Id bitIndex)
 
VTKM_EXEC_CONT void set (vtkm::Id bitIndex, bool val)
 
VTKM_EXEC_CONT void reset (vtkm::Id bitIndex)
 
VTKM_EXEC_CONT void toggle (vtkm::Id bitIndex)
 
VTKM_EXEC_CONT bool test (vtkm::Id bitIndex) const
 
VTKM_EXEC_CONT bool operator== (const vtkm::Bitset< MaskType > &otherBitset) const
 

Private Attributes

MaskType Mask = 0
 

Detailed Description

template<typename MaskType>
struct vtkm::Bitset< MaskType >

A bitmap to serve different needs.

Ex. Editing particular bits in a byte(s), checkint if particular bit values are present or not. Once Cuda supports std::bitset, we should use the standard one if possible. Additional cast in logical operations are required to avoid compiler warnings when using 16 or 8 bit MaskType.

Member Function Documentation

◆ operator==()

template<typename MaskType >
VTKM_EXEC_CONT bool vtkm::Bitset< MaskType >::operator== ( const vtkm::Bitset< MaskType > &  otherBitset) const
inline

◆ reset()

template<typename MaskType >
VTKM_EXEC_CONT void vtkm::Bitset< MaskType >::reset ( vtkm::Id  bitIndex)
inline

◆ set() [1/2]

template<typename MaskType >
VTKM_EXEC_CONT void vtkm::Bitset< MaskType >::set ( vtkm::Id  bitIndex)
inline

◆ set() [2/2]

template<typename MaskType >
VTKM_EXEC_CONT void vtkm::Bitset< MaskType >::set ( vtkm::Id  bitIndex,
bool  val 
)
inline

◆ test()

template<typename MaskType >
VTKM_EXEC_CONT bool vtkm::Bitset< MaskType >::test ( vtkm::Id  bitIndex) const
inline

◆ toggle()

template<typename MaskType >
VTKM_EXEC_CONT void vtkm::Bitset< MaskType >::toggle ( vtkm::Id  bitIndex)
inline

Member Data Documentation

◆ Mask

template<typename MaskType >
MaskType vtkm::Bitset< MaskType >::Mask = 0
private

The documentation for this struct was generated from the following file: