#include <CCAutoreleasePool.h>
Public Member Functions | |
| PoolManager () | |
| ~PoolManager () | |
| void | finalize () |
| Clear all the AutoreleasePool on the pool stack. More... | |
| void | push () |
| Push a new AutoreleasePool to the pool stack. More... | |
| void | pop () |
| Pop one AutoreleasePool from the pool stack. More... | |
| void | removeObject (Object *object) |
| Remove a given object from the current autorelease pool. More... | |
| void | addObject (Object *object) |
| Add a given object to the current autorelease pool. More... | |
Static Public Member Functions | |
| static PoolManager * | sharedPoolManager () |
| static void | purgePoolManager () |
Friends | |
| class | AutoreleasePool |
| PoolManager | ( | ) |
| ~PoolManager | ( | ) |
| void addObject | ( | Object * | object) |
Add a given object to the current autorelease pool.
| object | The object to add. |
| void finalize | ( | ) |
Clear all the AutoreleasePool on the pool stack.
| void pop | ( | ) |
Pop one AutoreleasePool from the pool stack.
This method will ensure that there is at least one AutoreleasePool on the stack.
The AutoreleasePool being poped is destructed.
|
static |
| void push | ( | ) |
Push a new AutoreleasePool to the pool stack.
| void removeObject | ( | Object * | object) |
Remove a given object from the current autorelease pool.
| object | The object to be removed. |
|
static |
|
friend |