ML Reference
|
The memory allocator used by the memory manager. More...
#include <mlMemoryAllocator.h>
Public Member Functions | |
~MLMemoryAllocator () | |
Destroys the memory allocator. | |
Static Public Member Functions | |
static void | initialize (MLAllocationCallback allocationCallback, void *allocationCallbackUserData, MLDeallocationCallback deallocationCallback, void *deallocationCallbackUserData) |
Initializes the memory allocator. | |
static void | deinitialize () |
Deinitializes the memory allocator. | |
static MLMemoryAllocator * | singleton () |
Returns the memory allocator singleton. |
The memory allocator used by the memory manager.
Definition at line 34 of file mlMemoryAllocator.h.
MLMemoryAllocator::~MLMemoryAllocator | ( | ) |
Destroys the memory allocator.
static void MLMemoryAllocator::deinitialize | ( | ) | [static] |
Deinitializes the memory allocator.
static void MLMemoryAllocator::initialize | ( | MLAllocationCallback | allocationCallback, |
void * | allocationCallbackUserData, | ||
MLDeallocationCallback | deallocationCallback, | ||
void * | deallocationCallbackUserData | ||
) | [static] |
Initializes the memory allocator.
This may be called only once, so that it is assured that only one allocator is used throughout an application.
allocationCallback | The callback function to allocate memory |
allocationCallbackUserData | The pointer to user data for the allocation callback. It can be NULL if it is not required. |
deallocationCallback | The callback function to deallocate memory |
deallocationCallbackUserData | The pointer to user data for the deallocation callback. It can be NULL if it is not required. |
static MLMemoryAllocator* MLMemoryAllocator::singleton | ( | ) | [static] |
Returns the memory allocator singleton.