# Ogre::NedAllocPolicy Class Reference

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

`#include <OgreMemoryNedAlloc.h>`

Inheritance diagram for Ogre::NedAllocPolicy:

[legend]

List of all members.

## 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)

## 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 59 of file OgreMemoryNedAlloc.h.

## Constructor & Destructor Documentation

Ogre::NedAllocPolicy::NedAllocPolicy | ( |  | ) | `[private]`

Definition at line 74 of file OgreMemoryNedAlloc.h.

## Member Function Documentation

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

Definition at line 62 of file OgreMemoryNedAlloc.h.

References Ogre::NedAllocImpl::allocBytes().

static void Ogre::NedAllocPolicy::deallocateBytes | ( | void * | ptr | ) | `[static]`

Definition at line 67 of file OgreMemoryNedAlloc.h.

References Ogre::NedAllocImpl::deallocBytes().

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

- OgreMemoryNedAlloc.h

Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:04:09 2009