VTK-m
2.2
|
A bitmap to serve different needs. More...
#include <Bitset.h>
Public Member Functions | |
void | set (vtkm::Id bitIndex) |
void | set (vtkm::Id bitIndex, bool val) |
void | reset (vtkm::Id bitIndex) |
void | toggle (vtkm::Id bitIndex) |
bool | test (vtkm::Id bitIndex) const |
bool | operator== (const vtkm::Bitset< MaskType > &otherBitset) const |
Private Attributes | |
MaskType | Mask = 0 |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |