Template class describing a simple pool of items. More...
#include <OgreCommon.h>
Public Member Functions | |
Pool () | |
virtual | ~Pool () |
virtual std::pair< bool, T > | removeItem () |
Get the next item from the pool. | |
virtual void | addItem (const T &i) |
Add a new item to the pool. | |
virtual void | clear () |
Clear the pool. | |
Protected Types | |
typedef list< T >::type | ItemList |
Protected Attributes | |
ItemList | mItems |
Template class describing a simple pool of items.
Definition at line 792 of file OgreCommon.h.
typedef list<T>::type Ogre::Pool< T >::ItemList [protected] |
Definition at line 795 of file OgreCommon.h.
Ogre::Pool< T >::Pool | ( | ) |
Definition at line 799 of file OgreCommon.h.
virtual Ogre::Pool< T >::~Pool | ( | ) | [virtual] |
Definition at line 800 of file OgreCommon.h.
virtual void Ogre::Pool< T >::addItem | ( | const T & | i | ) | [virtual] |
Add a new item to the pool.
Definition at line 824 of file OgreCommon.h.
virtual void Ogre::Pool< T >::clear | ( | ) | [virtual] |
Clear the pool.
Reimplemented in Ogre::ResourceManager::ResourcePool.
Definition at line 830 of file OgreCommon.h.
virtual std::pair<bool, T> Ogre::Pool< T >::removeItem | ( | ) | [virtual] |
Get the next item from the pool.
Definition at line 805 of file OgreCommon.h.
ItemList Ogre::Pool< T >::mItems [protected] |
Definition at line 796 of file OgreCommon.h.
Referenced by Ogre::Pool< ResourcePtr >::addItem(), Ogre::Pool< ResourcePtr >::clear(), and Ogre::Pool< ResourcePtr >::removeItem().
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sat Jan 14 2012 18:40:46