A "standard" allocation policy for use with AllocatedObject and STLAllocator. More...
#include <OgreMemoryStdAlloc.h>
Static Public Member Functions | |
static 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. | |
Private Member Functions | |
StdAllocPolicy () |
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.
Definition at line 53 of file OgreMemoryStdAlloc.h.
Ogre::StdAllocPolicy::StdAllocPolicy | ( | ) | [private] |
Definition at line 87 of file OgreMemoryStdAlloc.h.
static void* Ogre::StdAllocPolicy::allocateBytes | ( | size_t | count, | |
const char * | = 0 , |
|||
int | = 0 , |
|||
const char * | = 0 | |||
) | [static] |
Definition at line 56 of file OgreMemoryStdAlloc.h.
References OGRE_MEMORY_TRACKER.
static void Ogre::StdAllocPolicy::deallocateBytes | ( | void * | ptr | ) | [static] |
Definition at line 72 of file OgreMemoryStdAlloc.h.
static size_t Ogre::StdAllocPolicy::getMaxAllocationSize | ( | ) | [static] |
Get the maximum size of a single allocation.
Definition at line 81 of file OgreMemoryStdAlloc.h.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Wed Nov 3 2010 19:24:56