#include <OVR_Allocator.h>
Public Member Functions | |
virtual void * | Alloc (UPInt size)=0 |
virtual void * | AllocAligned (UPInt size, UPInt align) |
virtual void * | AllocDebug (UPInt size, const char *file, unsigned line) |
virtual void | Free (void *p)=0 |
virtual void | FreeAligned (void *p) |
virtual void * | Realloc (void *p, UPInt newSize)=0 |
Static Public Member Functions | |
static Allocator * | GetInstance () |
static void | setInstance (Allocator *palloc) |
Protected Member Functions | |
virtual void | onSystemShutdown () |
Static Private Attributes | |
static Allocator * | pInstance = 0 |
Friends | |
class | System |
Definition at line 166 of file OVR_Allocator.h.
virtual void* OVR::Allocator::Alloc | ( | UPInt | size | ) | [pure virtual] |
Implemented in OVR::DefaultAllocator.
void * OVR::Allocator::AllocAligned | ( | UPInt | size, |
UPInt | align | ||
) | [virtual] |
Definition at line 31 of file OVR_Allocator.cpp.
virtual void* OVR::Allocator::AllocDebug | ( | UPInt | size, |
const char * | file, | ||
unsigned | line | ||
) | [inline, virtual] |
Reimplemented in OVR::DefaultAllocator.
Definition at line 178 of file OVR_Allocator.h.
virtual void OVR::Allocator::Free | ( | void * | p | ) | [pure virtual] |
Implemented in OVR::DefaultAllocator.
void OVR::Allocator::FreeAligned | ( | void * | p | ) | [virtual] |
Definition at line 47 of file OVR_Allocator.cpp.
static Allocator* OVR::Allocator::GetInstance | ( | ) | [inline, static] |
Definition at line 205 of file OVR_Allocator.h.
virtual void OVR::Allocator::onSystemShutdown | ( | ) | [inline, protected, virtual] |
Reimplemented in OVR::Allocator_SingletonSupport< D >, and OVR::Allocator_SingletonSupport< DefaultAllocator >.
Definition at line 211 of file OVR_Allocator.h.
virtual void* OVR::Allocator::Realloc | ( | void * | p, |
UPInt | newSize | ||
) | [pure virtual] |
Implemented in OVR::DefaultAllocator.
static void OVR::Allocator::setInstance | ( | Allocator * | palloc | ) | [inline, static] |
Definition at line 214 of file OVR_Allocator.h.
friend class System [friend] |
Definition at line 168 of file OVR_Allocator.h.
Allocator * OVR::Allocator::pInstance = 0 [static, private] |
Definition at line 222 of file OVR_Allocator.h.