mempool_allocator< T > Module Template Reference

#include <mempool_allocator.h>

Collaboration diagram for mempool_allocator< T >:

Collaboration graph
[legend]

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

 mempool_allocator ()
 mempool_allocator (MEM_POOL *p)
 mempool_allocator (const mempool_allocator &a)
template<class U>
 mempool_allocator (const mempool_allocator< U > &a)
 ~mempool_allocator ()
pointer address (reference x) const
const_pointer address (const_reference x) const
pointer allocate (size_type n, const void *=0)
void deallocate (pointer p, size_type)
size_type max_size () const
void construct (pointer p, const T &val)
void destroy (pointer p)
bool operator!= (class mempool_allocator< T > &p)

Private Attributes

MEM_POOLpool

Friends

class mempool_allocator

Data Types

type  rebind

Detailed Description

template<class T>
module mempool_allocator< T >

Definition at line 46 of file mempool_allocator.h.


Member Typedef Documentation

template<class T>
typedef size_t mempool_allocator< T >::size_type

Definition at line 52 of file mempool_allocator.h.

template<class T>
typedef ptrdiff_t mempool_allocator< T >::difference_type

Definition at line 53 of file mempool_allocator.h.

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

Definition at line 54 of file mempool_allocator.h.

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

Definition at line 55 of file mempool_allocator.h.

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

Definition at line 56 of file mempool_allocator.h.

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

Definition at line 57 of file mempool_allocator.h.

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

Definition at line 58 of file mempool_allocator.h.


Constructor & Destructor Documentation

template<class T>
mempool_allocator< T >::mempool_allocator (  )  [inline]

Definition at line 64 of file mempool_allocator.h.

template<class T>
mempool_allocator< T >::mempool_allocator ( MEM_POOL p  )  [inline]

Definition at line 65 of file mempool_allocator.h.

template<class T>
mempool_allocator< T >::mempool_allocator ( const mempool_allocator< T > &  a  )  [inline]

Definition at line 66 of file mempool_allocator.h.

template<class T>
template<class U>
mempool_allocator< T >::mempool_allocator ( const mempool_allocator< U > &  a  )  [inline]

Definition at line 67 of file mempool_allocator.h.

template<class T>
mempool_allocator< T >::~mempool_allocator (  )  [inline]

Definition at line 69 of file mempool_allocator.h.


Member Function/Subroutine Documentation

template<class T>
pointer mempool_allocator< T >::address ( reference  x  )  const [inline]

Definition at line 71 of file mempool_allocator.h.

template<class T>
const_pointer mempool_allocator< T >::address ( const_reference  x  )  const [inline]

Definition at line 72 of file mempool_allocator.h.

template<class T>
pointer mempool_allocator< T >::allocate ( size_type  n,
const void = 0 
) [inline]

Definition at line 74 of file mempool_allocator.h.

template<class T>
void mempool_allocator< T >::deallocate ( pointer  p,
size_type   
) [inline]

Definition at line 77 of file mempool_allocator.h.

template<class T>
size_type mempool_allocator< T >::max_size (  )  const [inline]

Definition at line 82 of file mempool_allocator.h.

template<class T>
void mempool_allocator< T >::construct ( pointer  p,
const T val 
) [inline]

Definition at line 84 of file mempool_allocator.h.

template<class T>
void mempool_allocator< T >::destroy ( pointer  p  )  [inline]

Definition at line 85 of file mempool_allocator.h.

template<class T>
bool mempool_allocator< T >::operator!= ( class mempool_allocator< T > &  p  )  [inline]

Definition at line 86 of file mempool_allocator.h.


Friends And Related Function Documentation

template<class T>
friend class mempool_allocator [friend]

Definition at line 49 of file mempool_allocator.h.


Field Documentation

template<class T>
MEM_POOL* mempool_allocator< T >::pool [private]


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

Generated on Wed Apr 8 16:55:54 2009 for Open64 by  doxygen 1.5.6