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) |
Allocate memory of the given size. Uses malloc if no allocationCallback was specified. | |
static void | deallocate (void *data) |
Deallocate memory. Uses free if no deallocationCallback was specified. | |
The memory allocator used by the memory manager.
Definition at line 29 of file mlMemoryAllocator.h.
Allocate memory of the given size. Uses malloc if no allocationCallback was specified.
Deallocate memory. Uses free if no deallocationCallback was specified.
|
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 |
deallocationCallback | The callback function to deallocate memory |