gatb.core-API-1.4.2
IMemoryAllocator Class Referenceabstract

Interface providing methods for dynamic allocation. More...

#include <IMemory.hpp>

Inheritance diagram for IMemoryAllocator:
Inheritance graph

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 ()
 

Detailed Description

Interface providing methods for dynamic allocation.

This interface provides most common methods for creating/deleting dynamic allocation buffers.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

virtual ~IMemoryAllocator ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void* calloc ( size_t  nmemb,
BlockSize_t  size 
)
pure virtual

See calloc documentation.

Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.

virtual void free ( void *  ptr)
pure virtual

See free documentation.

Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.

virtual void* malloc ( BlockSize_t  size)
pure virtual

See malloc documentation.

Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.

virtual void* realloc ( void *  ptr,
BlockSize_t  size 
)
pure virtual

See realloc documentation.

Implemented in MemoryCommon, MemoryBounded, MemorySizeStore, and MemoryAllocatorStdlib.


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