HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 > Class Template Reference

Template specialization of the NodeManager with three levels of nodes. More...

#include <NodeManager.h>

Public Types

typedef
TreeOrLeafManagerT::RootNodeType 
RootNodeType
 

Public Member Functions

 HBOOST_STATIC_ASSERT (RootNodeType::LEVEL > 2)
 
 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 RootNodeTyperoot () 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 foreachBottomUp (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
void foreachTopDown (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
OPENVDB_DEPRECATED void processBottomUp (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
OPENVDB_DEPRECATED void processTopDown (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
void reduceBottomUp (NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
void reduceTopDown (NodeOp &op, bool threaded=true, size_t grainSize=1)
 

Static Public Attributes

static const Index LEVELS = 3
 

Protected Types

typedef RootNodeType NodeT3
 
typedef NodeT3::ChildNodeType NodeT2
 
typedef NodeT2::ChildNodeType NodeT1
 
typedef NodeT1::ChildNodeType NodeT0
 
typedef NodeList< NodeT2ListT2
 
typedef NodeList< NodeT1ListT1
 
typedef NodeList< NodeT0ListT0
 

Protected Attributes

NodeT3mRoot
 
ListT2 mList2
 
ListT1 mList1
 
ListT0 mList0
 

Detailed Description

template<typename TreeOrLeafManagerT>
class openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >

Template specialization of the NodeManager with three levels of nodes.

Definition at line 865 of file NodeManager.h.

Member Typedef Documentation

template<typename TreeOrLeafManagerT >
typedef NodeList<NodeT0> openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::ListT0
protected

Definition at line 971 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef NodeList<NodeT1> openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::ListT1
protected

Definition at line 970 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef NodeList<NodeT2> openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::ListT2
protected

Definition at line 969 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef NodeT1::ChildNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::NodeT0
protected

Definition at line 967 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef NodeT2::ChildNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::NodeT1
protected

Definition at line 966 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef NodeT3::ChildNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::NodeT2
protected

Definition at line 965 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef RootNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::NodeT3
protected

Definition at line 964 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef TreeOrLeafManagerT::RootNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::RootNodeType

Definition at line 868 of file NodeManager.h.

Constructor & Destructor Documentation

template<typename TreeOrLeafManagerT >
openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::NodeManager ( TreeOrLeafManagerT &  tree)
inline

Definition at line 872 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
virtual openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::~NodeManager ( )
inlinevirtual

Definition at line 886 of file NodeManager.h.

Member Function Documentation

template<typename TreeOrLeafManagerT >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::clear ( void  )
inline

Clear all the cached tree nodes.

Definition at line 889 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
template<typename NodeOp >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::foreachBottomUp ( const NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 916 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
template<typename NodeOp >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::foreachTopDown ( const NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 925 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::HBOOST_STATIC_ASSERT ( RootNodeType::LEVEL  ,
 
)
template<typename TreeOrLeafManagerT >
Index64 openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::nodeCount ( ) const
inline

Return the total number of cached nodes (excluding the root node)

Definition at line 905 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
Index64 openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::nodeCount ( Index  i) const
inline

Return the number of cached nodes at level i, where 0 corresponds to the lowest level.

Definition at line 909 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
template<typename NodeOp >
OPENVDB_DEPRECATED void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::processBottomUp ( const NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 934 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
template<typename NodeOp >
OPENVDB_DEPRECATED void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::processTopDown ( const NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 940 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::rebuild ( )
inline

Clear and recache all the tree nodes from the tree. This is required if tree nodes have been added or removed.

Definition at line 893 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
template<typename NodeOp >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::reduceBottomUp ( NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 946 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
template<typename NodeOp >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::reduceTopDown ( NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 955 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
const RootNodeType& openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::root ( void  ) const
inline

Return a reference to the root node.

Definition at line 902 of file NodeManager.h.

Member Data Documentation

template<typename TreeOrLeafManagerT >
const Index openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::LEVELS = 3
static

Definition at line 870 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
ListT0 openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::mList0
protected

Definition at line 976 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
ListT1 openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::mList1
protected

Definition at line 975 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
ListT2 openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::mList2
protected

Definition at line 974 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
NodeT3& openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 3 >::mRoot
protected

Definition at line 973 of file NodeManager.h.


The documentation for this class was generated from the following file: