OpenVDB: NodeManager< TreeOrLeafManagerT, 1 > Class Template Reference

OpenVDB 3.1.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes | List of all members
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
| BOOST_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 RootNodeType & | root () 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 = 1

## Protected Types
typedef RootNodeType | NodeT1
typedef NodeT1::ChildNodeType | NodeT0
typedef NodeList< NodeT0 > | ListT0

## Protected Attributes
NodeT1 & | mRoot
ListT0 | mList0

## Detailed Description

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

Template specialization of the NodeManager with one level of nodes.

## Member Typedef Documentation

typedef NodeList<NodeT0> ListT0
| protected

typedef NodeT1::ChildNodeType NodeT0
| protected

typedef RootNodeType NodeT1
| protected

typedef TreeOrLeafManagerT::RootNodeType RootNodeType

## Constructor & Destructor Documentation

NodeManager | ( | TreeOrLeafManagerT & | tree | ) |
| inline

virtual ~NodeManager | ( |  | ) |
| inlinevirtual

## Member Function Documentation

BOOST_STATIC_ASSERT | ( | RootNodeType::LEVEL | ,
|  | 0 |
| ) |  |

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

ListT0 mList0
| protected

NodeT1& mRoot
| protected

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

- NodeManager.h