OpenVDB  9.0.1
Public Member Functions | List of all members
LeafManager< GridT > Class Template Reference

LeafNanager maintains a linear array of leaf nodes. More...

#include <nanovdb/util/NodeManager.h>

Public Member Functions

 LeafManager ()
 Empty constructor. More...
 
 LeafManager (GridT &grid)
 Construction from a grid. More...
 
 LeafManager (const LeafManager &)=delete
 Disallow copy construction. More...
 
 LeafManager (LeafManager &&)
 Move constructor. More...
 
 ~LeafManager ()
 Destructor. More...
 
LeafManageroperator= (const LeafManager &)=delete
 Disallow copy assignment operator. More...
 
LeafManageroperator= (LeafManager &&)
 Move assignment operator. More...
 
bool empty () const
 Return true of this instance is un-initialized. More...
 
size_t memUsage () const
 Return the memory footprint in bytes of this instance. More...
 
GridT * grid ()
 Return a pointer to the grid, or NULL if it is uninitialized. More...
 
uint32_t size () const
 Return the number of leaf nodes. More...
 
LeafT * operator[] (uint32_t i) const
 Return the i'th leaf node. More...
 

Detailed Description

template<typename GridT>
class nanovdb::LeafManager< GridT >

LeafNanager maintains a linear array of leaf nodes.

Constructor & Destructor Documentation

LeafManager ( )
inline

Empty constructor.

LeafManager ( GridT &  grid)

Construction from a grid.

LeafManager ( const LeafManager< GridT > &  )
delete

Disallow copy construction.

LeafManager ( LeafManager< GridT > &&  other)

Move constructor.

~LeafManager ( )
inline

Destructor.

Member Function Documentation

bool empty ( ) const
inline

Return true of this instance is un-initialized.

GridT* grid ( )
inline

Return a pointer to the grid, or NULL if it is uninitialized.

size_t memUsage ( ) const
inline

Return the memory footprint in bytes of this instance.

LeafManager& operator= ( const LeafManager< GridT > &  )
delete

Disallow copy assignment operator.

LeafManager< GridT > & operator= ( LeafManager< GridT > &&  other)

Move assignment operator.

LeafT* operator[] ( uint32_t  i) const
inline

Return the i'th leaf node.

Warning
Never call this method is the LeafManager is uninitialized
uint32_t size ( ) const
inline

Return the number of leaf nodes.