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...
 

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 467 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 470 of file LeafBuffer.h.

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

Definition at line 473 of file LeafBuffer.h.

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

Definition at line 472 of file LeafBuffer.h.

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

Definition at line 471 of file LeafBuffer.h.

Constructor & Destructor Documentation

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

Definition at line 482 of file LeafBuffer.h.

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

Definition at line 483 of file LeafBuffer.h.

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

Definition at line 484 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 485 of file LeafBuffer.h.

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

Definition at line 486 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 512 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 515 of file LeafBuffer.h.

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

Definition at line 487 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 490 of file LeafBuffer.h.

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

Definition at line 506 of file LeafBuffer.h.

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

Definition at line 507 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 500 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 488 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 499 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 497 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 502 of file LeafBuffer.h.

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

Definition at line 508 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 504 of file LeafBuffer.h.

Friends And Related Function Documentation

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

Definition at line 519 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 476 of file LeafBuffer.h.

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

Definition at line 480 of file LeafBuffer.h.

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

Definition at line 479 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 475 of file LeafBuffer.h.


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