Flow
Documentation for the Flow C++ Library
|
A memory resource holder interface for the PolymorphicAllocator. Responsible for allocate and deallocate raw memory. More...
#include <flow_memory_resource.h>
Public Member Functions | |
virtual | ~MemoryResource ()=default |
void * | allocate (std::size_t bytes, std::size_t alignment=alignof(std::max_align_t)) |
void | deallocate (void *address, std::size_t bytes, std::size_t alignment=alignof(std::max_align_t)) |
Protected Member Functions | |
virtual void * | allocateImp (std::size_t bytes, std::size_t alignment)=0 |
virtual void | deallocateImp (void *address, std::size_t bytes, std::size_t alignment)=0 |
A memory resource holder interface for the PolymorphicAllocator. Responsible for allocate and deallocate raw memory.
Definition at line 9 of file flow_memory_resource.h.
|
virtualdefault |
|
inline |
Definition at line 13 of file flow_memory_resource.h.
References allocateImp().
|
protectedpure virtual |
Implemented in flow::ArenaMemoryResource, flow::DefaultMemoryResource, flow::PoolMemoryResource, and flow::StackMemoryResource.
Referenced by allocate().
|
inline |
Definition at line 17 of file flow_memory_resource.h.
References deallocateImp().
|
protectedpure virtual |
Implemented in flow::ArenaMemoryResource, flow::DefaultMemoryResource, flow::PoolMemoryResource, and flow::StackMemoryResource.
Referenced by deallocate().