Definition of a pool of resources, which users can use to reuse similar resources many times without destroying and recreating them. More...
#include <OgreResourceManager.h>
Public Member Functions | |
ResourcePool (const String &name) | |
~ResourcePool () | |
const String & | getName () const |
Get the name of the pool. | |
void | clear () |
Clear the pool. | |
virtual std::pair< bool, ResourcePtr > | removeItem () |
Get the next item from the pool. | |
virtual void | addItem (const ResourcePtr &i) |
Add a new item to the pool. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Protected Types | |
typedef list< ResourcePtr >::type | ItemList |
Protected Attributes | |
String | mName |
ItemList | mItems |
Definition of a pool of resources, which users can use to reuse similar resources many times without destroying and recreating them.
Definition at line 429 of file OgreResourceManager.h.
typedef list<ResourcePtr >::type Ogre::Pool< ResourcePtr >::ItemList [protected, inherited] |
Definition at line 822 of file OgreCommon.h.
Ogre::ResourceManager::ResourcePool::ResourcePool | ( | const String & | name | ) |
Ogre::ResourceManager::ResourcePool::~ResourcePool | ( | ) |
virtual void Ogre::Pool< ResourcePtr >::addItem | ( | const ResourcePtr & | i | ) | [virtual, inherited] |
Add a new item to the pool.
Definition at line 851 of file OgreCommon.h.
References Ogre::Pool< T >::mItems, and OGRE_LOCK_AUTO_MUTEX.
void Ogre::ResourceManager::ResourcePool::clear | ( | void | ) | [virtual] |
Clear the pool.
Reimplemented from Ogre::Pool< ResourcePtr >.
const String& Ogre::ResourceManager::ResourcePool::getName | ( | ) | const |
Get the name of the pool.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
virtual std::pair<bool, ResourcePtr > Ogre::Pool< ResourcePtr >::removeItem | ( | ) | [virtual, inherited] |
Get the next item from the pool.
Definition at line 832 of file OgreCommon.h.
References Ogre::Pool< T >::mItems, and OGRE_LOCK_AUTO_MUTEX.
ItemList Ogre::Pool< ResourcePtr >::mItems [protected, inherited] |
Definition at line 823 of file OgreCommon.h.
String Ogre::ResourceManager::ResourcePool::mName [protected] |
Definition at line 432 of file OgreResourceManager.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:39:31 2012