hmbdc
simplify-high-performance-messaging-programming
Public Types | Public Member Functions | Protected Member Functions | List of all members
hmbdc::os::BasePtrAllocator Struct Reference

helping allocating object and its aggregated objects in a continouse memory More...

#include <Allocators.hpp>

Inheritance diagram for hmbdc::os::BasePtrAllocator:
hmbdc::os::ShmBasePtrAllocator

Public Types

enum  { fromHeap = false }
 

Public Member Functions

 BasePtrAllocator (void *base, size_t size, bool runCtor=true)
 
 BasePtrAllocator (BasePtrAllocator const &)=delete
 
BasePtrAllocatoroperator= (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)
 

Detailed Description

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)


The documentation for this struct was generated from the following file: