Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Coherent::MemoryManagement::IAllocator Class Referenceabstract

Interface to allow custom memory management. More...

#include <Coherent/Libraries/MemoryManagement/IAllocator.h>

Public Member Functions

virtual COHERENT_MEMORY_PUBLIC ~IAllocator ()=0
 virtual destructor
 
virtual void * Allocate (size_t size)=0
 Allocates size amount of bytes. More...
 
virtual void Deallocate (void *ptr)=0
 Deallocates a pointer. More...
 

Detailed Description

Interface to allow custom memory management.

Member Function Documentation

virtual void* Coherent::MemoryManagement::IAllocator::Allocate ( size_t  size)
pure virtual

Allocates size amount of bytes.

Parameters
sizenumber of bytes to allocate
Returns
pointer to the allocated bytes
virtual void Coherent::MemoryManagement::IAllocator::Deallocate ( void *  ptr)
pure virtual

Deallocates a pointer.

Parameters
ptrpointer to the bytes to deallocate