OpenVDB  11.0.0
Public Types | Public Member Functions | List of all members
BitFlags< N > Class Template Reference

#include <nanovdb/NanoVDB.h>

Inherits BitArray< N >.

Public Types

using Type = decltype(mFlags)
 

Public Member Functions

 BitFlags ()
 
 BitFlags (std::initializer_list< uint8_t > list)
 
template<typename MaskT >
 BitFlags (std::initializer_list< MaskT > list)
 
Type data () const
 
Typedata ()
 
void initBit (std::initializer_list< uint8_t > list)
 
template<typename MaskT >
void initMask (std::initializer_list< MaskT > list)
 
Type getFlags () const
 
void setOn ()
 
void setOff ()
 
void setBitOn (uint8_t bit)
 
void setBitOff (uint8_t bit)
 
void setBitOn (std::initializer_list< uint8_t > list)
 
void setBitOff (std::initializer_list< uint8_t > list)
 
template<typename MaskT >
void setMaskOn (MaskT mask)
 
template<typename MaskT >
void setMaskOff (MaskT mask)
 
template<typename MaskT >
void setMaskOn (std::initializer_list< MaskT > list)
 
template<typename MaskT >
void setMaskOff (std::initializer_list< MaskT > list)
 
void setBit (uint8_t bit, bool on)
 
template<typename MaskT >
void setMask (MaskT mask, bool on)
 
bool isOn () const
 
bool isOff () const
 
bool isBitOn (uint8_t bit) const
 
bool isBitOff (uint8_t bit) const
 
template<typename MaskT >
bool isMaskOn (MaskT mask) const
 
template<typename MaskT >
bool isMaskOff (MaskT mask) const
 
template<typename MaskT >
bool isMaskOn (std::initializer_list< MaskT > list) const
 return true if any of the masks in the list are on More...
 
template<typename MaskT >
bool isMaskOff (std::initializer_list< MaskT > list) const
 return true if any of the masks in the list are off More...
 
BitFlagsoperator= (Type n)
 required for backwards compatibility More...
 

Member Typedef Documentation

using Type = decltype(mFlags)

Constructor & Destructor Documentation

BitFlags ( )
inline
BitFlags ( std::initializer_list< uint8_t >  list)
inline
BitFlags ( std::initializer_list< MaskT >  list)
inline

Member Function Documentation

Type data ( ) const
inline
Type& data ( )
inline
Type getFlags ( ) const
inline
void initBit ( std::initializer_list< uint8_t >  list)
inline
void initMask ( std::initializer_list< MaskT >  list)
inline
bool isBitOff ( uint8_t  bit) const
inline
bool isBitOn ( uint8_t  bit) const
inline
bool isMaskOff ( MaskT  mask) const
inline
bool isMaskOff ( std::initializer_list< MaskT >  list) const
inline

return true if any of the masks in the list are off

bool isMaskOn ( MaskT  mask) const
inline
bool isMaskOn ( std::initializer_list< MaskT >  list) const
inline

return true if any of the masks in the list are on

bool isOff ( ) const
inline
bool isOn ( ) const
inline
BitFlags& operator= ( Type  n)
inline

required for backwards compatibility

void setBit ( uint8_t  bit,
bool  on 
)
inline
void setBitOff ( uint8_t  bit)
inline
void setBitOff ( std::initializer_list< uint8_t >  list)
inline
void setBitOn ( uint8_t  bit)
inline
void setBitOn ( std::initializer_list< uint8_t >  list)
inline
void setMask ( MaskT  mask,
bool  on 
)
inline
void setMaskOff ( MaskT  mask)
inline
void setMaskOff ( std::initializer_list< MaskT >  list)
inline
void setMaskOn ( MaskT  mask)
inline
void setMaskOn ( std::initializer_list< MaskT >  list)
inline
void setOff ( )
inline
void setOn ( )
inline