libspatialindex API Reference  (git-trunk)
Tools::PointerPool< X > Class Template Reference

#include <PointerPool.h>

Inheritance diagram for Tools::PointerPool< X >:
Inheritance graph
Collaboration diagram for Tools::PointerPool< X >:
Collaboration graph

Public Member Functions

 PointerPool (uint32_t capacity)
 
 ~PointerPool ()
 
PoolPointer< X > acquire ()
 
void release (X *p)
 
uint32_t getCapacity () const
 
void setCapacity (uint32_t c)
 

Public Attributes

uint64_t m_hits
 
uint64_t m_misses
 
uint64_t m_pointerCount
 

Detailed Description

template<class X>
class Tools::PointerPool< X >

Definition at line 34 of file PointerPool.h.

Constructor & Destructor Documentation

◆ PointerPool()

template<class X>
Tools::PointerPool< X >::PointerPool ( uint32_t  capacity)
inlineexplicit

Definition at line 37 of file PointerPool.h.

◆ ~PointerPool()

template<class X>
Tools::PointerPool< X >::~PointerPool ( )
inline

Definition at line 46 of file PointerPool.h.

Member Function Documentation

◆ acquire()

◆ getCapacity()

template<class X>
uint32_t Tools::PointerPool< X >::getCapacity ( ) const
inline

◆ release()

template<class X>
void Tools::PointerPool< X >::release ( X *  p)
inline

Definition at line 87 of file PointerPool.h.

Referenced by Tools::PoolPointer< MovingRegion >::relinquish().

Here is the caller graph for this function:

◆ setCapacity()

template<class X>
void Tools::PointerPool< X >::setCapacity ( uint32_t  c)
inline

Definition at line 105 of file PointerPool.h.

Referenced by SpatialIndex::TPRTree::TPRTree::flush(), SpatialIndex::RTree::RTree::flush(), and SpatialIndex::MVRTree::MVRTree::flush().

Here is the caller graph for this function:

Member Data Documentation

◆ m_hits

◆ m_misses

◆ m_pointerCount


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