tl.MPAllocator< T > Class Template Reference

#include <allocator.h>

List of all members.


Detailed Description

template<class T>
class tl::MPAllocator< T >

A MemoryPool based STL allocator.


Public Types

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

Public Member Functions

 MPAllocator (MemoryPool &mp)
template<class U>
 MPAllocator (const MPAllocator< U > &allocator)
 ~MPAllocator ()
pointer address (reference x) const
const_pointer address (const_reference x) const
MemoryPoolgetMemoryPool () const
pointer allocate (size_type n, const void *=0)
void deallocate (void *p, size_type)
size_type max_size () const
void construct (pointer p, const value_type &x)
void destroy (pointer p)
template<class U>
bool operator== (const MPAllocator< U > &allocator)
template<class U>
bool operator!= (const MPAllocator< U > &allocator)

Classes

struct  rebind


Member Typedef Documentation

template<class T>
typedef T* tl.MPAllocator< T >.pointer

template<class T>
typedef const T* tl.MPAllocator< T >.const_pointer

template<class T>
typedef T& tl.MPAllocator< T >.reference

template<class T>
typedef const T& tl.MPAllocator< T >.const_reference

template<class T>
typedef T tl.MPAllocator< T >.value_type

template<class T>
typedef size_t tl.MPAllocator< T >.size_type

template<class T>
typedef ptrdiff_t tl.MPAllocator< T >.difference_type


Constructor & Destructor Documentation

template<class T>
tl.MPAllocator< T >.MPAllocator ( MemoryPool mp  ) 

template<class T>
template<class U>
tl.MPAllocator< T >.MPAllocator ( const MPAllocator< U > &  allocator  ) 

template<class T>
tl.MPAllocator< T >.~MPAllocator (  ) 


Member Function Documentation

template<class T>
pointer tl.MPAllocator< T >.address ( reference  x  )  const

template<class T>
const_pointer tl.MPAllocator< T >.address ( const_reference  x  )  const

template<class T>
MemoryPool& tl.MPAllocator< T >.getMemoryPool (  )  const

template<class T>
pointer tl.MPAllocator< T >.allocate ( size_type  n,
const void *  = 0 
)

template<class T>
void tl.MPAllocator< T >.deallocate ( void *  p,
size_type   
)

template<class T>
size_type tl.MPAllocator< T >.max_size (  )  const

template<class T>
void tl.MPAllocator< T >.construct ( pointer  p,
const value_type x 
)

template<class T>
void tl.MPAllocator< T >.destroy ( pointer  p  ) 

template<class T>
template<class U>
bool tl.MPAllocator< T >.operator== ( const MPAllocator< U > &  allocator  ) 

template<class T>
template<class U>
bool tl.MPAllocator< T >.operator!= ( const MPAllocator< U > &  allocator  ) 


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

Genereated on Tue Mar 11 19:25:43 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.