cocos2d-x  3.0Beta0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PoolManager Class Reference

#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 PoolManagersharedPoolManager ()
static void purgePoolManager ()

Friends

class AutoreleasePool

Constructor & Destructor Documentation

Member Function Documentation

void addObject ( Object object)

Add a given object to the current autorelease pool.

Parameters
objectThe object to add.
See Also
AutoreleasePool::addObject
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 purgePoolManager ( )
static
void push ( )

Push a new AutoreleasePool to the pool stack.

void removeObject ( Object object)

Remove a given object from the current autorelease pool.

Parameters
objectThe object to be removed.
See Also
AutoreleasePool::removeObject
static PoolManager*
sharedPoolManager
( )
static

Friends And Related Function Documentation

friend class AutoreleasePool
friend

The documentation for this class was generated from the following file: