mirror of https://github.com/axmolengine/axmol.git
31 lines
495 B
Plaintext
31 lines
495 B
Plaintext
|
|
||
|
#include "CCObject.h"
|
||
|
#include "CCMutableArray.h"
|
||
|
|
||
|
namespace cocos2d {
|
||
|
class CCAutoreleasePool : public CCObject
|
||
|
{
|
||
|
|
||
|
CCAutoreleasePool(void);
|
||
|
void addObject(CCObject *pObject);
|
||
|
void removeObject(CCObject *pObject);
|
||
|
void clear();
|
||
|
};
|
||
|
|
||
|
class CCPoolManager
|
||
|
{
|
||
|
|
||
|
CCPoolManager();
|
||
|
void finalize();
|
||
|
void push();
|
||
|
void pop();
|
||
|
void removeObject(CCObject* pObject);
|
||
|
void addObject(CCObject* pObject);
|
||
|
static CCPoolManager* getInstance();
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
|