Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Allocator Class Referenceabstract

#include "OVR_Allocator.h"

Inheritance diagram for OVR::Allocator:
Inheritance graph
Collaboration diagram for OVR::Allocator:
Collaboration graph

Public Member Functions

virtual void * Alloc (UPInt size)=0
 
virtual void * AllocDebug (UPInt size, const char *file, unsigned line)
 
virtual void * Realloc (void *p, UPInt newSize)=0
 
virtual void Free (void *p)=0
 
virtual void * AllocAligned (UPInt size, UPInt align)
 
virtual void FreeAligned (void *p)
 

Static Public Member Functions

static AllocatorGetInstance ()
 
static void setInstance (Allocator *palloc)
 

Protected Member Functions

virtual void onSystemShutdown ()
 

Static Private Attributes

static AllocatorpInstance = 0
 

Friends

class System
 

Detailed Description

Definition at line 177 of file OVR_Allocator.h.

Member Function Documentation

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 42 of file OVR_Allocator.cpp.

virtual void* OVR::Allocator::AllocDebug ( UPInt  size,
const char *  file,
unsigned  line 
)
inlinevirtual

Reimplemented in OVR::DefaultAllocator.

Definition at line 189 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 58 of file OVR_Allocator.cpp.

static Allocator* OVR::Allocator::GetInstance ( )
inlinestatic

Definition at line 216 of file OVR_Allocator.h.

virtual void OVR::Allocator::onSystemShutdown ( )
inlineprotectedvirtual
virtual void* OVR::Allocator::Realloc ( void *  p,
UPInt  newSize 
)
pure virtual

Implemented in OVR::DefaultAllocator.

static void OVR::Allocator::setInstance ( Allocator palloc)
inlinestatic

Definition at line 225 of file OVR_Allocator.h.

Friends And Related Function Documentation

friend class System
friend

Definition at line 179 of file OVR_Allocator.h.

Field Documentation

Allocator * OVR::Allocator::pInstance = 0
staticprivate

Definition at line 233 of file OVR_Allocator.h.


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