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

Template specialization of the NodeManager with one level of nodes. More...

#include <NodeManager.h>

Public Types

typedef
TreeOrLeafManagerT::RootNodeType 
RootNodeType
 

Public Member Functions

 HBOOST_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 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 = 1
 

Protected Types

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

Protected Attributes

NodeT1mRoot
 
ListT0 mList0
 

Detailed Description

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

Template specialization of the NodeManager with one level of nodes.

Definition at line 658 of file NodeManager.h.

Member Typedef Documentation

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

Definition at line 737 of file NodeManager.h.

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

Definition at line 736 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
typedef RootNodeType openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 1 >::NodeT1
protected

Definition at line 735 of file NodeManager.h.

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

Definition at line 661 of file NodeManager.h.

Constructor & Destructor Documentation

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

Definition at line 665 of file NodeManager.h.

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

Definition at line 676 of file NodeManager.h.

Member Function Documentation

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

Clear all the cached tree nodes.

Definition at line 679 of file NodeManager.h.

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

Definition at line 696 of file NodeManager.h.

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

Definition at line 703 of file NodeManager.h.

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

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

Definition at line 689 of file NodeManager.h.

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

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

Definition at line 693 of file NodeManager.h.

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

Definition at line 709 of file NodeManager.h.

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

Definition at line 715 of file NodeManager.h.

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

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

Definition at line 721 of file NodeManager.h.

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

Definition at line 728 of file NodeManager.h.

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

Return a reference to the root node.

Definition at line 686 of file NodeManager.h.

Member Data Documentation

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

Definition at line 663 of file NodeManager.h.

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

Definition at line 740 of file NodeManager.h.

template<typename TreeOrLeafManagerT >
NodeT1& openvdb::OPENVDB_VERSION_NAME::tree::NodeManager< TreeOrLeafManagerT, 1 >::mRoot
protected

Definition at line 739 of file NodeManager.h.


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