OGRE  1.9.0
Ogre::STLAllocator< T, AllocPolicy > Class Template Reference

#include <OgreMemorySTLAllocator.h>

Inheritance diagram for Ogre::STLAllocator< T, AllocPolicy >:

Classes

struct  rebind
 the standard rebind mechanism More...
 

Public Types

typedef STLAllocatorBase< T > Base
 define our types, as per ISO C++
 
typedef const value_typeconst_pointer
 
typedef const value_typeconst_reference
 
typedef std::ptrdiff_t difference_type
 
typedef value_typepointer
 
typedef value_typereference
 
typedef std::size_t size_type
 
typedef Base::value_type value_type
 

Public Member Functions

 STLAllocator ()
 ctor
 
 STLAllocator (STLAllocator const &)
 copy ctor - done component wise
 
template<typename U>
 STLAllocator (STLAllocator< U, AllocPolicy > const &)
 cast
 
template<typename U, typename P>
 STLAllocator (STLAllocator< U, P > const &)
 cast
 
virtual ~STLAllocator ()
 dtor
 
const_pointer address (const_reference x) const
 
pointer address (reference x) const
 
pointer allocate (size_type count, typename std::allocator< void >::const_pointer ptr=0)
 memory allocation (elements, used by STL)
 
void construct (pointer p)
 
void construct (pointer p, const T &val)
 
void deallocate (pointer ptr, size_type)
 memory deallocation (elements, used by STL)
 
void destroy (pointer p)
 
size_type max_size () const throw ()
 

Detailed Description

template<typename T, typename AllocPolicy>
class Ogre::STLAllocator< T, AllocPolicy >

Definition at line 81 of file OgreMemorySTLAllocator.h.

Member Typedef Documentation

◆ Base

template<typename T, typename AllocPolicy>
typedef STLAllocatorBase<T> Ogre::STLAllocator< T, AllocPolicy >::Base

define our types, as per ISO C++

Definition at line 85 of file OgreMemorySTLAllocator.h.

◆ const_pointer

template<typename T, typename AllocPolicy>
typedef const value_type* Ogre::STLAllocator< T, AllocPolicy >::const_pointer

Definition at line 88 of file OgreMemorySTLAllocator.h.

◆ const_reference

template<typename T, typename AllocPolicy>
typedef const value_type& Ogre::STLAllocator< T, AllocPolicy >::const_reference

Definition at line 90 of file OgreMemorySTLAllocator.h.

◆ difference_type

template<typename T, typename AllocPolicy>
typedef std::ptrdiff_t Ogre::STLAllocator< T, AllocPolicy >::difference_type

Definition at line 92 of file OgreMemorySTLAllocator.h.

◆ pointer

template<typename T, typename AllocPolicy>
typedef value_type* Ogre::STLAllocator< T, AllocPolicy >::pointer

Definition at line 87 of file OgreMemorySTLAllocator.h.

◆ reference

template<typename T, typename AllocPolicy>
typedef value_type& Ogre::STLAllocator< T, AllocPolicy >::reference

Definition at line 89 of file OgreMemorySTLAllocator.h.

◆ size_type

template<typename T, typename AllocPolicy>
typedef std::size_t Ogre::STLAllocator< T, AllocPolicy >::size_type

Definition at line 91 of file OgreMemorySTLAllocator.h.

◆ value_type

template<typename T, typename AllocPolicy>
typedef Base::value_type Ogre::STLAllocator< T, AllocPolicy >::value_type

Definition at line 86 of file OgreMemorySTLAllocator.h.

Constructor & Destructor Documentation

◆ STLAllocator() [1/4]

template<typename T, typename AllocPolicy>
Ogre::STLAllocator< T, AllocPolicy >::STLAllocator ( )
explicit

ctor

Definition at line 103 of file OgreMemorySTLAllocator.h.

◆ ~STLAllocator()

template<typename T, typename AllocPolicy>
virtual Ogre::STLAllocator< T, AllocPolicy >::~STLAllocator ( )
virtual

dtor

Definition at line 107 of file OgreMemorySTLAllocator.h.

◆ STLAllocator() [2/4]

template<typename T, typename AllocPolicy>
Ogre::STLAllocator< T, AllocPolicy >::STLAllocator ( STLAllocator< T, AllocPolicy > const & )

copy ctor - done component wise

Definition at line 111 of file OgreMemorySTLAllocator.h.

◆ STLAllocator() [3/4]

template<typename T, typename AllocPolicy>
template<typename U>
Ogre::STLAllocator< T, AllocPolicy >::STLAllocator ( STLAllocator< U, AllocPolicy > const & )

cast

Definition at line 116 of file OgreMemorySTLAllocator.h.

◆ STLAllocator() [4/4]

template<typename T, typename AllocPolicy>
template<typename U, typename P>
Ogre::STLAllocator< T, AllocPolicy >::STLAllocator ( STLAllocator< U, P > const & )

cast

Definition at line 121 of file OgreMemorySTLAllocator.h.

Member Function Documentation

◆ address() [1/2]

template<typename T, typename AllocPolicy>
const_pointer Ogre::STLAllocator< T, AllocPolicy >::address ( const_reference x) const

Definition at line 148 of file OgreMemorySTLAllocator.h.

◆ address() [2/2]

template<typename T, typename AllocPolicy>
pointer Ogre::STLAllocator< T, AllocPolicy >::address ( reference x) const

Definition at line 143 of file OgreMemorySTLAllocator.h.

◆ allocate()

template<typename T, typename AllocPolicy>
pointer Ogre::STLAllocator< T, AllocPolicy >::allocate ( size_type count,
typename std::allocator< void >::const_pointer ptr = 0 )

memory allocation (elements, used by STL)

Definition at line 125 of file OgreMemorySTLAllocator.h.

◆ construct() [1/2]

template<typename T, typename AllocPolicy>
void Ogre::STLAllocator< T, AllocPolicy >::construct ( pointer p)

Definition at line 160 of file OgreMemorySTLAllocator.h.

◆ construct() [2/2]

template<typename T, typename AllocPolicy>
void Ogre::STLAllocator< T, AllocPolicy >::construct ( pointer p,
const T & val )

Definition at line 167 of file OgreMemorySTLAllocator.h.

◆ deallocate()

template<typename T, typename AllocPolicy>
void Ogre::STLAllocator< T, AllocPolicy >::deallocate ( pointer ptr,
size_type  )

memory deallocation (elements, used by STL)

Definition at line 136 of file OgreMemorySTLAllocator.h.

◆ destroy()

template<typename T, typename AllocPolicy>
void Ogre::STLAllocator< T, AllocPolicy >::destroy ( pointer p)

Definition at line 173 of file OgreMemorySTLAllocator.h.

◆ max_size()

template<typename T, typename AllocPolicy>
size_type Ogre::STLAllocator< T, AllocPolicy >::max_size ( ) const
throw ( )

Definition at line 153 of file OgreMemorySTLAllocator.h.


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