HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim > Class Template Reference

#include <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...
 
const NodeMaskTypestorage () const
 Return raw LeafBuffer data. 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
 

Detailed Description

template<Index Log2Dim>
class openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >

Definition at line 488 of file LeafBuffer.h.

Member Typedef Documentation

template<Index Log2Dim>
using openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::NodeMaskType = util::NodeMask<Log2Dim>

Definition at line 491 of file LeafBuffer.h.

template<Index Log2Dim>
using openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::StorageType = WordType

Definition at line 494 of file LeafBuffer.h.

template<Index Log2Dim>
using openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::ValueType = bool

Definition at line 493 of file LeafBuffer.h.

template<Index Log2Dim>
using openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::WordType = typename NodeMaskType::Word

Definition at line 492 of file LeafBuffer.h.

Constructor & Destructor Documentation

template<Index Log2Dim>
openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::LeafBuffer ( )
inline

Definition at line 502 of file LeafBuffer.h.

template<Index Log2Dim>
openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::LeafBuffer ( bool  on)
inline

Definition at line 503 of file LeafBuffer.h.

template<Index Log2Dim>
openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::LeafBuffer ( const NodeMaskType other)
inline

Definition at line 504 of file LeafBuffer.h.

template<Index Log2Dim>
openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::LeafBuffer ( const LeafBuffer< bool, Log2Dim > &  other)
inline

Definition at line 505 of file LeafBuffer.h.

template<Index Log2Dim>
openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::~LeafBuffer ( )
inline

Definition at line 506 of file LeafBuffer.h.

Member Function Documentation

template<Index Log2Dim>
WordType* openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::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.

Definition at line 532 of file LeafBuffer.h.

template<Index Log2Dim>
const WordType* openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::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.

Definition at line 535 of file LeafBuffer.h.

template<Index Log2Dim>
void openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::fill ( bool  val)
inline

Definition at line 507 of file LeafBuffer.h.

template<Index Log2Dim>
const bool& openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::getValue ( Index  i) const
inline

Definition at line 510 of file LeafBuffer.h.

template<Index Log2Dim>
Index openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::memUsage ( ) const
inline

Definition at line 526 of file LeafBuffer.h.

template<Index Log2Dim>
Index openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::memUsageIfLoaded ( ) const
inline

Definition at line 527 of file LeafBuffer.h.

template<Index Log2Dim>
bool openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::operator!= ( const LeafBuffer< bool, Log2Dim > &  other) const
inline

Definition at line 520 of file LeafBuffer.h.

template<Index Log2Dim>
LeafBuffer& openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::operator= ( const LeafBuffer< bool, Log2Dim > &  b)
inline

Definition at line 508 of file LeafBuffer.h.

template<Index Log2Dim>
bool openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::operator== ( const LeafBuffer< bool, Log2Dim > &  other) const
inline

Definition at line 519 of file LeafBuffer.h.

template<Index Log2Dim>
const bool& openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::operator[] ( Index  i) const
inline

Definition at line 517 of file LeafBuffer.h.

template<Index Log2Dim>
void openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::setValue ( Index  i,
bool  val 
)
inline

Definition at line 522 of file LeafBuffer.h.

template<Index Log2Dim>
static Index openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::size ( void  )
inlinestatic

Definition at line 528 of file LeafBuffer.h.

template<Index Log2Dim>
const NodeMaskType& openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::storage ( ) const
inline

Return raw LeafBuffer data.

Definition at line 538 of file LeafBuffer.h.

template<Index Log2Dim>
void openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::swap ( LeafBuffer< bool, Log2Dim > &  other)
inline

Definition at line 524 of file LeafBuffer.h.

Friends And Related Function Documentation

template<Index Log2Dim>
template<typename , Index >
friend class LeafNode
friend

Definition at line 542 of file LeafBuffer.h.

Member Data Documentation

template<Index Log2Dim>
const Index openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::SIZE = 1 << 3 * Log2Dim
static

Definition at line 497 of file LeafBuffer.h.

template<Index Log2Dim>
const bool openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::sOff = false
inlinestatic

Definition at line 500 of file LeafBuffer.h.

template<Index Log2Dim>
const bool openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::sOn = true
inlinestatic

Definition at line 499 of file LeafBuffer.h.

template<Index Log2Dim>
const Index openvdb::OPENVDB_VERSION_NAME::tree::LeafBuffer< bool, Log2Dim >::WORD_COUNT = NodeMaskType::WORD_COUNT
static

Definition at line 496 of file LeafBuffer.h.


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