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)
 

Public Attributes

uint64_t m_hits
 
uint64_t m_misses
 
uint64_t m_pointerCount
 

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 121 of file tprtree/PointerPoolNode.h.

◆ release()

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

◆ setCapacity()

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

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

Member Data Documentation

◆ m_capacity

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

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

◆ m_hits

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

◆ m_misses

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

◆ m_pointerCount

uint64_t Tools::PointerPool< SpatialIndex::TPRTree::Node >::m_pointerCount

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

◆ m_pool

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


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