HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::BitFlags< N > Class Template Reference

#include <NanoVDB.h>

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

Detailed Description

template<int N>
class nanovdb::BitFlags< N >

Definition at line 2689 of file NanoVDB.h.

Member Typedef Documentation

template<int N>
using nanovdb::BitFlags< N >::Type = decltype(mFlags)

Definition at line 2695 of file NanoVDB.h.

Constructor & Destructor Documentation

template<int N>
nanovdb::BitFlags< N >::BitFlags ( )
inline

Definition at line 2696 of file NanoVDB.h.

template<int N>
nanovdb::BitFlags< N >::BitFlags ( std::initializer_list< uint8_t >  list)
inline

Definition at line 2697 of file NanoVDB.h.

template<int N>
template<typename MaskT >
nanovdb::BitFlags< N >::BitFlags ( std::initializer_list< MaskT >  list)
inline

Definition at line 2703 of file NanoVDB.h.

Member Function Documentation

template<int N>
__hostdev__ Type nanovdb::BitFlags< N >::data ( ) const
inline

Definition at line 2708 of file NanoVDB.h.

template<int N>
__hostdev__ Type& nanovdb::BitFlags< N >::data ( )
inline

Definition at line 2709 of file NanoVDB.h.

template<int N>
__hostdev__ Type nanovdb::BitFlags< N >::getFlags ( ) const
inline

Definition at line 2725 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::initBit ( std::initializer_list< uint8_t >  list)
inline

Definition at line 2710 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ void nanovdb::BitFlags< N >::initMask ( std::initializer_list< MaskT >  list)
inline

Definition at line 2717 of file NanoVDB.h.

template<int N>
__hostdev__ bool nanovdb::BitFlags< N >::isBitOff ( uint8_t  bit) const
inline

Definition at line 2769 of file NanoVDB.h.

template<int N>
__hostdev__ bool nanovdb::BitFlags< N >::isBitOn ( uint8_t  bit) const
inline

Definition at line 2768 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ bool nanovdb::BitFlags< N >::isMaskOff ( MaskT  mask) const
inline

Definition at line 2773 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ bool nanovdb::BitFlags< N >::isMaskOff ( std::initializer_list< MaskT >  list) const
inline

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

Definition at line 2785 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ bool nanovdb::BitFlags< N >::isMaskOn ( MaskT  mask) const
inline

Definition at line 2771 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ bool nanovdb::BitFlags< N >::isMaskOn ( std::initializer_list< MaskT >  list) const
inline

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

Definition at line 2776 of file NanoVDB.h.

template<int N>
__hostdev__ bool nanovdb::BitFlags< N >::isOff ( ) const
inline

Definition at line 2767 of file NanoVDB.h.

template<int N>
__hostdev__ bool nanovdb::BitFlags< N >::isOn ( ) const
inline

Definition at line 2766 of file NanoVDB.h.

template<int N>
__hostdev__ BitFlags& nanovdb::BitFlags< N >::operator= ( Type  n)
inline

required for backwards compatibility

Definition at line 2793 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setBit ( uint8_t  bit,
bool  on 
)
inline

Definition at line 2762 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setBitOff ( uint8_t  bit)
inline

Definition at line 2731 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setBitOff ( std::initializer_list< uint8_t >  list)
inline

Definition at line 2738 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setBitOn ( uint8_t  bit)
inline

Definition at line 2730 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setBitOn ( std::initializer_list< uint8_t >  list)
inline

Definition at line 2733 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ void nanovdb::BitFlags< N >::setMask ( MaskT  mask,
bool  on 
)
inline

Definition at line 2764 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ void nanovdb::BitFlags< N >::setMaskOff ( MaskT  mask)
inline

Definition at line 2747 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ void nanovdb::BitFlags< N >::setMaskOff ( std::initializer_list< MaskT >  list)
inline

Definition at line 2756 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ void nanovdb::BitFlags< N >::setMaskOn ( MaskT  mask)
inline

Definition at line 2745 of file NanoVDB.h.

template<int N>
template<typename MaskT >
__hostdev__ void nanovdb::BitFlags< N >::setMaskOn ( std::initializer_list< MaskT >  list)
inline

Definition at line 2750 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setOff ( )
inline

Definition at line 2728 of file NanoVDB.h.

template<int N>
__hostdev__ void nanovdb::BitFlags< N >::setOn ( )
inline

Definition at line 2727 of file NanoVDB.h.


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