MemoryAllocatorStdlib Class Reference

Implementation of IMemoryAllocator interface using standard system functions. More...

#include <MemoryCommon.hpp>

Inheritance diagram for MemoryAllocatorStdlib:
Inheritance graph

Public Member Functions

void * malloc (BlockSize_t size)
void * calloc (size_t nmemb, BlockSize_t size)
void * realloc (void *ptr, BlockSize_t size)
void free (void *ptr)
- Public Member Functions inherited from IMemoryAllocator
virtual ~IMemoryAllocator ()

Static Public Member Functions

static IMemoryAllocatorsingleton ()

Additional Inherited Members

- Public Types inherited from IMemoryAllocator
typedef u_int64_t BlockSize_t
typedef u_int64_t TotalSize_t

Detailed Description

Implementation of IMemoryAllocator interface using standard system functions.

This implementation provides a few methods common to all operating systems. It uses functions from stdlib.h

Member Function Documentation

void* calloc ( size_t  nmemb,
BlockSize_t  size 

See calloc documentation.

Implements IMemoryAllocator.

void free ( void *  ptr)

See free documentation.

Implements IMemoryAllocator.

void* malloc ( BlockSize_t  size)

See malloc documentation.

Implements IMemoryAllocator.

void* realloc ( void *  ptr,
BlockSize_t  size 

See realloc documentation.

Implements IMemoryAllocator.

static IMemoryAllocator& singleton ( )


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