Template class describing a simple pool of items. More...
#include <OgreCommon.h>
Public Member Functions | |
Pool () | |
virtual | ~Pool () |
virtual void | addItem (const T &i) |
Add a new item to the pool. More... | |
virtual void | clear () |
Clear the pool. More... | |
virtual std::pair< bool, T > | removeItem () |
Get the next item from the pool. More... | |
Protected Types | |
typedef list< T >::type | ItemList |
Protected Attributes | |
ItemList | mItems |
Template class describing a simple pool of items.
Definition at line 821 of file OgreCommon.h.
|
protected |
Definition at line 824 of file OgreCommon.h.
|
inline |
Definition at line 828 of file OgreCommon.h.
|
inlinevirtual |
Definition at line 829 of file OgreCommon.h.
|
inlinevirtual |
Add a new item to the pool.
Definition at line 853 of file OgreCommon.h.
|
inlinevirtual |
Clear the pool.
Reimplemented in Ogre::ResourceManager::ResourcePool.
Definition at line 859 of file OgreCommon.h.
|
inlinevirtual |
Get the next item from the pool.
Definition at line 834 of file OgreCommon.h.
|
protected |
Definition at line 825 of file OgreCommon.h.
Referenced by Ogre::Pool< ResourcePtr >::addItem(), Ogre::Pool< ResourcePtr >::clear(), and Ogre::Pool< ResourcePtr >::removeItem().