OpenVDB  3.0.0
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes | List of all members
NodeManager< TreeOrLeafManagerT, 4 > Class Template Reference

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

#include <NodeManager.h>

Public Types

typedef TreeOrLeafManagerT::RootNodeType RootNodeType
 

Public Member Functions

 BOOST_STATIC_ASSERT (RootNodeType::LEVEL > 3)
 
 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 processBottomUp (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
void processTopDown (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 

Static Public Attributes

static const Index LEVELS = 4
 

Protected Types

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

Protected Attributes

NodeT4mRoot
 
ListT3 mList3
 
ListT2 mList2
 
ListT1 mList1
 
ListT0 mList0
 

Detailed Description

template<typename TreeOrLeafManagerT>
class openvdb::v3_0_0::tree::NodeManager< TreeOrLeafManagerT, 4 >

Template specialization of the NodeManager with four levels of nodes.

Member Typedef Documentation

typedef NodeList<NodeT0> ListT0
protected
typedef NodeList<NodeT1> ListT1
protected
typedef NodeList<NodeT2> ListT2
protected
typedef NodeList<NodeT3> ListT3
protected
typedef NodeT1::ChildNodeType NodeT0
protected
typedef NodeT2::ChildNodeType NodeT1
protected
typedef NodeT3::ChildNodeType NodeT2
protected
typedef NodeT4::ChildNodeType NodeT3
protected
typedef RootNodeType NodeT4
protected
typedef TreeOrLeafManagerT::RootNodeType RootNodeType

Constructor & Destructor Documentation

NodeManager ( TreeOrLeafManagerT &  tree)
inline
virtual ~NodeManager ( )
inlinevirtual

Member Function Documentation

BOOST_STATIC_ASSERT ( RootNodeType::LEVEL  ,
 
)
void clear ( )
inline

Clear all the cached tree nodes.

Index64 nodeCount ( ) const
inline

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

Index64 nodeCount ( Index  i) const
inline

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

void processBottomUp ( const NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline
void processTopDown ( const NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline
void rebuild ( )
inline

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

const RootNodeType& root ( ) const
inline

Return a reference to the root node.

Member Data Documentation

const Index LEVELS = 4
static
ListT0 mList0
protected
ListT1 mList1
protected
ListT2 mList2
protected
ListT3 mList3
protected
NodeT4& mRoot
protected

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