libspatialindex API Reference  (git-trunk)
Tools::PointerPool< SpatialIndex::TPRTree::Node > Class Reference

#include <PointerPoolNode.h>

Collaboration diagram for Tools::PointerPool< SpatialIndex::TPRTree::Node >:
Collaboration graph

Public Member Functions

 PointerPool (uint32_t capacity)
 
 ~PointerPool ()
 
PoolPointer< TPRTree::Nodeacquire ()
 
void release (TPRTree::Node *p)
 
uint32_t getCapacity () const
 
void setCapacity (uint32_t c)
 

Protected Attributes

uint32_t m_capacity
 
std::stack< TPRTree::Node * > m_pool
 

Detailed Description

Definition at line 35 of file tprtree/PointerPoolNode.h.

Constructor & Destructor Documentation

◆ PointerPool()

Tools::PointerPool< SpatialIndex::TPRTree::Node >::PointerPool ( uint32_t  capacity)
inlineexplicit

Definition at line 38 of file tprtree/PointerPoolNode.h.

◆ ~PointerPool()

Member Function Documentation

◆ acquire()

◆ getCapacity()

uint32_t Tools::PointerPool< SpatialIndex::TPRTree::Node >::getCapacity ( ) const
inline

Definition at line 93 of file tprtree/PointerPoolNode.h.

◆ release()

Definition at line 63 of file tprtree/PointerPoolNode.h.

◆ setCapacity()

void Tools::PointerPool< SpatialIndex::TPRTree::Node >::setCapacity ( uint32_t  c)
inline

Definition at line 94 of file tprtree/PointerPoolNode.h.

Member Data Documentation

◆ m_capacity

uint32_t Tools::PointerPool< SpatialIndex::TPRTree::Node >::m_capacity
protected

Definition at line 101 of file tprtree/PointerPoolNode.h.

◆ m_pool

Definition at line 102 of file tprtree/PointerPoolNode.h.


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