gatb.core-API-0.0.0
|
Interface providing methods for dynamic allocation. More...
#include <IMemory.hpp>
Public Types | |
typedef u_int64_t | BlockSize_t |
typedef u_int64_t | TotalSize_t |
Public Member Functions | |
virtual void * | malloc (BlockSize_t size)=0 |
virtual void * | calloc (size_t nmemb, BlockSize_t size)=0 |
virtual void * | realloc (void *ptr, BlockSize_t size)=0 |
virtual void | free (void *ptr)=0 |
virtual | ~IMemoryAllocator () |
Interface providing methods for dynamic allocation.
This interface provides most common methods for creating/deleting dynamic allocation buffers.
typedef u_int64_t BlockSize_t |
Alias for the size of memory blocks handled by the interface.
typedef u_int64_t TotalSize_t |
Alias for the size of memory handled by the interface.
|
inlinevirtual |
Destructor.
|
pure virtual |
See calloc documentation.
Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.
|
pure virtual |
See free documentation.
Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.
|
pure virtual |
See malloc documentation.
Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.
|
pure virtual |
See realloc documentation.
Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.