HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT > Class Template Reference

This class caches tree nodes of a specific type in a linear array. More...

#include <NodeManager.h>

Classes

class  NodeRange
 

Public Types

using value_type = NodeT *
 
using ListT = std::deque< value_type >
 

Public Member Functions

 NodeList ()
 
void push_back (NodeT *node)
 
NodeT & operator() (size_t n) const
 
NodeT *& operator[] (size_t n)
 
Index64 nodeCount () const
 
void clear ()
 
void resize (size_t n)
 
NodeRange nodeRange (size_t grainsize=1) const
 Return a TBB-compatible NodeRange. More...
 
template<typename NodeOp >
void foreach (const NodeOp &op, bool threaded=true, size_t grainSize=1)
 
template<typename NodeOp >
void reduce (NodeOp &op, bool threaded=true, size_t grainSize=1)
 

Protected Attributes

ListT mList
 

Detailed Description

template<typename NodeT>
class openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >

This class caches tree nodes of a specific type in a linear array.

Note
It is for internal use and should rarely be used directly.

Definition at line 68 of file NodeManager.h.

Member Typedef Documentation

template<typename NodeT>
using openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::ListT = std::deque<value_type>

Definition at line 72 of file NodeManager.h.

template<typename NodeT>
using openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::value_type = NodeT*

Definition at line 71 of file NodeManager.h.

Constructor & Destructor Documentation

template<typename NodeT>
openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::NodeList ( )
inline

Definition at line 74 of file NodeManager.h.

Member Function Documentation

template<typename NodeT>
void openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::clear ( void  )
inline

Definition at line 84 of file NodeManager.h.

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

Definition at line 169 of file NodeManager.h.

template<typename NodeT>
Index64 openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::nodeCount ( ) const
inline

Definition at line 82 of file NodeManager.h.

template<typename NodeT>
NodeRange openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::nodeRange ( size_t  grainsize = 1) const
inline

Return a TBB-compatible NodeRange.

Definition at line 163 of file NodeManager.h.

template<typename NodeT>
NodeT& openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::operator() ( size_t  n) const
inline

Definition at line 78 of file NodeManager.h.

template<typename NodeT>
NodeT*& openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::operator[] ( size_t  n)
inline

Definition at line 80 of file NodeManager.h.

template<typename NodeT>
void openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::push_back ( NodeT *  node)
inline

Definition at line 76 of file NodeManager.h.

template<typename NodeT>
template<typename NodeOp >
void openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::reduce ( NodeOp &  op,
bool  threaded = true,
size_t  grainSize = 1 
)
inline

Definition at line 176 of file NodeManager.h.

template<typename NodeT>
void openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::resize ( size_t  n)
inline

Definition at line 86 of file NodeManager.h.

Member Data Documentation

template<typename NodeT>
ListT openvdb::OPENVDB_VERSION_NAME::tree::NodeList< NodeT >::mList
protected

Definition at line 233 of file NodeManager.h.


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