OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::StdAllocPolicy Class Reference

A "standard" allocation policy for use with AllocatedObject and STLAllocator. More...

#include <OgreMemoryStdAlloc.h>

Static Public Member Functions

static DECL_MALLOC void * allocateBytes (size_t count, const char *=0, int=0, const char *=0)
 
static void deallocateBytes (void *ptr)
 
static size_t getMaxAllocationSize ()
 Get the maximum size of a single allocation. More...
 

Private Member Functions

 StdAllocPolicy ()
 

Detailed Description

A "standard" allocation policy for use with AllocatedObject and STLAllocator.

This is the class that actually does the allocation and deallocation of physical memory, and is what you will want to provide a custom version of if you wish to change how memory is allocated.

This class just delegates to the global malloc/free.

Definition at line 56 of file OgreMemoryStdAlloc.h.

Constructor & Destructor Documentation

Ogre::StdAllocPolicy::StdAllocPolicy ( )
inlineprivate

Definition at line 90 of file OgreMemoryStdAlloc.h.

Member Function Documentation

static DECL_MALLOC void* Ogre::StdAllocPolicy::allocateBytes ( size_t  count,
const char *  = 0,
int  = 0,
const char *  = 0 
)
inlinestatic

Definition at line 59 of file OgreMemoryStdAlloc.h.

static void Ogre::StdAllocPolicy::deallocateBytes ( void *  ptr)
inlinestatic

Definition at line 75 of file OgreMemoryStdAlloc.h.

static size_t Ogre::StdAllocPolicy::getMaxAllocationSize ( )
inlinestatic

Get the maximum size of a single allocation.

Definition at line 84 of file OgreMemoryStdAlloc.h.

References Ogre::max().


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