|
OGRE
1.9.0
|
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given boundary (which should be a power of 2). More...
#include <OgreMemoryNedPooling.h>
Public Types | |
| typedef int | IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0) ?+1 :-1] |
Static Public Member Functions | |
| static void * | allocateBytes (size_t count, const char *file=0, int line=0, const char *func=0) |
| static void | deallocateBytes (void *ptr) |
| static size_t | getMaxAllocationSize () |
| Get the maximum size of a single allocation. | |
Private Member Functions | |
| NedPoolingAlignedPolicy () | |
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given boundary (which should be a power of 2).
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 105 of file OgreMemoryNedPooling.h.
| typedef int Ogre::NedPoolingAlignedPolicy< Alignment >::IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0) ?+1 :-1] |
Definition at line 109 of file OgreMemoryNedPooling.h.
|
private |
Definition at line 130 of file OgreMemoryNedPooling.h.
|
static |
Definition at line 112 of file OgreMemoryNedPooling.h.
References Ogre::NedPoolingImpl::allocBytesAligned().
|
static |
Definition at line 118 of file OgreMemoryNedPooling.h.
References Ogre::NedPoolingImpl::deallocBytesAligned().
|
static |
Get the maximum size of a single allocation.
Definition at line 124 of file OgreMemoryNedPooling.h.
1.13.2