OGRE  1.9.0
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>

Public Member Functions

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

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,
const char * ,
int ,
const char *  )

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

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

Definition at line 102 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)

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/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() [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)

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/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.


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