14 #ifndef HTGS_MEMORYALLOCATOR_HPP 15 #define HTGS_MEMORYALLOCATOR_HPP 96 virtual void memFree(T *&memory) = 0;
100 #endif //HTGS_MEMORYALLOCATOR_HPP Implements the the base class for memory allocators to remove the template argument and provide gener...
Create a base class for a memory allocator that removes the template and defines common functionality...
Definition: AnyMemoryAllocator.hpp:24
virtual void memFree(T *&memory)=0
Pure virtual function the frees memory.
Abstract class that describes how memory is allocated and freed.
Definition: IMemoryAllocator.hpp:67
IMemoryAllocator(size_t size)
Creates a memory allocator.
Definition: IMemoryAllocator.hpp:73
virtual ~IMemoryAllocator()
Destructor.
Definition: IMemoryAllocator.hpp:78
virtual T * memAlloc()=0
Pure virtual function that allocates a piece of memory.
size_t size() const
Gets the size.
Definition: AnyMemoryAllocator.hpp:41
Definition: Bookkeeper.hpp:23