OpenVDB  0.104.0
Classes | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
NodeMask< Log2Dim > Class Template Reference

#include <NodeMasks.h>

Classes

class  BaseIterator
 
class  DenseIterator
 
class  OffIterator
 
class  OnIterator
 

Public Member Functions

 BOOST_STATIC_ASSERT (Log2Dim >1)
 
 NodeMask ()
 
 NodeMask (bool on)
 
 NodeMask (const NodeMask &B)
 
 ~NodeMask ()
 
void operator= (const NodeMask &B)
 
OnIterator beginOn () const
 
OnIterator endOn () const
 
OffIterator beginOff () const
 
OffIterator endOff () const
 
DenseIterator beginDense () const
 
DenseIterator endDense () const
 
bool operator== (const NodeMask &B) const
 
bool operator!= (const NodeMask &B) const
 
NodeMask operator! () const
 
const NodeMaskoperator&= (const NodeMask &other)
 
const NodeMaskoperator|= (const NodeMask &other)
 
const NodeMaskoperator^= (const NodeMask &other)
 
NodeMask operator& (const NodeMask &other) const
 
NodeMask operator| (const NodeMask &other) const
 
NodeMask operator^ (const NodeMask &other) const
 
Index32 getMemUsage () const
 
Index32 countOn () const
 
Index32 countOff () const
 
void setOn (Index32 i)
 
void setOff (Index32 i)
 
void set (Index32 i, bool On)
 
void set (bool On)
 
void setOn ()
 
void setOff ()
 
void toggle (Index32 i)
 
void toggle ()
 
void setFirstOn ()
 
void setLastOn ()
 
void setFirstOff ()
 
void setLastOff ()
 
bool isOn (Index32 i) const
 
bool isOff (Index32 i) const
 
bool isOn () const
 
bool isOff () const
 
Index32 findFirstOn () const
 
Index32 findFirstOff () const
 
void save (std::ostream &os) const
 
void load (std::istream &is)
 
void printInfo (std::ostream &os=std::cout) const
 simple print method for debugging More...
 
void printBits (std::ostream &os=std::cout, Index32 max_out=80u) const
 
void printAll (std::ostream &os=std::cout, Index32 max_out=80u) const
 
Index32 findNextOn (Index32 start) const
 
Index32 findNextOff (Index32 start) const
 
Index32 memUsage () const
 
template<typename WordT >
WordT getWord (Index n) const
 
template<typename WordT >
WordT & getWord (Index n)
 

Static Public Attributes

static const Index32 LOG2DIM = Log2Dim
 
static const Index32 DIM = 1<<Log2Dim
 
static const Index32 BIT_SIZE = 1<<3*Log2Dim
 
static const Index32 INT_SIZE = (1<<(3*Log2Dim-3))>>2
 

Protected Attributes

Index32 mBits [INT_SIZE]
 

Constructor & Destructor Documentation

NodeMask ( )
inline
NodeMask ( bool  on)
inline
NodeMask ( const NodeMask< Log2Dim > &  B)
inline
~NodeMask ( )
inline

Member Function Documentation

DenseIterator beginDense ( ) const
inline
OffIterator beginOff ( ) const
inline
OnIterator beginOn ( ) const
inline
BOOST_STATIC_ASSERT ( Log2Dim  ,
 
)
Index32 countOff ( ) const
inline
Index32 countOn ( ) const
inline
DenseIterator endDense ( ) const
inline
OffIterator endOff ( ) const
inline
OnIterator endOn ( ) const
inline
Index32 findFirstOff ( ) const
inline
Index32 findFirstOn ( ) const
inline
Index32 findNextOff ( Index32  start) const
inline
Index32 findNextOn ( Index32  start) const
inline
Index32 getMemUsage ( ) const
inline
WordT getWord ( Index  n) const
inline
Returns
the nth word of the bit mask, for a word of arbitrary size.
WordT& getWord ( Index  n)
inline
Returns
the nth word of the bit mask, for a word of arbitrary size.
bool isOff ( Index32  i) const
inline
bool isOff ( ) const
inline
bool isOn ( Index32  i) const
inline
bool isOn ( ) const
inline
void load ( std::istream &  is)
inline
Index32 memUsage ( ) const
inline
NodeMask operator! ( ) const
inline
bool operator!= ( const NodeMask< Log2Dim > &  B) const
inline
NodeMask operator& ( const NodeMask< Log2Dim > &  other) const
inline
const NodeMask& operator&= ( const NodeMask< Log2Dim > &  other)
inline
void operator= ( const NodeMask< Log2Dim > &  B)
inline
bool operator== ( const NodeMask< Log2Dim > &  B) const
inline
NodeMask operator^ ( const NodeMask< Log2Dim > &  other) const
inline
const NodeMask& operator^= ( const NodeMask< Log2Dim > &  other)
inline
NodeMask operator| ( const NodeMask< Log2Dim > &  other) const
inline
const NodeMask& operator|= ( const NodeMask< Log2Dim > &  other)
inline
void printAll ( std::ostream &  os = std::cout,
Index32  max_out = 80u 
) const
inline
void printBits ( std::ostream &  os = std::cout,
Index32  max_out = 80u 
) const
inline
void printInfo ( std::ostream &  os = std::cout) const
inline

simple print method for debugging

void save ( std::ostream &  os) const
inline
void set ( Index32  i,
bool  On 
)
inline
void set ( bool  On)
inline
void setFirstOff ( )
inline
void setFirstOn ( )
inline
void setLastOff ( )
inline
void setLastOn ( )
inline
void setOff ( Index32  i)
inline
void setOff ( )
inline
void setOn ( Index32  i)
inline
void setOn ( )
inline
void toggle ( Index32  i)
inline
void toggle ( )
inline

Member Data Documentation

const Index32 BIT_SIZE = 1<<3*Log2Dim
static
const Index32 DIM = 1<<Log2Dim
static
const Index32 INT_SIZE = (1<<(3*Log2Dim-3))>>2
static
const Index32 LOG2DIM = Log2Dim
static
Index32 mBits[INT_SIZE]
protected

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