Base class for implementing a custom memory allocator.
More...
#include <common.h>
Base class for implementing a custom memory allocator.
Allocate() and Deallocate() implemented by child classes inheriting from this class are used for allocating and deallocating memory of objects in the Diarkis library. If a custom allocator is not implemented, DiarkisDefaultAllocator is called.
◆ ICustomAllocator()
Diarkis::ICustomAllocator::ICustomAllocator |
( |
| ) |
|
|
inline |
◆ ~ICustomAllocator()
virtual Diarkis::ICustomAllocator::~ICustomAllocator |
( |
| ) |
|
|
inlinevirtual |
◆ Allocate()
virtual void* Diarkis::ICustomAllocator::Allocate |
( |
size_t |
size, |
|
|
int |
flag |
|
) |
| |
|
pure virtual |
◆ AlignedAllocate()
virtual void* Diarkis::ICustomAllocator::AlignedAllocate |
( |
size_t |
size, |
|
|
size_t |
align, |
|
|
int |
flag |
|
) |
| |
|
pure virtual |
◆ Deallocate()
virtual void Diarkis::ICustomAllocator::Deallocate |
( |
void * |
ptr | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- client/cpp/libDiarkis/include/diarkis/common.h