ML Reference
MeVis/Foundation/Sources/MLMemoryManager/Include/mlMemoryAllocator.h File Reference
#include <cstddef>
#include "../mlMemoryManagerDllExport.h"

Go to the source code of this file.

Classes

class  MLMemoryAllocator
 The memory allocator used by the memory manager. More...

Typedefs

typedef void *(* MLAllocationCallback )(size_t size, void *userData)
 The callback function type for allocating memory of a certain size.
typedef void(* MLDeallocationCallback )(void *data, size_t size, void *userData)
 The callback function type for deallocating memory.

Typedef Documentation

typedef void*(* MLAllocationCallback)(size_t size, void *userData)

The callback function type for allocating memory of a certain size.

Parameters:
sizeThe size of the data that should be allocated
userDataThe pointer to data which might be necessary for the memory allocation

Definition at line 21 of file mlMemoryAllocator.h.

typedef void(* MLDeallocationCallback)(void *data, size_t size, void *userData)

The callback function type for deallocating memory.

Parameters:
dataThe data that must be deleted
sizeThe size of the data that must be deleted
userDataThe pointer to data which might be necessary for deallocating the memory

Definition at line 27 of file mlMemoryAllocator.h.