24 #ifndef SKA_CHEETAH_DATA_CACHINGALLOCATORIMPLBASE_H 25 #define SKA_CHEETAH_DATA_CACHINGALLOCATORIMPLBASE_H 40 template <
typename DerivedType,
typename T>
44 typedef std::multimap<std::size_t, T*> FreeBlocksType;
45 typedef std::map<T*, std::size_t> AllocatedBlocksType;
61 T*
allocate(std::size_t num_elements);
72 FreeBlocksType _free_blocks;
73 AllocatedBlocksType _allocated_blocks;
82 #include "cheetah/data/detail/CachingAllocatorImplBase.cpp" 84 #endif // SKA_CHEETAH_DATA_CACHINGALLOCATORIMPLBASE_H Some limits and constants for FLDO.
T * allocate(std::size_t num_elements)
Allocate memory.
CachingAllocatorImplBase()
Create a new instance.
Base class for CachingAllocator implementations.
void deallocate(T *ptr, std::size_t)
Deallocate memory.