ObjectPool Class Reference
[Collections]

Manages a pool of IPooable objects. More...

#include <ObjectPool.h>

Inheritance diagram for ObjectPool:
IMemoryValidate

List of all members.

Public Member Functions

 ObjectPool (IPoolableFactory *factory, int minInstances, int preferedPoolMaxInstances, int maxInstances)
 factory is not deleted by ObjectPool.
IPoolablePtr GetObjectSmartPtr ()
IPoolableGetObject ()
void ReleaseObject (IPoolable *item)
void ReleaseObject (IPoolablePtr item)
int Count () const
 Count is not volatile, since it's just advisory.
void CheckMem () const
void ValidateMem () const

Protected Attributes

IPoolableFactorym_factory
List< IPoolable * > m_pool
Mutex m_poolMutex
int m_minInstances
int m_preferedPoolMaxInstances
int m_maxInstances
int m_count

Detailed Description

Manages a pool of IPooable objects.

Definition at line 67 of file ObjectPool.h.


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