Array of fixed size
that stores the voxel values of a LeafNode.
More...
#include <LeafNode.h>
|
static Index | size () |
| Return the number of values contained in this buffer. More...
|
|
template<typename T, Index Log2Dim>
class openvdb::v3_2_0::tree::LeafNode< T, Log2Dim >::Buffer
Array of fixed size
that stores the voxel values of a LeafNode.
◆ WordType
◆ Buffer() [1/4]
◆ Buffer() [2/4]
Construct a buffer populated with the specified value.
◆ Buffer() [3/4]
◆ Buffer() [4/4]
Construct a buffer but don't allocate memory for the full array of values.
◆ ~Buffer()
◆ allocate()
Allocate memory for this buffer if it has not already been allocated.
◆ data() [1/2]
Return a const pointer to the array of voxel values.
This method guarantees that the buffer is allocated and loaded.
- Warning
- This method should only be used by experts seeking low-level optimizations.
◆ data() [2/2]
Return a pointer to the array of voxel values.
This method guarantees that the buffer is allocated and loaded.
- Warning
- This method should only be used by experts seeking low-level optimizations.
◆ empty()
Return true
if memory for this buffer has not yet been allocated.
◆ fill()
Populate this buffer with a constant value.
◆ getValue()
Return a const reference to the i'th element of this buffer.
◆ isOutOfCore()
bool isOutOfCore |
( |
| ) |
const |
|
inline |
Return true
if this buffer's values have not yet been read from disk.
◆ memUsage()
Return the memory footprint of this buffer in bytes.
◆ operator!=()
bool operator!= |
( |
const Buffer & |
other | ) |
const |
|
inline |
Return true
if the contents of the other buffer are not exactly equal to the contents of this buffer.
◆ operator=()
Copy the other buffer's values into this buffer.
◆ operator==()
bool operator== |
( |
const Buffer & |
other | ) |
const |
|
inline |
Return true
if the contents of the other buffer exactly equal the contents of this buffer.
◆ operator[]()
Return a const reference to the i'th element of this buffer.
◆ setValue()
Set the i'th value of this buffer to the specified value.
◆ size()
Return the number of values contained in this buffer.
◆ swap()
Exchange this buffer's values with the other buffer's values.
◆ ::TestLeaf
◆ LeafNode
◆ mData
◆ mFileInfo
◆ WORD_COUNT
The documentation for this class was generated from the following file: