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
 
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 517 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 520 of file LeafBuffer.h.

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

Definition at line 523 of file LeafBuffer.h.

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

Definition at line 522 of file LeafBuffer.h.

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

Definition at line 521 of file LeafBuffer.h.

Constructor & Destructor Documentation

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

Definition at line 532 of file LeafBuffer.h.

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

Definition at line 533 of file LeafBuffer.h.

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

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

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

Definition at line 536 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 561 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 564 of file LeafBuffer.h.

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

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

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

Definition at line 556 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 550 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 538 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 549 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 547 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 552 of file LeafBuffer.h.

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

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

Friends And Related Function Documentation

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

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

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

Definition at line 530 of file LeafBuffer.h.

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

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


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