hmbdc
simplify-high-performance-messaging-programming
|
helping allocating object and its aggregated objects in a continouse memory More...
#include <Allocators.hpp>
Public Types | |
enum | { fromHeap = false } |
Public Member Functions | |
BasePtrAllocator (void *base, size_t size, bool runCtor=true) | |
BasePtrAllocator (BasePtrAllocator const &)=delete | |
BasePtrAllocator & | operator= (BasePtrAllocator const &)=delete |
template<typename T , typename... Args> | |
T * | allocate (size_t alignment, Args &&...args) |
void * | memalign (size_t alignment, size_t size) |
template<typename T > | |
void | unallocate (T *ptr) |
void | free (void *) |
Protected Member Functions | |
void | set (void *base, size_t size, bool runCtor=true) |
helping allocating object and its aggregated objects in a continouse memory
the class working with this cannot have significant dtor (dtor that does more than just freeing memory)