|
OpenVDB 13.0.0
|
#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) |
| LeafBuffer & | operator= (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 |
| WordType * | data () |
| Return a pointer to the C-style array of words encoding the bits. | |
| const WordType * | data () const |
| Return a const pointer to the C-style array of words encoding the bits. | |
| const NodeMaskType & | storage () const |
| Return raw LeafBuffer data. | |
| bool | isOutOfCore () const |
Return true if this buffer's values have not yet been read from disk. | |
| bool | empty () const |
Return true if memory for this buffer has not yet been allocated. | |
| bool | allocate () |
| Allocate memory for this buffer if it has not already been allocated. | |
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 |
| class | ::TestLeaf |
| using NodeMaskType = util::NodeMask<Log2Dim> |
| using StorageType = WordType |
| using WordType = typename NodeMaskType::Word |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Allocate memory for this buffer if it has not already been allocated.
Return a pointer to the C-style array of words encoding the bits.
Return a const pointer to the C-style array of words encoding the bits.
|
inline |
Return true if memory for this buffer has not yet been allocated.
|
inline |
|
inline |
Return true if this buffer's values have not yet been read from disk.
|
inline |
|
inline |
|
inline |
|
inline |
Return raw LeafBuffer data.
|
inline |
|
friend |
|
inlinestatic |
|
inlinestatic |
|
static |