Memory
Core
Collaboration diagram for Memory:

## Files

file | OgreMemoryAllocatorConfig.h
| This file configures Ogre's memory allocators.

## Namespaces

| Ogre

## Classes

class | Ogre::AlignedMemory
| Class to provide aligned memory allocate functionality. More...
class | Ogre::AllocatedObject< Alloc >
| Superclass for all objects that wish to use custom memory allocators when their new / delete operators are called. More...
class | Ogre::NedAlignedAllocPolicy< Alignment >
| An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given boundary (which should be a power of 2). More...
class | Ogre::NedAllocImpl
| Non-templated utility class just to hide nedmalloc. More...
class | Ogre::NedAllocPolicy
| An allocation policy for use with AllocatedObject and STLAllocator. More...
class | Ogre::NedPoolingAlignedPolicy< Alignment >
| An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given boundary (which should be a power of 2). More...
class | Ogre::NedPoolingImpl
| Non-templated utility class just to hide nedmalloc. More...
class | Ogre::NedPoolingPolicy
| An allocation policy for use with AllocatedObject and STLAllocator. More...
class | Ogre::StdAlignedAllocPolicy< Alignment >
| A "standard" allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given boundary (which should be a power of 2). More...
class | Ogre::StdAllocPolicy
| A "standard" allocation policy for use with AllocatedObject and STLAllocator. More...
class | Ogre::STLAllocator< T, AllocPolicy >
struct | Ogre::STLAllocatorBase< T >
| Wrapper class for operating as an STL container allocator. More...
struct | Ogre::STLAllocatorBase< const T >

## Macros

#define | OGRE_ALLOC_T(T, count, category) static_cast<T*>(::Ogre::CategorisedAllocPolicy<category>::allocateBytes(sizeof(T)*(count)))
| Allocate a block of memory for a primitive type, and indicate the category of usage. More...
#define | OGRE_ALLOC_T_ALIGN(T, count, category, align) static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(sizeof(T)*(count)))
| Allocate a block of memory for a primitive type aligned to user defined boundaries, and indicate the category of usage. More...
#define | OGRE_ALLOC_T_SIMD(T, count, category) static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(sizeof(T)*(count)))
| Allocate a block of memory for a primitive type aligned to SIMD boundaries, and indicate the category of usage. More...
#define | OGRE_DELETE delete
#define | OGRE_DELETE_ARRAY_T(ptr, T, count, category) if(ptr){for (size_t b = 0; b < count; ++b) { (ptr)[b].~T();} ::Ogre::CategorisedAllocPolicy<category>::deallocateBytes((void*)ptr);}
| Free the memory allocated with OGRE_NEW_ARRAY_T. Category is required to be restated to ensure the matching policy is used, count and type to call destructor. More...
#define | OGRE_DELETE_ARRAY_T_ALIGN(ptr, T, count, category, align) if(ptr){for (size_t _b = 0; _b < count; ++_b) { (ptr)[_b].~T();} ::Ogre::CategorisedAlignAllocPolicy<category, align>::deallocateBytes((void*)ptr);}
| Free the memory allocated with OGRE_NEW_ARRAY_T_ALIGN. Category is required to be restated to ensure the matching policy is used, count and type to call destructor. More...
#define | OGRE_DELETE_ARRAY_T_SIMD(ptr, T, count, category) if(ptr){for (size_t b = 0; b < count; ++b) { (ptr)[b].~T();} ::Ogre::CategorisedAlignAllocPolicy<category>::deallocateBytes((void*)ptr);}
| Free the memory allocated with OGRE_NEW_ARRAY_T_SIMD. Category is required to be restated to ensure the matching policy is used, count and type to call destructor. More...
#define | OGRE_DELETE_T(ptr, T, category) if(ptr){(ptr)->~T(); ::Ogre::CategorisedAllocPolicy<category>::deallocateBytes((void*)ptr);}
| Free the memory allocated with OGRE_NEW_T. Category is required to be restated to ensure the matching policy is used. More...
#define | OGRE_DELETE_T_ALIGN(ptr, T, category, align) if(ptr){(ptr)->~T(); ::Ogre::CategorisedAlignAllocPolicy<category, align>::deallocateBytes((void*)ptr);}
| Free the memory allocated with OGRE_NEW_T_ALIGN. Category is required to be restated to ensure the matching policy is used. More...
#define | OGRE_DELETE_T_SIMD(ptr, T, category) if(ptr){(ptr)->~T(); ::Ogre::CategorisedAlignAllocPolicy<category>::deallocateBytes((void*)ptr);}
| Free the memory allocated with OGRE_NEW_T_SIMD. Category is required to be restated to ensure the matching policy is used. More...
#define | OGRE_FREE(ptr, category) ::Ogre::CategorisedAllocPolicy<category>::deallocateBytes((void*)ptr)
| Free the memory allocated with OGRE_MALLOC or OGRE_ALLOC_T. Category is required to be restated to ensure the matching policy is used. More...
#define | OGRE_FREE_ALIGN(ptr, category, align) ::Ogre::CategorisedAlignAllocPolicy<category, align>::deallocateBytes((void*)ptr)
| Free the memory allocated with either OGRE_MALLOC_ALIGN or OGRE_ALLOC_T_ALIGN. Category is required to be restated to ensure the matching policy is used. More...
#define | OGRE_FREE_SIMD(ptr, category) ::Ogre::CategorisedAlignAllocPolicy<category>::deallocateBytes((void*)ptr)
| Free the memory allocated with either OGRE_MALLOC_SIMD or OGRE_ALLOC_T_SIMD. Category is required to be restated to ensure the matching policy is used. More...
#define | OGRE_MALLOC(bytes, category) ::Ogre::CategorisedAllocPolicy<category>::allocateBytes(bytes)
| Allocate a block of raw memory, and indicate the category of usage. More...
#define | OGRE_MALLOC_ALIGN(bytes, category, align) ::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(bytes)
| Allocate a block of raw memory aligned to user defined boundaries, and indicate the category of usage. More...
#define | OGRE_MALLOC_SIMD(bytes, category) ::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(bytes)
| Allocate a block of raw memory aligned to SIMD boundaries, and indicate the category of usage. More...
#define | OGRE_NEW new
#define | OGRE_NEW_ARRAY_T(T, count, category) ::Ogre::constructN(static_cast<T*>(::Ogre::CategorisedAllocPolicy<category>::allocateBytes(sizeof(T)*(count))), count)
| Allocate a block of memory for 'count' primitive types - do not use for classes that inherit from AllocatedObject. More...
#define | OGRE_NEW_ARRAY_T_ALIGN(T, count, category, align) ::Ogre::constructN(static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(sizeof(T)*(count))), count)
| Allocate a block of memory for 'count' primitive types aligned to user defined boundaries - do not use for classes that inherit from AllocatedObject. More...
#define | OGRE_NEW_ARRAY_T_SIMD(T, count, category) ::Ogre::constructN(static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(sizeof(T)*(count))), count)
| Allocate a block of memory for 'count' primitive types aligned to SIMD boundaries - do not use for classes that inherit from AllocatedObject. More...
#define | OGRE_NEW_T(T, category) new (::Ogre::CategorisedAllocPolicy<category>::allocateBytes(sizeof(T))) T
| Allocate space for one primitive type, external type or non-virtual type with constructor parameters. More...
#define | OGRE_NEW_T_ALIGN(T, category, align) new (::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(sizeof(T))) T
| Allocate space for one primitive type, external type or non-virtual type aligned to user defined boundaries. More...
#define | OGRE_NEW_T_SIMD(T, category) new (::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(sizeof(T))) T
| Allocate space for one primitive type, external type or non-virtual type aligned to SIMD boundaries. More...

## Enumerations

enum | Ogre::MemoryCategory { Ogre::MEMCATEGORY_GENERAL = 0, Ogre::MEMCATEGORY_GEOMETRY = 1, Ogre::MEMCATEGORY_ANIMATION = 2, Ogre::MEMCATEGORY_SCENE_CONTROL = 3, Ogre::MEMCATEGORY_SCENE_OBJECTS = 4, Ogre::MEMCATEGORY_RESOURCE = 5, Ogre::MEMCATEGORY_SCRIPTING = 6, Ogre::MEMCATEGORY_RENDERSYS = 7, Ogre::MEMCATEGORY_COUNT = 8 }
| A set of categories that indicate the purpose of a chunk of memory being allocated. More...

## Functions

template<typename T >
T * | Ogre::constructN (T *basePtr, size_t count)
| Utility function for constructing an array of objects with placement new, without using new[] (which allocates an undocumented amount of extra memory and so isn't appropriate for custom allocators). More...
template<typename T , typename T2 , typename P >
bool | Ogre::operator!= (STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
| determine equality, can memory from another allocator be released by this allocator, (ISO C++) More...
template<typename T , typename P , typename OtherAllocator >
bool | Ogre::operator!= (STLAllocator< T, P > const &, OtherAllocator const &)
| determine equality, can memory from another allocator be released by this allocator, (ISO C++) More...
template<typename T , typename T2 , typename P >
bool | Ogre::operator== (STLAllocator< T, P > const &, STLAllocator< T2, P > const &)
| determine equality, can memory from another allocator be released by this allocator, (ISO C++) More...
template<typename T , typename P , typename OtherAllocator >
bool | Ogre::operator== (STLAllocator< T, P > const &, OtherAllocator const &)
| determine equality, can memory from another allocator be released by this allocator, (ISO C++) More...

## Detailed Description

## Macro Definition Documentation

## OGRE_ALLOC_T

#define OGRE_ALLOC_T | ( |  | T,
|  |  | count,
|  |  | category
| ) |  | static_cast<T*>(::Ogre::CategorisedAllocPolicy<category>::allocateBytes(sizeof(T)*(count)))

Allocate a block of memory for a primitive type, and indicate the category of usage.

Definition at line 428 of file OgreMemoryAllocatorConfig.h.

Referenced by Ogre::AxisAlignedBox::getAllCorners(), Ogre::Terrain::ImportData::operator=(), Ogre::StreamSerialiser::readConverted(), Ogre::VertexCacheProfiler::VertexCacheProfiler(), and Ogre::StreamSerialiser::writeConverted().

## OGRE_ALLOC_T_ALIGN

#define OGRE_ALLOC_T_ALIGN | ( |  | T,
|  |  | count,
|  |  | category,
|  |  | align
| ) |  | static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(sizeof(T)*(count)))

Allocate a block of memory for a primitive type aligned to user defined boundaries, and indicate the category of usage.

Definition at line 449 of file OgreMemoryAllocatorConfig.h.

## OGRE_ALLOC_T_SIMD

#define OGRE_ALLOC_T_SIMD | ( |  | T,
|  |  | count,
|  |  | category
| ) |  | static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(sizeof(T)*(count)))

Allocate a block of memory for a primitive type aligned to SIMD boundaries, and indicate the category of usage.

Definition at line 447 of file OgreMemoryAllocatorConfig.h.

## OGRE_DELETE

#define OGRE_DELETE delete

Definition at line 474 of file OgreMemoryAllocatorConfig.h.

Referenced by Ogre::RenderQueueGroup::clear(), Ogre::deletePtr(), Ogre::Terrain::ImportData::destroy(), Ogre::APKFileSystemArchiveFactory::destroyInstance(), Ogre::SimplePageContentCollectionFactory::destroyInstance(), Ogre::ZipArchiveFactory::destroyInstance(), Ogre::FileSystemArchiveFactory::destroyInstance(), Ogre::TerrainPagedWorldSection::setDefiner(), Ogre::UserObjectBindings::Attributes::~Attributes(), Ogre::DefaultHardwareBufferManager::~DefaultHardwareBufferManager(), Ogre::MeshSerializer::MeshVersionData::~MeshVersionData(), Ogre::StaticGeometry::OptimisedSubMeshGeometry::~OptimisedSubMeshGeometry(), Ogre::RenderQueueGroup::~RenderQueueGroup(), and Ogre::SharedPtrInfoDelete< T >::~SharedPtrInfoDelete().

## OGRE_DELETE_ARRAY_T

#define OGRE_DELETE_ARRAY_T | ( |  | ptr,
|  |  | T,
|  |  | count,
|  |  | category
| ) |  | if(ptr){for (size_t b = 0; b < count; ++b) { (ptr)[b].~T();} ::Ogre::CategorisedAllocPolicy<category>::deallocateBytes((void*)ptr);}

Free the memory allocated with OGRE_NEW_ARRAY_T. Category is required to be restated to ensure the matching policy is used, count and type to call destructor.

Definition at line 439 of file OgreMemoryAllocatorConfig.h.

## OGRE_DELETE_ARRAY_T_ALIGN

#define OGRE_DELETE_ARRAY_T_ALIGN | ( |  | ptr,
|  |  | T,
|  |  | count,
|  |  | category,
|  |  | align
| ) |  | if(ptr){for (size_t _b = 0; _b < count; ++_b) { (ptr)[_b].~T();} ::Ogre::CategorisedAlignAllocPolicy<category, align>::deallocateBytes((void*)ptr);}

Free the memory allocated with OGRE_NEW_ARRAY_T_ALIGN. Category is required to be restated to ensure the matching policy is used, count and type to call destructor.

Definition at line 470 of file OgreMemoryAllocatorConfig.h.

## OGRE_DELETE_ARRAY_T_SIMD

#define OGRE_DELETE_ARRAY_T_SIMD | ( |  | ptr,
|  |  | T,
|  |  | count,
|  |  | category
| ) |  | if(ptr){for (size_t b = 0; b < count; ++b) { (ptr)[b].~T();} ::Ogre::CategorisedAlignAllocPolicy<category>::deallocateBytes((void*)ptr);}

Free the memory allocated with OGRE_NEW_ARRAY_T_SIMD. Category is required to be restated to ensure the matching policy is used, count and type to call destructor.

Definition at line 462 of file OgreMemoryAllocatorConfig.h.

## OGRE_DELETE_T

#define OGRE_DELETE_T | ( |  | ptr,
|  |  | T,
|  |  | category
| ) |  | if(ptr){(ptr)->~T(); ::Ogre::CategorisedAllocPolicy<category>::deallocateBytes((void*)ptr);}

Free the memory allocated with OGRE_NEW_T. Category is required to be restated to ensure the matching policy is used.

Definition at line 437 of file OgreMemoryAllocatorConfig.h.

Referenced by Ogre::Any::destroy(), Ogre::SharedPtr< Skeleton >::destroy(), and Ogre::SharedPtrInfoDeleteT< T >::~SharedPtrInfoDeleteT().

## OGRE_DELETE_T_ALIGN

#define OGRE_DELETE_T_ALIGN | ( |  | ptr,
|  |  | T,
|  |  | category,
|  |  | align
| ) |  | if(ptr){(ptr)->~T(); ::Ogre::CategorisedAlignAllocPolicy<category, align>::deallocateBytes((void*)ptr);}

Free the memory allocated with OGRE_NEW_T_ALIGN. Category is required to be restated to ensure the matching policy is used.

Definition at line 468 of file OgreMemoryAllocatorConfig.h.

## OGRE_DELETE_T_SIMD

#define OGRE_DELETE_T_SIMD | ( |  | ptr,
|  |  | T,
|  |  | category
| ) |  | if(ptr){(ptr)->~T(); ::Ogre::CategorisedAlignAllocPolicy<category>::deallocateBytes((void*)ptr);}

Free the memory allocated with OGRE_NEW_T_SIMD. Category is required to be restated to ensure the matching policy is used.

Definition at line 460 of file OgreMemoryAllocatorConfig.h.

## OGRE_FREE

#define OGRE_FREE | ( |  | ptr,
|  |  | category
| ) |  | ::Ogre::CategorisedAllocPolicy<category>::deallocateBytes((void*)ptr)

Free the memory allocated with OGRE_MALLOC or OGRE_ALLOC_T. Category is required to be restated to ensure the matching policy is used.

Definition at line 430 of file OgreMemoryAllocatorConfig.h.

Referenced by Ogre::Terrain::ImportData::destroy(), Ogre::StreamSerialiser::readConverted(), Ogre::StreamSerialiser::writeConverted(), Ogre::AxisAlignedBox::~AxisAlignedBox(), Ogre::SharedPtrInfoFree< T >::~SharedPtrInfoFree(), and Ogre::VertexCacheProfiler::~VertexCacheProfiler().

## OGRE_FREE_ALIGN

#define OGRE_FREE_ALIGN | ( |  | ptr,
|  |  | category,
|  |  | align
| ) |  | ::Ogre::CategorisedAlignAllocPolicy<category, align>::deallocateBytes((void*)ptr)

Free the memory allocated with either OGRE_MALLOC_ALIGN or OGRE_ALLOC_T_ALIGN. Category is required to be restated to ensure the matching policy is used.

Definition at line 453 of file OgreMemoryAllocatorConfig.h.

## OGRE_FREE_SIMD

#define OGRE_FREE_SIMD | ( |  | ptr,
|  |  | category
| ) |  | ::Ogre::CategorisedAlignAllocPolicy<category>::deallocateBytes((void*)ptr)

Free the memory allocated with either OGRE_MALLOC_SIMD or OGRE_ALLOC_T_SIMD. Category is required to be restated to ensure the matching policy is used.

Definition at line 451 of file OgreMemoryAllocatorConfig.h.

## OGRE_MALLOC

#define OGRE_MALLOC | ( |  | bytes,
|  |  | category
| ) |  | ::Ogre::CategorisedAllocPolicy<category>::allocateBytes(bytes)

Allocate a block of raw memory, and indicate the category of usage.

Definition at line 426 of file OgreMemoryAllocatorConfig.h.

## OGRE_MALLOC_ALIGN

#define OGRE_MALLOC_ALIGN | ( |  | bytes,
|  |  | category,
|  |  | align
| ) |  | ::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(bytes)

Allocate a block of raw memory aligned to user defined boundaries, and indicate the category of usage.

Definition at line 445 of file OgreMemoryAllocatorConfig.h.

## OGRE_MALLOC_SIMD

#define OGRE_MALLOC_SIMD | ( |  | bytes,
|  |  | category
| ) |  | ::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(bytes)

Allocate a block of raw memory aligned to SIMD boundaries, and indicate the category of usage.

Definition at line 443 of file OgreMemoryAllocatorConfig.h.

## OGRE_NEW

#define OGRE_NEW new

Definition at line 473 of file OgreMemoryAllocatorConfig.h.

Referenced by Ogre::RenderQueueGroup::addRenderable(), Ogre::RTShader::ShaderProgramWriterCGFactory::create(), Ogre::RTShader::ShaderProgramWriterHLSLFactory::create(), Ogre::RTShader::ShaderProgramWriterGLSLFactory::create(), Ogre::RTShader::ShaderProgramWriterGLSLESFactory::create(), Ogre::SceneManager::createAutoParamDataSource(), Ogre::APKZipArchiveFactory::createInstance(), Ogre::APKFileSystemArchiveFactory::createInstance(), Ogre::ZipArchiveFactory::createInstance(), Ogre::SimplePageContentCollectionFactory::createInstance(), Ogre::FileSystemArchiveFactory::createInstance(), Ogre::EmbeddedZipArchiveFactory::createInstance(), Ogre::PanelOverlayElementFactory::createOverlayElement(), Ogre::BorderPanelOverlayElementFactory::createOverlayElement(), Ogre::TextAreaOverlayElementFactory::createOverlayElement(), Ogre::TerrainAutoUpdateLodFactory::getAutoUpdateLod(), Ogre::RenderQueueGroup::merge(), and Ogre::Terrain::ImportData::operator=().

## OGRE_NEW_ARRAY_T

#define OGRE_NEW_ARRAY_T | ( |  | T,
|  |  | count,
|  |  | category
| ) |  | ::Ogre::constructN(static_cast<T*>(::Ogre::CategorisedAllocPolicy<category>::allocateBytes(sizeof(T)*(count))), count)

Allocate a block of memory for 'count' primitive types - do not use for classes that inherit from AllocatedObject.

Definition at line 435 of file OgreMemoryAllocatorConfig.h.

## OGRE_NEW_ARRAY_T_ALIGN

#define OGRE_NEW_ARRAY_T_ALIGN | ( |  | T,
|  |  | count,
|  |  | category,
|  |  | align
| ) |  | ::Ogre::constructN(static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(sizeof(T)*(count))), count)

Allocate a block of memory for 'count' primitive types aligned to user defined boundaries - do not use for classes that inherit from AllocatedObject.

Definition at line 466 of file OgreMemoryAllocatorConfig.h.

## OGRE_NEW_ARRAY_T_SIMD

#define OGRE_NEW_ARRAY_T_SIMD | ( |  | T,
|  |  | count,
|  |  | category
| ) |  | ::Ogre::constructN(static_cast<T*>(::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(sizeof(T)*(count))), count)

Allocate a block of memory for 'count' primitive types aligned to SIMD boundaries - do not use for classes that inherit from AllocatedObject.

Definition at line 458 of file OgreMemoryAllocatorConfig.h.

## OGRE_NEW_T

#define OGRE_NEW_T | ( |  | T,
|  |  | category
| ) |  | new (::Ogre::CategorisedAllocPolicy<category>::allocateBytes(sizeof(T))) T

Allocate space for one primitive type, external type or non-virtual type with constructor parameters.

Definition at line 433 of file OgreMemoryAllocatorConfig.h.

Referenced by Ogre::AnyNumeric::numholder< ValueType >::add(), Ogre::AnyNumeric::AnyNumeric(), Ogre::Any::holder< ValueType >::clone(), Ogre::AnyNumeric::numholder< ValueType >::clone(), Ogre::SharedPtr< Skeleton >::createInfoForMethod(), Ogre::AnyNumeric::numholder< ValueType >::divide(), Ogre::AnyNumeric::numholder< ValueType >::multiply(), and Ogre::AnyNumeric::numholder< ValueType >::subtract().

## OGRE_NEW_T_ALIGN

#define OGRE_NEW_T_ALIGN | ( |  | T,
|  |  | category,
|  |  | align
| ) |  | new (::Ogre::CategorisedAlignAllocPolicy<category, align>::allocateBytes(sizeof(T))) T

Allocate space for one primitive type, external type or non-virtual type aligned to user defined boundaries.

Definition at line 464 of file OgreMemoryAllocatorConfig.h.

## OGRE_NEW_T_SIMD

#define OGRE_NEW_T_SIMD | ( |  | T,
|  |  | category
| ) |  | new (::Ogre::CategorisedAlignAllocPolicy<category>::allocateBytes(sizeof(T))) T

Allocate space for one primitive type, external type or non-virtual type aligned to SIMD boundaries.

Definition at line 456 of file OgreMemoryAllocatorConfig.h.

## Enumeration Type Documentation

## MemoryCategory

enum Ogre::MemoryCategory

A set of categories that indicate the purpose of a chunk of memory being allocated.

These categories will be provided at allocation time in order to allow the allocation policy to vary its behaviour if it wishes. This allows you to use a single policy but still have variant behaviour. The level of control it gives you is at a higher level than assigning different policies to different classes, but is the only control you have over general allocations that are primitive types.

Enumerator
MEMCATEGORY_GENERAL | General purpose.
MEMCATEGORY_GEOMETRY | Geometry held in main memory.
MEMCATEGORY_ANIMATION | Animation data like tracks, bone matrices.
MEMCATEGORY_SCENE_CONTROL | Nodes, control data.
MEMCATEGORY_SCENE_OBJECTS | Scene object instances.
MEMCATEGORY_RESOURCE | Other resources.
MEMCATEGORY_SCRIPTING | Scripting.
MEMCATEGORY_RENDERSYS | Rendersystem structures.
MEMCATEGORY_COUNT |

Definition at line 159 of file OgreMemoryAllocatorConfig.h.

## Function Documentation

## constructN()

template<typename T >

T* Ogre::constructN | ( | T * | basePtr,
|  | size_t | count
| ) |  |

Utility function for constructing an array of objects with placement new, without using new[] (which allocates an undocumented amount of extra memory and so isn't appropriate for custom allocators).

Definition at line 346 of file OgreMemoryAllocatorConfig.h.

## operator!=() [1/2]

template<typename T , typename T2 , typename P >

bool Ogre::operator!= | ( | STLAllocator< T, P > const & | ,
|  | STLAllocator< T2, P > const & |
| ) |  |

determine equality, can memory from another allocator be released by this allocator, (ISO C++)

Definition at line 202 of file OgreMemorySTLAllocator.h.

Referenced by Ogre::ColourValue::ColourValue(), and Ogre::RTShader::FunctionInvocation::getReturnType().

## operator!=() [2/2]

template<typename T , typename P , typename OtherAllocator >

bool Ogre::operator!= | ( | STLAllocator< T, P > const & | ,
|  | OtherAllocator const & |
| ) |  |

determine equality, can memory from another allocator be released by this allocator, (ISO C++)

Definition at line 212 of file OgreMemorySTLAllocator.h.

## operator==() [1/2]

template<typename T , typename T2 , typename P >

bool Ogre::operator== | ( | STLAllocator< T, P > const & | ,
|  | STLAllocator< T2, P > const & |
| ) |  |

determine equality, can memory from another allocator be released by this allocator, (ISO C++)

Definition at line 184 of file OgreMemorySTLAllocator.h.

Referenced by Ogre::ColourValue::ColourValue(), Ogre::RTShader::FunctionInvocation::getReturnType(), Ogre::DualQuaternion::operator!=(), Ogre::Matrix3::operator!=(), Ogre::Quaternion::operator!=(), and Ogre::Matrix3::operator=().

## operator==() [2/2]

template<typename T , typename P , typename OtherAllocator >

bool Ogre::operator== | ( | STLAllocator< T, P > const & | ,
|  | OtherAllocator const & |
| ) |  |

determine equality, can memory from another allocator be released by this allocator, (ISO C++)

Definition at line 194 of file OgreMemorySTLAllocator.h.

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.