CACAO
Public Types | Public Member Functions
MemoryAllocator< T > Class Template Reference

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

 MemoryAllocator () throw ()
 
 MemoryAllocator (const MemoryAllocator &) throw ()
 
template<class U >
 MemoryAllocator (const MemoryAllocator< U > &) throw ()
 
 ~MemoryAllocator () throw ()
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n, const_pointer hint=0)
 
pointer reallocate (pointer p, size_type old_sz, size_type new_sz)
 
void deallocate (pointer p, size_type n)
 
void construct (pointer p, const T &value)
 
void destroy (pointer p)
 

Detailed Description

template<class T>
class MemoryAllocator< T >

Definition at line 144 of file memory.hpp.

Member Typedef Documentation

template<class T>
typedef const T* MemoryAllocator< T >::const_pointer

Definition at line 149 of file memory.hpp.

template<class T>
typedef const T& MemoryAllocator< T >::const_reference

Definition at line 151 of file memory.hpp.

template<class T>
typedef std::ptrdiff_t MemoryAllocator< T >::difference_type

Definition at line 153 of file memory.hpp.

template<class T>
typedef T* MemoryAllocator< T >::pointer

Definition at line 148 of file memory.hpp.

template<class T>
typedef T& MemoryAllocator< T >::reference

Definition at line 150 of file memory.hpp.

template<class T>
typedef std::size_t MemoryAllocator< T >::size_type

Definition at line 152 of file memory.hpp.

template<class T>
typedef T MemoryAllocator< T >::value_type

Definition at line 147 of file memory.hpp.

Constructor & Destructor Documentation

template<class T>
MemoryAllocator< T >::MemoryAllocator ( )
throw (
)
inline

Definition at line 157 of file memory.hpp.

template<class T>
MemoryAllocator< T >::MemoryAllocator ( const MemoryAllocator< T > &  )
throw (
)
inline

Definition at line 158 of file memory.hpp.

template<class T>
template<class U >
MemoryAllocator< T >::MemoryAllocator ( const MemoryAllocator< U > &  )
throw (
)
inline

Definition at line 159 of file memory.hpp.

template<class T>
MemoryAllocator< T >::~MemoryAllocator ( )
throw (
)
inline

Definition at line 161 of file memory.hpp.

Member Function Documentation

template<class T>
pointer MemoryAllocator< T >::address ( reference  x) const
inline

Definition at line 164 of file memory.hpp.

template<class T>
const_pointer MemoryAllocator< T >::address ( const_reference  x) const
inline

Definition at line 165 of file memory.hpp.

template<class T>
pointer MemoryAllocator< T >::allocate ( size_type  n,
const_pointer  hint = 0 
)
inline

Definition at line 168 of file memory.hpp.

template<class T>
void MemoryAllocator< T >::construct ( pointer  p,
const T &  value 
)
inline

Definition at line 189 of file memory.hpp.

template<class T>
void MemoryAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

Definition at line 180 of file memory.hpp.

template<class T>
void MemoryAllocator< T >::destroy ( pointer  p)
inline

Definition at line 194 of file memory.hpp.

template<class T>
pointer MemoryAllocator< T >::reallocate ( pointer  p,
size_type  old_sz,
size_type  new_sz 
)
inline

Definition at line 174 of file memory.hpp.


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