library of assembled shared sources

http://lass.cocamware.com

lass::stde::lass_allocator< T, VariableAllocator > Class Template Reference

an adaptor to use an lass::util Allocator as a replacement for std::allocator More...

#include <lass_allocator.h>


Data Structures

struct  rebind

Public Types

typedef size_t size_type
typedef ptrdiff_t difference_type
typedef Tpointer
typedef const Tconst_pointer
typedef Treference
typedef const Tconst_reference
typedef T value_type

Public Member Functions

 lass_allocator () throw ()
 lass_allocator (const lass_allocator &) throw ()
template<typename U >
 lass_allocator (const lass_allocator< U, VariableAllocator > &) throw ()
 ~lass_allocator () throw ()
pointer address (reference x) const
const_pointer address (const_reference x) const
pointer allocate (size_type n, typename lass_allocator< void, VariableAllocator >::pointer hint=0)
void deallocate (pointer p, size_type n)
size_type max_size () const throw ()
void construct (pointer p, const T &val)
void destroy (pointer p)
template<typename U >
 lass_allocator (const lass_allocator< U, VA > &other) throw ()


Detailed Description

template<typename T, typename VariableAllocator>
class lass::stde::lass_allocator< T, VariableAllocator >

an adaptor to use an lass::util Allocator as a replacement for std::allocator

Author:
Bram de Greve [Bramz]

Definition at line 71 of file lass_allocator.h.


Member Typedef Documentation

template<typename T , typename VariableAllocator >
typedef size_t lass::stde::lass_allocator< T, VariableAllocator >::size_type

Definition at line 74 of file lass_allocator.h.

template<typename T , typename VariableAllocator >
typedef ptrdiff_t lass::stde::lass_allocator< T, VariableAllocator >::difference_type

Definition at line 75 of file lass_allocator.h.

template<typename T , typename VariableAllocator >
typedef T* lass::stde::lass_allocator< T, VariableAllocator >::pointer

Definition at line 76 of file lass_allocator.h.

template<typename T , typename VariableAllocator >
typedef const T* lass::stde::lass_allocator< T, VariableAllocator >::const_pointer

Definition at line 77 of file lass_allocator.h.

template<typename T , typename VariableAllocator >
typedef T& lass::stde::lass_allocator< T, VariableAllocator >::reference

Definition at line 78 of file lass_allocator.h.

template<typename T , typename VariableAllocator >
typedef const T& lass::stde::lass_allocator< T, VariableAllocator >::const_reference

Definition at line 79 of file lass_allocator.h.

template<typename T , typename VariableAllocator >
typedef T lass::stde::lass_allocator< T, VariableAllocator >::value_type

Definition at line 80 of file lass_allocator.h.


Constructor & Destructor Documentation

template<typename T , typename VA >
lass::stde::lass_allocator< T, VA >::lass_allocator (  )  throw () [inline]

Definition at line 51 of file lass_allocator.inl.

template<typename T , typename VA >
lass::stde::lass_allocator< T, VA >::lass_allocator ( const lass_allocator< T, VariableAllocator > &  other  )  throw () [inline]

Definition at line 58 of file lass_allocator.inl.

template<typename T , typename VariableAllocator >
template<typename U >
lass::stde::lass_allocator< T, VariableAllocator >::lass_allocator ( const lass_allocator< U, VariableAllocator > &   )  throw () [inline]

template<typename T , typename VA >
lass::stde::lass_allocator< T, VA >::~lass_allocator (  )  throw () [inline]

Definition at line 75 of file lass_allocator.inl.

template<typename T , typename VariableAllocator >
template<typename U >
lass::stde::lass_allocator< T, VariableAllocator >::lass_allocator ( const lass_allocator< U, VA > &  other  )  throw () [inline]

Definition at line 67 of file lass_allocator.inl.


Member Function Documentation

template<typename T , typename VA >
lass_allocator< T, VA >::pointer lass::stde::lass_allocator< T, VA >::address ( reference  x  )  const [inline]

Definition at line 83 of file lass_allocator.inl.

template<typename T , typename VA >
lass_allocator< T, VA >::const_pointer lass::stde::lass_allocator< T, VA >::address ( const_reference  x  )  const [inline]

Definition at line 92 of file lass_allocator.inl.

template<typename T , typename VariableAllocator >
pointer lass::stde::lass_allocator< T, VariableAllocator >::allocate ( size_type  n,
typename lass_allocator< void, VariableAllocator >::pointer  hint = 0 
)

template<typename T , typename VA >
void lass::stde::lass_allocator< T, VA >::deallocate ( pointer  p,
size_type  n 
) [inline]

Definition at line 110 of file lass_allocator.inl.

References lass::stde::T.

template<typename T , typename VA >
lass_allocator< T, VA >::size_type lass::stde::lass_allocator< T, VA >::max_size (  )  const throw () [inline]

Definition at line 120 of file lass_allocator.inl.

References lass::stde::T.

template<typename T , typename VA >
void lass::stde::lass_allocator< T, VA >::construct ( pointer  p,
const T val 
) [inline]

Definition at line 129 of file lass_allocator.inl.

References lass::stde::T.

template<typename T , typename VA >
void lass::stde::lass_allocator< T, VA >::destroy ( pointer  p  )  [inline]

Definition at line 137 of file lass_allocator.inl.


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

Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo