OpenVDB  3.2.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
LeafNode< ValueMask, Log2Dim >::Buffer Class Reference

#include <LeafNodeMask.h>

Public Types

typedef NodeMaskType::Word WordType
 

Public Member Functions

 Buffer ()
 
 Buffer (bool on)
 
 Buffer (const NodeMaskType &other)
 
 Buffer (const Buffer &other)
 
 ~Buffer ()
 
void fill (bool val)
 
Bufferoperator= (const Buffer &b)
 
const bool & getValue (Index i) const
 
const bool & operator[] (Index i) const
 
bool operator== (const Buffer &other) const
 
bool operator!= (const Buffer &other) const
 
void setValue (Index i, bool val)
 
void swap (Buffer &other)
 
Index memUsage () const
 
WordTypedata ()
 
const WordTypedata () const
 

Static Public Member Functions

static Index size ()
 

Static Public Attributes

static const Index WORD_COUNT = NodeMaskType::WORD_COUNT
 

Friends

class ::TestLeaf
 
class LeafNode
 

Member Typedef Documentation

Constructor & Destructor Documentation

Buffer ( )
inline
Buffer ( bool  on)
inlineexplicit
Buffer ( const NodeMaskType other)
inline
Buffer ( const Buffer &  other)
inline
~Buffer ( )
inline

Member Function Documentation

WordType* data ( )
inline

Return a point to the c-style array of words encoding the bits.

Warning
This method should only be used by experts that seek low-level optimizations.
const WordType* data ( ) const
inline

Return a const point to the c-style array of words encoding the bits.

Warning
This method should only be used by experts that seek low-level optimizations.
void fill ( bool  val)
inline
const bool& getValue ( Index  i) const
inline
Index memUsage ( ) const
inline
bool operator!= ( const Buffer other) const
inline
Buffer& operator= ( const Buffer b)
inline
bool operator== ( const Buffer other) const
inline
const bool& operator[] ( Index  i) const
inline
void setValue ( Index  i,
bool  val 
)
inline
static Index size ( )
inlinestatic
void swap ( Buffer other)
inline

Friends And Related Function Documentation

friend class ::TestLeaf
friend
friend class LeafNode
friend

Member Data Documentation

const Index WORD_COUNT = NodeMaskType::WORD_COUNT
static

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