Create an instance of a NSAutoreleasePool. More...
Public Member Functions | |
| AutoreleasePool () BURGER_NOEXCEPT | |
| Create an autoreleasepool. | |
| ~AutoreleasePool () | |
| Release an autoreleasepool. | |
Private Attributes | |
| void * | m_pNSAutoreleasePool |
| Pointer to the allocated NSAutoreleasePool. | |
Create an instance of a NSAutoreleasePool.
For code written for Darwin based platforms, it may be needed to create an autoreleasepool. While modern compilers have a keyword of @autoreleasepool, older compilers do not. This class handles the case for both older and modern compilers for creating and releasing an autoreleasepool.
| Burger::AutoreleasePool::AutoreleasePool | ( | ) |
Create an autoreleasepool.
Calls [[NSAutoreleasePool alloc] init] and stores the pointer.
| Burger::AutoreleasePool::~AutoreleasePool | ( | ) |
Release an autoreleasepool.
Calls [m_pAutoPool release] to release the pool
|
private |
Pointer to the allocated NSAutoreleasePool.