MeVisLab Toolbox Reference
|
The memory allocator used by the memory manager. More...
#include <mlMemoryAllocator.h>
Static Public Member Functions | |
static void | initialize (MLAllocationCallback allocationCallback, MLDeallocationCallback deallocationCallback) |
Initializes the memory allocator. | |
static void * | allocate (size_t size) |
Allocates memory of the given size. Uses malloc if no allocationCallback was specified. | |
static void | deallocate (void *data) |
Deallocates memory. Uses free if no deallocationCallback was specified. | |
The memory allocator used by the memory manager.
Definition at line 29 of file mlMemoryAllocator.h.
Allocates memory of the given size. Uses malloc
if no allocationCallback was specified.
Deallocates memory. Uses free
if no deallocationCallback was specified.
|
static |
Initializes the memory allocator.
This may be called only once; this way, it is assured that only one allocator is used throughout an application.
allocationCallback | The callback function to allocate memory. |
deallocationCallback | The callback function to deallocate memory. |