OpenVDB
9.0.1
|
NodeNanager maintains separate linear arrays of the three nodes types. More...
#include <nanovdb/util/NodeManager.h>
Public Member Functions | |
NodeManager () | |
Empty constructor. More... | |
NodeManager (GridT &grid) | |
Construction from a grid. More... | |
NodeManager (const NodeManager &)=delete | |
Disallow copy construction. More... | |
NodeManager (NodeManager &&) | |
Move constructor. More... | |
~NodeManager () | |
Destructor. More... | |
NodeManager & | operator= (const NodeManager &)=delete |
Disallow copy assignment operator. More... | |
NodeManager & | operator= (NodeManager &&) |
Move assignment operator. More... | |
bool | empty () const |
Return true of this instance is uninitialized. More... | |
size_t | memUsage () const |
Return the memory footprint in bytes of this instance. More... | |
GridT * | grid () |
Return a pointer to the grid, or NULL if it is uninitialized. More... | |
TreeT * | tree () |
Return a pointer to the tree, or NULL if it is uninitialized. More... | |
RootT * | root () |
Return a pointer to the root, or NULL if it is uninitialized. More... | |
uint64_t | nodeCount (int level) const |
Return the number of tree nodes at the specified level. More... | |
Node0 * | leaf (uint32_t i) const |
Return the i'th leaf node. More... | |
Node1 * | lower (uint32_t i) const |
Return the i'th lower internal node. More... | |
Node2 * | upper (uint32_t i) const |
Return the i'th upper internal node. More... | |
NodeNanager maintains separate linear arrays of the three nodes types.
This host class allows for sequential access to nodes in a NanoVDB tree.
Nodes are stored breadth first to allow for sequential access of nodes at a particular level.
NodeManager | ( | ) |
Empty constructor.
NodeManager | ( | GridT & | grid | ) |
Construction from a grid.
|
delete |
Disallow copy construction.
NodeManager | ( | NodeManager< GridT > && | other | ) |
Move constructor.
|
inline |
Destructor.
|
inline |
Return true of this instance is uninitialized.
|
inline |
Return a pointer to the grid, or NULL if it is uninitialized.
|
inline |
Return the i'th leaf node.
|
inline |
Return the i'th lower internal node.
|
inline |
Return the memory footprint in bytes of this instance.
|
inline |
Return the number of tree nodes at the specified level.
|
delete |
Disallow copy assignment operator.
NodeManager< GridT > & operator= | ( | NodeManager< GridT > && | other | ) |
Move assignment operator.
|
inline |
Return a pointer to the root, or NULL if it is uninitialized.
|
inline |
Return a pointer to the tree, or NULL if it is uninitialized.
|
inline |
Return the i'th upper internal node.