16 #ifndef TYPES_MEMALLOCATOR_HPP_ 17 #define TYPES_MEMALLOCATOR_HPP_ 66 FwSizeType alignment =
alignof(std::max_align_t)) = 0;
89 FwSizeType alignment =
alignof(std::max_align_t));
106 FwSizeType alignment =
alignof(std::max_align_t));
123 FwSizeType alignment =
alignof(std::max_align_t));
virtual void * allocate(const FwEnumStoreType identifier, FwSizeType &size, bool &recoverable, FwSizeType alignment=alignof(std::max_align_t))=0
PlatformSizeType FwSizeType
static MemAllocatorRegistry & getInstance()
get the singleton registry
MemAllocator & getAnAllocator(const MemoryAllocation::MemoryAllocatorType type)
The number of enumerated constants.
void * checkedAllocate(const FwEnumStoreType identifier, FwSizeType &size, bool &recoverable, FwSizeType alignment=alignof(std::max_align_t))
Memory Allocation base class.
MemAllocator & getAllocator(const MemoryAllocation::MemoryAllocatorType type)
virtual void deallocate(const FwEnumStoreType identifier, void *ptr)=0
Implementation of malloc based allocator.
void registerAllocator(const MemoryAllocation::MemoryAllocatorType type, MemAllocator &allocator)
register an allocator for the given type
~MemAllocatorRegistry()=default