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

Template specialization of the NodeManager with no caching of nodes. More...

#include <NodeManager.h>

Public Types

typedef TreeOrLeafManagerT::RootNodeType RootNodeType
 

Public Member Functions

 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) const
 
template<typename NodeOp >
OPENVDB_DEPRECATED void processBottomUp (const NodeOp &op, bool, size_t)
 
template<typename NodeOp >
OPENVDB_DEPRECATED void processTopDown (const NodeOp &op, bool, size_t)
 
template<typename NodeOp >
void foreachBottomUp (const NodeOp &op, bool, size_t)
 
template<typename NodeOp >
void foreachTopDown (const NodeOp &op, bool, size_t)
 
template<typename NodeOp >
void reduceBottomUp (NodeOp &op, bool, size_t)
 
template<typename NodeOp >
void reduceTopDown (NodeOp &op, bool, size_t)
 

Static Public Attributes

static const Index LEVELS = 0
 

Protected Attributes

RootNodeTypemRoot
 

Detailed Description

template<typename TreeOrLeafManagerT>
class openvdb::v4_0_1::tree::NodeManager< TreeOrLeafManagerT, 0 >

Template specialization of the NodeManager with no caching of nodes.

Member Typedef Documentation

typedef TreeOrLeafManagerT::RootNodeType RootNodeType

Constructor & Destructor Documentation

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

Member Function Documentation

void clear ( )
inline

Clear all the cached tree nodes.

void foreachBottomUp ( const NodeOp &  op,
bool  ,
size_t   
)
inline
void foreachTopDown ( const NodeOp &  op,
bool  ,
size_t   
)
inline
Index64 nodeCount ( ) const
inline

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

Index64 nodeCount ( Index  ) const
inline
OPENVDB_DEPRECATED void processBottomUp ( const NodeOp &  op,
bool  ,
size_t   
)
inline
OPENVDB_DEPRECATED void processTopDown ( const NodeOp &  op,
bool  ,
size_t   
)
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.

void reduceBottomUp ( NodeOp &  op,
bool  ,
size_t   
)
inline
void reduceTopDown ( NodeOp &  op,
bool  ,
size_t   
)
inline
const RootNodeType& root ( ) const
inline

Return a reference to the root node.

Member Data Documentation

const Index LEVELS = 0
static
RootNodeType& mRoot
protected

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