OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
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
 
 ~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 ()
 

Member Typedef Documentation

◆ Base

define our types, as per ISO C++

◆ const_pointer

◆ const_reference

◆ difference_type

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

◆ pointer

◆ reference

◆ size_type

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

◆ value_type

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

Constructor & Destructor Documentation

◆ STLAllocator() [1/4]

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

ctor

◆ ~STLAllocator()

dtor

◆ STLAllocator() [2/4]

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

copy ctor - done component wise

◆ STLAllocator() [3/4]

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

cast

◆ STLAllocator() [4/4]

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

cast

Member Function Documentation

◆ address() [1/2]

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

◆ address() [2/2]

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

◆ allocate()

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

memory allocation (elements, used by STL)

◆ construct() [1/2]

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

◆ construct() [2/2]

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

◆ deallocate()

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

memory deallocation (elements, used by STL)

◆ destroy()

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

◆ max_size()

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

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