|
Foundation
|
General Purpose Allocator (GPA) interface. More...
#include <Allocator.hpp>
Public Member Functions | |
| virtual | ~Allocator ()=default |
| virtual pointer | Allocate (size_type size, size_t alignment=alignof(std::max_align_t))=0 |
| virtual void | Deallocate (pointer ptr)=0 |
| virtual pointer | Reallocate (pointer ptr, size_type new_size, size_t alignment)=0 |
| virtual void | QueryBudget (size_t &used, size_t &budget) const =0 |
| Arena | AllocateArena (size_type size, size_t alignment) |
| Arena | AllocateArena (size_type size) |
| void | DeallocateArena (Arena arena) |
| Allocator * | Ptr () |
General Purpose Allocator (GPA) interface.
|
virtualdefault |
|
pure virtual |
Implemented in Foundation::Core::AllocatorHeap.
Implemented in Foundation::Core::AllocatorHeap, and Foundation::Core::AllocatorStack.
|
inline |
|
pure virtual |
Implemented in Foundation::Core::AllocatorHeap, and Foundation::Core::AllocatorStack.
|
pure virtual |
Implemented in Foundation::Core::AllocatorHeap, and Foundation::Core::AllocatorStack.