HDK
|
#include <NodeManager.h>
Public Types | |
using | NonConstRootNodeType = typename TreeOrLeafManagerT::RootNodeType |
using | RootNodeType = typename CopyConstness< TreeOrLeafManagerT, NonConstRootNodeType >::Type |
using | NonConstChildNodeType = typename RootNodeType::ChildNodeType |
using | ChildNodeType = typename CopyConstness< TreeOrLeafManagerT, NonConstChildNodeType >::Type |
Public Member Functions | |
DynamicNodeManager (TreeOrLeafManagerT &tree) | |
DynamicNodeManager (const DynamicNodeManager &)=delete | |
const NonConstRootNodeType & | root () const |
Return a reference to the root node. More... | |
template<typename NodeOp > | |
void | foreachTopDown (const NodeOp &op, bool threaded=true, size_t leafGrainSize=1, size_t nonLeafGrainSize=1) |
Threaded method that applies a user-supplied functor to all the nodes in the tree. More... | |
template<typename NodeOp > | |
void | reduceTopDown (NodeOp &op, bool threaded=true, size_t leafGrainSize=1, size_t nonLeafGrainSize=1) |
Threaded method that processes nodes with a user supplied functor. More... | |
Static Public Attributes | |
static const Index | LEVELS = _LEVELS |
Protected Attributes | |
RootNodeType & | mRoot |
DynamicNodeManagerLink < ChildNodeType, LEVELS-1 > | mChain |
Definition at line 36 of file NodeManager.h.
using openvdb::OPENVDB_VERSION_NAME::tree::DynamicNodeManager< TreeOrLeafManagerT, _LEVELS >::ChildNodeType = typename CopyConstness<TreeOrLeafManagerT, NonConstChildNodeType>::Type |
Definition at line 898 of file NodeManager.h.
using openvdb::OPENVDB_VERSION_NAME::tree::DynamicNodeManager< TreeOrLeafManagerT, _LEVELS >::NonConstChildNodeType = typename RootNodeType::ChildNodeType |
Definition at line 897 of file NodeManager.h.
using openvdb::OPENVDB_VERSION_NAME::tree::DynamicNodeManager< TreeOrLeafManagerT, _LEVELS >::NonConstRootNodeType = typename TreeOrLeafManagerT::RootNodeType |
Definition at line 895 of file NodeManager.h.
using openvdb::OPENVDB_VERSION_NAME::tree::DynamicNodeManager< TreeOrLeafManagerT, _LEVELS >::RootNodeType = typename CopyConstness<TreeOrLeafManagerT, NonConstRootNodeType>::Type |
Definition at line 896 of file NodeManager.h.
|
inlineexplicit |
Definition at line 901 of file NodeManager.h.
|
delete |
|
inline |
Threaded method that applies a user-supplied functor to all the nodes in the tree.
op | user-supplied functor, see examples for interface details. |
threaded | optional toggle to disable threading, on by default. |
leafGrainSize | optional parameter to specify the grainsize for threading over leaf nodes, one by default. |
nonLeafGrainSize | optional parameter to specify the grainsize for threading over non-leaf nodes, one by default. |
Definition at line 976 of file NodeManager.h.
|
inline |
Threaded method that processes nodes with a user supplied functor.
op | user-supplied functor, see examples for interface details. |
threaded | optional toggle to disable threading, on by default. |
leafGrainSize | optional parameter to specify the grainsize for threading over leaf nodes, one by default. |
nonLeafGrainSize | optional parameter to specify the grainsize for threading over non-leaf nodes, one by default. |
Definition at line 1043 of file NodeManager.h.
|
inline |
Return a reference to the root node.
Definition at line 906 of file NodeManager.h.
|
static |
Definition at line 892 of file NodeManager.h.
|
protected |
Definition at line 1051 of file NodeManager.h.
|
protected |
Definition at line 1050 of file NodeManager.h.