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

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

#include <NodeManager.h>

Public Types

typedef
TreeOrLeafManagerT::RootNodeType 
RootNodeType
 

Public Member Functions

 HBOOST_STATIC_ASSERT (RootNodeType::LEVEL > 1)
 
 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 = 2
 

Protected Types

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

Protected Attributes

NodeT2mRoot
 
ListT1 mList1
 
ListT0 mList0
 

Detailed Description

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

Template specialization of the NodeManager with two levels of nodes.

Definition at line 752 of file NodeManager.h.

Member Typedef Documentation

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

Definition at line 849 of file NodeManager.h.

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

Definition at line 848 of file NodeManager.h.

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

Definition at line 846 of file NodeManager.h.

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

Definition at line 845 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef RootNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 2 >::NodeT2
protected

Definition at line 844 of file NodeManager.h.

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

Definition at line 755 of file NodeManager.h.

Constructor & Destructor Documentation

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

Definition at line 759 of file NodeManager.h.

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

Definition at line 772 of file NodeManager.h.

Member Function Documentation

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

Clear all the cached tree nodes.

Definition at line 775 of file NodeManager.h.

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

Definition at line 800 of file NodeManager.h.

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

Definition at line 808 of file NodeManager.h.

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

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

Definition at line 790 of file NodeManager.h.

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

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

Definition at line 794 of file NodeManager.h.

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

Definition at line 816 of file NodeManager.h.

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

Definition at line 822 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 2 >::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 779 of file NodeManager.h.

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

Definition at line 828 of file NodeManager.h.

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

Definition at line 836 of file NodeManager.h.

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

Return a reference to the root node.

Definition at line 787 of file NodeManager.h.

Member Data Documentation

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

Definition at line 757 of file NodeManager.h.

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

Definition at line 853 of file NodeManager.h.

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

Definition at line 852 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
NodeT2& openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 2 >::mRoot
protected

Definition at line 851 of file NodeManager.h.


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