OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Container pool to be used for things like threads. More...
#include <ossimPool.h>
Public Member Functions | |
ossimPool (ossim_uint32 n=OSSIM_DEFAULT_POOL_SIZE) throw (std::bad_alloc) | |
Contructor. More... | |
~ossimPool () | |
Destructor. More... | |
T * | checkout () |
void | checkin (T *obj) throw (std::out_of_range) |
Resets and eturns object to the pool. More... | |
std::ostream & | print (std::ostream &out) const |
Outputs object addresses and theAvailableFlag. More... | |
Protected Attributes | |
std::vector< ossimPoolObject< T > * > | thePool |
Friends | |
template<class C > | |
std::ostream & | operator<< (std::ostream &out, const ossimPool< C > &obj) |
Container pool to be used for things like threads.
Definition at line 26 of file ossimPool.h.
|
inline |
Contructor.
n | Number of pooled objects to create. |
Definition at line 33 of file ossimPool.h.
References n, ossimNotify(), ossimNotifyLevel_FATAL, ossimPoolObject< T >::theAvailableFlag, ossimPoolObject< T >::theObjectPtr, and ossimPool< T >::thePool.
|
inline |
Resets and eturns object to the pool.
obj | Object to be returned to the pool. |
Definition at line 92 of file ossimPool.h.
References ossimPool< T >::thePool.
|
inline |
Definition at line 65 of file ossimPool.h.
References ossimPool< T >::thePool.
|
inline |
Outputs object addresses and theAvailableFlag.
Definition at line 113 of file ossimPool.h.
References ossimPool< T >::thePool.
|
friend |
Definition at line 125 of file ossimPool.h.
|
protected |
Definition at line 133 of file ossimPool.h.
Referenced by ossimPool< T >::checkin(), ossimPool< T >::checkout(), ossimPool< T >::ossimPool(), ossimPool< T >::print(), and ossimPool< T >::~ossimPool().