HDK
|
This class caches tree nodes of a specific type in a linear array. More...
#include <NodeManager.h>
Classes | |
class | NodeRange |
Public Member Functions | |
NodeList ()=default | |
NodeT & | operator() (size_t n) const |
NodeT *& | operator[] (size_t n) |
Index64 | nodeCount () const |
void | clear () |
template<typename RootT > | |
bool | initRootChildren (RootT &root) |
template<typename ParentsT , typename NodeFilterT > | |
bool | initNodeChildren (ParentsT &parents, const NodeFilterT &nodeFilter=NodeFilterT(), bool serial=false) |
NodeRange | nodeRange (size_t grainsize=1) const |
Return a TBB-compatible NodeRange. More... | |
template<typename NodeOp > | |
void | foreach (const NodeOp &op, bool threaded=true, size_t grainSize=1) |
template<typename NodeOp > | |
void | reduce (NodeOp &op, bool threaded=true, size_t grainSize=1) |
template<typename NodeOp > | |
void | foreachWithIndex (const NodeOp &op, bool threaded=true, size_t grainSize=1) |
template<typename NodeOp > | |
void | reduceWithIndex (NodeOp &op, bool threaded=true, size_t grainSize=1) |
Protected Attributes | |
size_t | mNodeCount = 0 |
std::unique_ptr< NodeT *[]> | mNodePtrs |
NodeT ** | mNodes = nullptr |
This class caches tree nodes of a specific type in a linear array.
Definition at line 54 of file NodeManager.h.
|
default |
|
inline |
Definition at line 65 of file NodeManager.h.
|
inline |
Definition at line 268 of file NodeManager.h.
|
inline |
Definition at line 284 of file NodeManager.h.
|
inline |
Definition at line 105 of file NodeManager.h.
|
inline |
Definition at line 74 of file NodeManager.h.
|
inline |
Definition at line 63 of file NodeManager.h.
|
inline |
Return a TBB-compatible NodeRange.
Definition at line 262 of file NodeManager.h.
|
inline |
Definition at line 59 of file NodeManager.h.
|
inline |
Definition at line 61 of file NodeManager.h.
|
inline |
Definition at line 275 of file NodeManager.h.
|
inline |
Definition at line 292 of file NodeManager.h.
|
protected |
Definition at line 388 of file NodeManager.h.
|
protected |
Definition at line 389 of file NodeManager.h.
|
protected |
Definition at line 390 of file NodeManager.h.