Ogre::AllocatedObject< Alloc > Class Template Reference
Core » Memory

Superclass for all objects that wish to use custom memory allocators when their new / delete operators are called. More...

`#include <OgreMemoryAllocatedObject.h>`

Inherited by Ogre::Controller< Real >, Ogre::ControllerFunction< Real >, Ogre::ControllerValue< Real >, Ogre::AbstractNode, Ogre::AndroidLogListener, Ogre::AnimableValue, Ogre::Animation, Ogre::AnimationState, Ogre::AnimationStateSet, Ogre::AnimationTrack, Ogre::Archive, Ogre::ArchiveFactory, Ogre::ArchiveManager, Ogre::AutoParamDataSource, Ogre::Billboard, Ogre::BorderRenderable, Ogre::Codec, Ogre::Codec::CodecData, Ogre::CompositionPass, Ogre::CompositionTargetPass, Ogre::CompositionTechnique, Ogre::CompositionTechnique::TextureDefinition, Ogre::CompositorChain, Ogre::CompositorInstance, Ogre::CompositorInstance::RenderSystemOperation, Ogre::ConcreteNode, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigFile, Ogre::Controller< T >, Ogre::ControllerFunction< T >, Ogre::ControllerManager, Ogre::ControllerValue< T >, Ogre::DataStream, Ogre::DefaultWorkQueueBase::RequestHandlerHolder, Ogre::DepthBuffer, Ogre::DynLib, Ogre::DynLibManager, Ogre::EdgeData, Ogre::ExternalTextureSourceManager, Ogre::FileSystemLayer, Ogre::GpuLogicalBufferStruct, Ogre::GpuNamedConstants, Ogre::GpuProgramParameters, Ogre::GpuProgramUsage, Ogre::GpuSharedParameters, Ogre::GpuSharedParametersUsage, Ogre::HardwareBuffer, Ogre::HardwareBufferManagerBase, Ogre::HardwareOcclusionQuery, Ogre::HighLevelGpuProgramFactory, Ogre::IlluminationPass, Ogre::Image, Ogre::IndexData, Ogre::InstancedGeometry, Ogre::InstancedGeometry::InstancedObject, Ogre::InstancedGeometry::LODBucket, Ogre::InstancedGeometry::MaterialBucket, Ogre::InstancedGeometry::OptimisedSubMeshGeometry, Ogre::InstancedGeometry::QueuedGeometry, Ogre::InstancedGeometry::QueuedSubMesh, Ogre::InstanceManager, Ogre::IntersectionSceneQueryResult, Ogre::KeyFrame, Ogre::LodStrategy, Ogre::LodStrategyManager, Ogre::Log, Ogre::LogManager, Ogre::ManualObject::ManualObjectSection, Ogre::MaterialSerializer, Ogre::MeshSerializer::MeshVersionData, Ogre::MovableObject, Ogre::MovableObjectFactory, Ogre::Node, Ogre::Node::DebugRenderable, Ogre::Overlay, Ogre::OverlayElement, Ogre::OverlayElementFactory, Ogre::OverlayManager, Ogre::OverlaySystem, Ogre::Page, Ogre::Page::PageData, Ogre::PageContent, Ogre::PageContentCollection, Ogre::PageContentCollectionFactory, Ogre::PageContentFactory, Ogre::PagedWorld, Ogre::PagedWorldSection, Ogre::PagedWorldSectionFactory, Ogre::PageManager, Ogre::PageStrategy, Ogre::PageStrategyData, Ogre::Particle, Ogre::ParticleAffector, Ogre::ParticleAffectorFactory, Ogre::ParticleEmitterFactory, Ogre::ParticleSystemManager, Ogre::ParticleSystemRenderer, Ogre::ParticleSystemRendererFactory, Ogre::ParticleVisualData, Ogre::Pass, Ogre::PatchSurface, Ogre::PixelBox, Ogre::Plugin, Ogre::PMInjector, Ogre::PMWorker, Ogre::Pose, Ogre::Profile, Ogre::ProfileInstance, Ogre::Profiler, Ogre::PropertyBase, Ogre::PropertyDef, Ogre::PropertySet, Ogre::QueuedRenderableCollection, Ogre::RenderPriorityGroup, Ogre::RenderQueue, Ogre::RenderQueueGroup, Ogre::RenderQueueInvocation, Ogre::RenderQueueInvocationSequence, Ogre::RenderSystem, Ogre::RenderSystemCapabilities, Ogre::RenderSystemCapabilitiesManager, Ogre::RenderSystemCapabilitiesSerializer, Ogre::RenderTarget, Ogre::Resource, Ogre::ResourceBackgroundQueue, Ogre::ResourceGroupManager, Ogre::ResourceManager, Ogre::ResourceManager::ResourcePool, Ogre::Root, Ogre::RTShader::Function, Ogre::RTShader::FunctionAtom, Ogre::RTShader::Operand, Ogre::RTShader::Parameter, Ogre::RTShader::Program, Ogre::RTShader::ProgramManager, Ogre::RTShader::ProgramProcessor, Ogre::RTShader::ProgramSet, Ogre::RTShader::ProgramWriter, Ogre::RTShader::ProgramWriterFactory, Ogre::RTShader::ProgramWriterManager, Ogre::RTShader::RenderState, Ogre::RTShader::SGMaterialSerializerListener, Ogre::RTShader::ShaderGenerator, Ogre::RTShader::ShaderGenerator::SGMaterial, Ogre::RTShader::ShaderGenerator::SGPass, Ogre::RTShader::ShaderGenerator::SGRenderObjectListener, Ogre::RTShader::ShaderGenerator::SGSceneManagerListener, Ogre::RTShader::ShaderGenerator::SGScheme, Ogre::RTShader::ShaderGenerator::SGTechnique, Ogre::RTShader::SubRenderState, Ogre::RTShader::SubRenderStateFactory, Ogre::SceneManager, Ogre::SceneManager::ShadowCasterSceneQueryListener, Ogre::SceneManagerEnumerator, Ogre::SceneManagerFactory, Ogre::SceneQuery, Ogre::SceneQueryResult, Ogre::ScriptCompiler, Ogre::ScriptCompiler::Error, Ogre::ScriptCompilerManager, Ogre::ScriptLexer, Ogre::ScriptParser, Ogre::ScriptTranslator, Ogre::ScriptTranslatorManager, Ogre::Serializer, Ogre::ShadowCameraSetup, Ogre::ShadowRenderable, Ogre::ShadowTextureManager, Ogre::ShadowVolumeExtrudeProgram, Ogre::StaticGeometry, Ogre::StaticGeometry::GeometryBucket, Ogre::StaticGeometry::LODBucket, Ogre::StaticGeometry::MaterialBucket, Ogre::StaticGeometry::OptimisedSubMeshGeometry, Ogre::StaticGeometry::QueuedGeometry, Ogre::StaticGeometry::QueuedSubMesh, Ogre::StreamSerialiser, Ogre::StreamSerialiser::Chunk, Ogre::SubEntity, Ogre::SubMesh, Ogre::Technique, Ogre::TempBlendedBufferInfo, Ogre::Terrain, Ogre::Terrain::GpuBufferAllocator, Ogre::TerrainAutoUpdateLod, Ogre::TerrainGlobalOptions, Ogre::TerrainGroup, Ogre::TerrainGroup::TerrainSlot, Ogre::TerrainLayerBlendMap, Ogre::TerrainLodManager, Ogre::TerrainMaterialGenerator, Ogre::TerrainMaterialGenerator::Profile, Ogre::TerrainMaterialGeneratorA::SM2Profile::ShaderHelper, Ogre::TerrainPagedWorldSection::TerrainDefiner, Ogre::TerrainPaging, Ogre::TerrainQuadTreeNode, Ogre::TerrainQuadTreeNode::LodLevel, Ogre::TerrainQuadTreeNode::Rend, Ogre::TerrainQuadTreeNode::VertexDataRecord, Ogre::TextureUnitState, Ogre::Timer, Ogre::Timer, Ogre::Timer, Ogre::Timer, Ogre::Timer, Ogre::Timer, Ogre::Timer, Ogre::UserObjectBindings, Ogre::UserObjectBindings::Attributes, Ogre::VertexBufferBinding, Ogre::VertexCacheProfiler, Ogre::VertexData, Ogre::VertexDeclaration, Ogre::VertexElement, Ogre::Viewport, Ogre::Volume::DualGridGenerator, Ogre::Volume::IsoSurface, Ogre::Volume::MeshBuilder, Ogre::Volume::OctreeNode, Ogre::WorkQueue, Ogre::WorkQueue::Request, and Ogre::WorkQueue::Response.

## Public Member Functions

| AllocatedObject ()
| ~AllocatedObject ()
void | operator delete (void *ptr)
void | operator delete (void *ptr, void *)
void | operator delete (void *ptr, const char *, int, const char *)
void | operator delete[] (void *ptr)
void | operator delete[] (void *ptr, const char *, int, const char *)
void * | operator new (size_t sz, const char *file, int line, const char *func)
| operator new, with debug line info More...
void * | operator new (size_t sz)
void * | operator new (size_t sz, void *ptr)
| placement operator new More...
void * | operator new[] (size_t sz, const char *file, int line, const char *func)
| array operator new, with debug line info More...
void * | operator new[] (size_t sz)

## Detailed Description

### template<class Alloc>
class Ogre::AllocatedObject< Alloc >

Superclass for all objects that wish to use custom memory allocators when their new / delete operators are called.

Requires a template parameter identifying the memory allocator policy to use (e.g. see StdAllocPolicy).

Definition at line 58 of file OgreMemoryAllocatedObject.h.

## Constructor & Destructor Documentation

## AllocatedObject()

template<class Alloc >

Ogre::AllocatedObject< Alloc >::AllocatedObject | ( |  | ) |

explicit

Definition at line 61 of file OgreMemoryAllocatedObject.h.

## ~AllocatedObject()

template<class Alloc >

Ogre::AllocatedObject< Alloc >::~AllocatedObject | ( |  | ) |

Definition at line 64 of file OgreMemoryAllocatedObject.h.

## Member Function Documentation

## operator delete() [1/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) |

Definition at line 96 of file OgreMemoryAllocatedObject.h.

## operator delete() [2/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  |

Definition at line 102 of file OgreMemoryAllocatedObject.h.

## operator delete() [3/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) |

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

Definition at line 119 of file OgreMemoryAllocatedObject.h.

## operator new() [1/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

## operator new() [2/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) |

Definition at line 73 of file OgreMemoryAllocatedObject.h.

## operator new() [3/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | void * | ptr
| ) |  |

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

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

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

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

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) |

Definition at line 91 of file OgreMemoryAllocatedObject.h.

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

- OgreMemoryAllocatedObject.h

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