OGRE  1.9.0
Static Public Member Functions | Private Member Functions | List of all members
Ogre::NedAllocPolicy Class Reference

An allocation policy for use with AllocatedObject and STLAllocator. More...

#include <OgreMemoryNedAlloc.h>

Static Public Member Functions

static voidallocateBytes (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

 NedAllocPolicy ()
 

Detailed Description

An 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 allocation policy uses nedmalloc (http://nedprod.com/programs/portable/nedmalloc/index.html).

Definition at line 66 of file OgreMemoryNedAlloc.h.

Constructor & Destructor Documentation

◆ NedAllocPolicy()

Ogre::NedAllocPolicy::NedAllocPolicy ( )
private

Definition at line 85 of file OgreMemoryNedAlloc.h.

Member Function Documentation

◆ allocateBytes()

static void * Ogre::NedAllocPolicy::allocateBytes ( size_t  count,
const char file = 0,
int  line = 0,
const char func = 0 
)
static

Definition at line 69 of file OgreMemoryNedAlloc.h.

◆ deallocateBytes()

static void Ogre::NedAllocPolicy::deallocateBytes ( void ptr)
static

Definition at line 74 of file OgreMemoryNedAlloc.h.

◆ getMaxAllocationSize()

static size_t Ogre::NedAllocPolicy::getMaxAllocationSize ( )
static

Get the maximum size of a single allocation.

Definition at line 79 of file OgreMemoryNedAlloc.h.


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