fei_Pool_alloc< T > Class Template Reference

#include <fei_Pool_alloc.hpp>

Inheritance diagram for fei_Pool_alloc< T >:

Inheritance graph
[legend]
List of all members.

Public Types

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

Public Member Functions

pointer address (reference value) const
const_pointer address (const_reference value) const
 fei_Pool_alloc () throw ()
 fei_Pool_alloc (const T &) throw ()
template<typename U>
 fei_Pool_alloc (const fei_Pool_alloc< U > &) throw ()
 ~fei_Pool_alloc () throw ()
pointer allocate (size_type n, const void *hint=NULL)
void deallocate (pointer p, size_type n)
template<typename U>
void construct (U *p, const U &val)
void construct (pointer p, const T &val)
template<typename U>
void destroy (U *p)
void destroy (pointer p)
size_type max_size () const throw ()

Classes

struct  rebind
struct  rebind

Detailed Description

template<typename T>
class fei_Pool_alloc< T >

fei_Pool_alloc (along with its underlying memory-pool class fei_Pool) is taken almost verbatim from Stroustrup's book "The C++ Programming Language 3rd edition", pages 567-572.

The difference between this class and the one in the book is that the length of allocated memory-chunks must always be the same. That is, the first time allocate is called, an internal memory-pool is created with the specified alloc-size. That memory-pool can only satisfy allocation requests of that same size from then on.

Definition at line 33 of file fei_Pool_alloc.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 12 01:33:31 2010 for FEI by  doxygen 1.4.7