Point Cloud Library (PCL)  1.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
pcl::octree::OctreeNodePool< NodeT > Class Template Reference

Octree node pool More...

#include <pcl/octree/octree_node_pool.h>

Public Member Functions

 OctreeNodePool ()
 Empty constructor. More...
 
virtual ~OctreeNodePool ()
 Empty deconstructor. More...
 
void pushNode (NodeT *node_arg)
 Push node to pool. More...
 
NodeT * popNode ()
 Pop node from pool - Allocates new nodes if pool is empty. More...
 
void deletePool ()
 Delete all nodes in pool. More...
 

Detailed Description

template<typename NodeT>
class pcl::octree::OctreeNodePool< NodeT >

Octree node pool

Note
Used to reduce memory allocation and class instantiation events when generating octrees at high rate
Author
Julius Kammerl (juliu.nosp@m.s@ka.nosp@m.mmerl.nosp@m..de)

Definition at line 58 of file octree_node_pool.h.

Constructor & Destructor Documentation

template<typename NodeT>
pcl::octree::OctreeNodePool< NodeT >::OctreeNodePool ( )
inline

Empty constructor.

Definition at line 62 of file octree_node_pool.h.

template<typename NodeT>
virtual pcl::octree::OctreeNodePool< NodeT >::~OctreeNodePool ( )
inlinevirtual

Empty deconstructor.

Definition at line 69 of file octree_node_pool.h.

Member Function Documentation

template<typename NodeT>
void pcl::octree::OctreeNodePool< NodeT >::deletePool ( )
inline

Delete all nodes in pool.

Definition at line 114 of file octree_node_pool.h.

template<typename NodeT>
NodeT* pcl::octree::OctreeNodePool< NodeT >::popNode ( )
inline

Pop node from pool - Allocates new nodes if pool is empty.

Returns
Pointer to octree node

Definition at line 88 of file octree_node_pool.h.

template<typename NodeT>
void pcl::octree::OctreeNodePool< NodeT >::pushNode ( NodeT *  node_arg)
inline

Push node to pool.

Parameters
childIdx_arg,:pointer of noe

Definition at line 79 of file octree_node_pool.h.


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