|
Particle Universe
1.2
|
#include <ParticleUniversePool.h>
Public Types | |
| typedef list< T * > | PoolList |
| typedef PoolList::iterator | PoolIterator |
Public Member Functions | |
| Pool (bool managed=false) | |
| virtual | ~Pool (void) |
| bool | isEmpty (void) |
| size_t | getSize (void) |
| void | resetIterator (void) |
| T * | getFirst (void) |
| T * | getNext (void) |
| bool | end (void) |
| void | clear (void) |
| void | addElement (T *element) |
| T * | releaseElement (void) |
| void | releaseAllElements (void) |
| void | lockLatestElement (void) |
| void | lockAllElements (void) |
| PoolList & | getActiveElementsList (void) |
Public Attributes | |
| PoolIterator | mPoolIterator |
Protected Attributes | |
| bool | mManaged |
| PoolList | mReleased |
| PoolList | mLocked |
Simple pool, use to store and retrieve precreated objects.
| typedef PoolList::iterator ParticleUniverse::Pool< T >::PoolIterator |
| typedef list<T*> ParticleUniverse::Pool< T >::PoolList |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Clear the pool.
|
inline |
Determines whether the end of the pool has been reached.
|
inline |
Returns the complete list with active elements.
|
inline |
Return the first 'released' element in the pool.
|
inline |
Return the next 'released' element in the pool.
|
inline |
Returns the number of all released elements.
|
inline |
Returns true if the number of released elements is 0.
|
inline |
Lock all elements in the pool.
|
inline |
Lock the element to which the internal iterator points.
|
inline |
Release all elements in the pool.
|
inline |
Retrieve an object from the pool.
|
inline |
Reset the iterator, so that traversing through the pool starts from the beginning.
|
protected |
|
protected |
| PoolIterator ParticleUniverse::Pool< T >::mPoolIterator |
|
protected |