OpenVDB  12.0.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
LeafBuffer< bool, Log2Dim > Class Template Reference

#include <openvdb/tree/LeafBuffer.h>

Public Types

using NodeMaskType = util::NodeMask< Log2Dim >
 
using WordType = typename NodeMaskType::Word
 
using ValueType = bool
 
using StorageType = WordType
 

Public Member Functions

 LeafBuffer ()
 
 LeafBuffer (bool on)
 
 LeafBuffer (const NodeMaskType &other)
 
 LeafBuffer (const LeafBuffer &other)
 
 ~LeafBuffer ()
 
void fill (bool val)
 
LeafBufferoperator= (const LeafBuffer &b)
 
const bool & getValue (Index i) const
 
const bool & operator[] (Index i) const
 
bool operator== (const LeafBuffer &other) const
 
bool operator!= (const LeafBuffer &other) const
 
void setValue (Index i, bool val)
 
void swap (LeafBuffer &other)
 
Index memUsage () const
 
Index memUsageIfLoaded () const
 
WordTypedata ()
 Return a pointer to the C-style array of words encoding the bits. More...
 
const WordTypedata () const
 Return a const pointer to the C-style array of words encoding the bits. More...
 

Static Public Member Functions

static Index size ()
 

Static Public Attributes

static const Index WORD_COUNT = NodeMaskType::WORD_COUNT
 
static const Index SIZE = 1 << 3 * Log2Dim
 
static const bool sOn = true
 
static const bool sOff = false
 

Friends

template<typename , Index >
class LeafNode
 

Member Typedef Documentation

using NodeMaskType = util::NodeMask<Log2Dim>
using ValueType = bool
using WordType = typename NodeMaskType::Word

Constructor & Destructor Documentation

LeafBuffer ( )
inline
LeafBuffer ( bool  on)
inline
LeafBuffer ( const NodeMaskType other)
inline
LeafBuffer ( const LeafBuffer< bool, Log2Dim > &  other)
inline
~LeafBuffer ( )
inline

Member Function Documentation

WordType* data ( )
inline

Return a pointer to the C-style array of words encoding the bits.

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

Return a const pointer to the C-style array of words encoding the bits.

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

Friends And Related Function Documentation

friend class LeafNode
friend

Member Data Documentation

const Index SIZE = 1 << 3 * Log2Dim
static
const bool sOff = false
inlinestatic
const bool sOn = true
inlinestatic
const Index WORD_COUNT = NodeMaskType::WORD_COUNT
static