Version: 8.3.0
ObjectPool< X > Class Template Reference

#include <ObjectPool.hxx>

Inheritance diagram for ObjectPool< X >:

Public Member Functions

 ObjectPool (int nblk)
 
virtual ~ObjectPool ()
 
X * getNew ()
 
void destroy (X *obj)
 
void clear ()
 

Private Member Functions

int getNextFree ()
 
void checkDelete (int chunkId)
 

Private Attributes

std::vector< bool_freeList
 
int _nextFree
 
int _maxAvail
 
int _chunkSize
 
int _maxOccupied
 
int _nbHoles
 
int _lastDelChunk
 

Static Private Attributes

std::vector< X * > _chunkList
 

Constructor & Destructor Documentation

template<class X>
ObjectPool< X >::ObjectPool ( int  nblk)
template<class X>
virtual ObjectPool< X >::~ObjectPool ( )
virtual

Member Function Documentation

template<class X>
void ObjectPool< X >::checkDelete ( int  chunkId)
private
template<class X>
void ObjectPool< X >::clear ( )

Referenced by SMDS_Mesh::Clear().

template<class X>
int ObjectPool< X >::getNextFree ( )
private

Field Documentation