OpenVDB
3.1.0
|
Template specialization of the NodeManager with one level of nodes. More...
#include <NodeManager.h>
Public Types | |
typedef TreeOrLeafManagerT::RootNodeType | RootNodeType |
Public Member Functions | |
BOOST_STATIC_ASSERT (RootNodeType::LEVEL > 0) | |
NodeManager (TreeOrLeafManagerT &tree) | |
virtual | ~NodeManager () |
void | clear () |
Clear all the cached tree nodes. More... | |
void | rebuild () |
Clear and recache all the tree nodes from the tree. This is required if tree nodes have been added or removed. More... | |
const RootNodeType & | root () const |
Return a reference to the root node. More... | |
Index64 | nodeCount () const |
Return the total number of cached nodes (excluding the root node) More... | |
Index64 | nodeCount (Index i) const |
Return the number of cached nodes at level i, where 0 corresponds to the lowest level. More... | |
template<typename NodeOp > | |
void | processBottomUp (const NodeOp &op, bool threaded=true, size_t grainSize=1) |
template<typename NodeOp > | |
void | processTopDown (const NodeOp &op, bool threaded=true, size_t grainSize=1) |
Static Public Attributes | |
static const Index | LEVELS = 1 |
Protected Types | |
typedef RootNodeType | NodeT1 |
typedef NodeT1::ChildNodeType | NodeT0 |
typedef NodeList< NodeT0 > | ListT0 |
Protected Attributes | |
NodeT1 & | mRoot |
ListT0 | mList0 |
Template specialization of the NodeManager with one level of nodes.
|
protected |
|
protected |
typedef TreeOrLeafManagerT::RootNodeType RootNodeType |
|
inline |
|
inlinevirtual |
BOOST_STATIC_ASSERT | ( | RootNodeType::LEVEL | , |
0 | |||
) |
|
inline |
Clear all the cached tree nodes.
|
inline |
Return the total number of cached nodes (excluding the root node)
Return the number of cached nodes at level i, where 0 corresponds to the lowest level.
|
inline |
|
inline |
|
inline |
Clear and recache all the tree nodes from the tree. This is required if tree nodes have been added or removed.
|
inline |
Return a reference to the root node.
|
static |
|
protected |
|
protected |