OGRE: Ogre::AllocatedObject< Alloc > Class Template Reference - OGRE Documentation

# Ogre::AllocatedObject< Alloc > Class Template Reference

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< float >, Ogre::ControllerFunction< float >, Ogre::ControllerValue< float >, Ogre::AbstractNode, 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::Compiler2Pass, Ogre::CompositionPass, Ogre::CompositionTargetPass, Ogre::CompositionTechnique, Ogre::CompositionTechnique::TextureDefinition, Ogre::CompositorChain, Ogre::CompositorInstance, Ogre::CompositorInstance::RenderSystemOperation, Ogre::CompositorSerializer, Ogre::ConcreteNode, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigDialog, Ogre::ConfigFile, Ogre::Controller< T >, Ogre::ControllerFunction< T >, Ogre::ControllerManager, Ogre::ControllerValue< T >, Ogre::DataStream, Ogre::DynLib, Ogre::DynLibManager, Ogre::EdgeData, Ogre::ExternalTextureSourceManager, Ogre::GpuProgramParameters, Ogre::GpuProgramUsage, Ogre::HardwareBuffer, 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::IntersectionSceneQueryResult, Ogre::KeyFrame, Ogre::Log, Ogre::LogManager, Ogre::ManualObject::ManualObjectSection, Ogre::MaterialSerializer, Ogre::MovableObject, Ogre::MovableObjectFactory, Ogre::Node, Ogre::Overlay, Ogre::OverlayElement, Ogre::OverlayElementFactory, Ogre::OverlayManager, Ogre::Particle, Ogre::ParticleAffector, Ogre::ParticleAffectorFactory, Ogre::ParticleEmitterFactory, Ogre::ParticleSystemManager, Ogre::ParticleSystemRenderer, Ogre::ParticleSystemRendererFactory, Ogre::ParticleVisualData, Ogre::Pass, Ogre::PatchSurface, Ogre::Plugin, Ogre::Pose, Ogre::Profile, Ogre::Profiler, Ogre::ProgressiveMesh, 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::Root, 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::SubEntity, Ogre::SubMesh, Ogre::Technique, Ogre::TempBlendedBufferInfo, Ogre::TextureUnitState, Ogre::Timer, Ogre::Timer, Ogre::Timer, Ogre::VertexBufferBinding, Ogre::VertexCacheProfiler, Ogre::VertexData, Ogre::VertexDeclaration, Ogre::VertexElement, and Ogre::Viewport.

List of all members.

## Public Member Functions
| AllocatedObject ()
| ~AllocatedObject ()
void * | operator new (size_t sz, const char *file, int line, const char *func)
| operator new, with debug line info
void * | operator new (size_t sz)
void * | operator new (size_t sz, void *ptr)
| placement operator new
void * | operator new[] (size_t sz, const char *file, int line, const char *func)
| array operator new, with debug line info
void * | operator new[] (size_t sz)
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 *)

## 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 52 of file OgreMemoryAllocatedObject.h.

## Constructor & Destructor Documentation

template<class Alloc>

Ogre::AllocatedObject< Alloc >::AllocatedObject | ( |  | ) | `[explicit]`

Definition at line 55 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 58 of file OgreMemoryAllocatedObject.h.

## Member Function Documentation

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 62 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 67 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

placement operator new

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 84 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 89 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 95 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 101 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 106 of file OgreMemoryAllocatedObject.h.

template<class Alloc>

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

Definition at line 112 of file OgreMemoryAllocatedObject.h.

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

- OgreMemoryAllocatedObject.h

Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Jul 26 11:34:02 2009