Bit-mask to encode active states and facilitate sequential iterators and a fast codec for I/O compression.
More...
|
| uint32_t | countOn () const |
| | Return the total number of set bits in this Mask.
|
| uint32_t | countOn (uint32_t i) const |
| | Return the number of lower set bits in mask up to but excluding the i'th bit.
|
| OnIterator | beginOn () const |
| OffIterator | beginOff () const |
| DenseIterator | beginAll () const |
| | Mask () |
| | Initialize all bits to zero.
|
| | Mask (bool on) |
| | Mask (const Mask &)=default |
| | Copy constructor.
|
| uint64_t * | words () |
| | Return a pointer to the list of words of the bit mask.
|
| const uint64_t * | words () const |
| template<typename WordT> |
| WordT | getWord (uint32_t n) const |
| template<typename WordT> |
| void | setWord (WordT w, uint32_t n) |
| template<typename MaskT = Mask> |
| util::enable_if<!util::is_same< MaskT, Mask >::value, Mask & >::type | operator= (const MaskT &other) |
| | Assignment operator that works with openvdb::util::NodeMask.
|
| Mask & | operator= (const Mask &)=default |
| bool | operator== (const Mask &other) const |
| bool | operator!= (const Mask &other) const |
| bool | isOn (uint32_t n) const |
| | Return true if the given bit is set.
|
| bool | isOff (uint32_t n) const |
| | Return true if the given bit is NOT set.
|
| bool | isOn () const |
| | Return true if all the bits are set in this Mask.
|
| bool | isOff () const |
| | Return true if none of the bits are set in this Mask.
|
| void | setOn (uint32_t n) |
| | Set the specified bit on.
|
| void | setOff (uint32_t n) |
| | Set the specified bit off.
|
| void | setOnAtomic (uint32_t n) |
| void | setOffAtomic (uint32_t n) |
| void | setAtomic (uint32_t n, bool on) |
| void | set (uint32_t n, bool on) |
| | Set the specified bit on or off.
|
| void | setOn () |
| | Set all bits on.
|
| void | setOff () |
| | Set all bits off.
|
| void | set (bool on) |
| | Set all bits off.
|
| void | toggle () |
| | brief Toggle the state of all bits in the mask
|
| void | toggle (uint32_t n) |
| Mask & | operator&= (const Mask &other) |
| | Bitwise intersection.
|
| Mask & | operator|= (const Mask &other) |
| | Bitwise union.
|
| Mask & | operator-= (const Mask &other) |
| | Bitwise difference.
|
| Mask & | operator^= (const Mask &other) |
| | Bitwise XOR.
|
| template<bool ON> |
| uint32_t | findFirst () const |
| template<bool ON> |
| uint32_t | findNext (uint32_t start) const |
| template<bool ON> |
| uint32_t | findPrev (uint32_t start) const |
template<uint32_t LOG2DIM>
class nanovdb::Mask< LOG2DIM >
Bit-mask to encode active states and facilitate sequential iterators and a fast codec for I/O compression.