pre_allocated_alloc< T, N > Class Template Reference

#include <preallocated.h>

List of all members.

Classes

struct  rebind

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

pointer address (reference value) const
const_pointer address (const_reference value) const
 pre_allocated_alloc () throw ()
 pre_allocated_alloc (const pre_allocated_alloc &) throw ()
template<class U >
 pre_allocated_alloc (const pre_allocated_alloc< U, N > &) throw ()
size_type max_size () const throw ()
pointer allocate (size_type num, const void *=0)
void construct (pointer p, const T &value)
void destroy (pointer p)
void deallocate (pointer, size_type)

Public Attributes

unsigned char _memory [N]
unsigned next


Detailed Description

template<class T, unsigned N>
class pre_allocated_alloc< T, N >

Definition at line 24 of file preallocated.h.


Member Typedef Documentation

template<class T, unsigned N>
typedef const T* pre_allocated_alloc< T, N >::const_pointer

Definition at line 29 of file preallocated.h.

template<class T, unsigned N>
typedef const T& pre_allocated_alloc< T, N >::const_reference

Definition at line 31 of file preallocated.h.

template<class T, unsigned N>
typedef std::ptrdiff_t pre_allocated_alloc< T, N >::difference_type

Definition at line 33 of file preallocated.h.

template<class T, unsigned N>
typedef T* pre_allocated_alloc< T, N >::pointer

Definition at line 28 of file preallocated.h.

template<class T, unsigned N>
typedef T& pre_allocated_alloc< T, N >::reference

Definition at line 30 of file preallocated.h.

template<class T, unsigned N>
typedef std::size_t pre_allocated_alloc< T, N >::size_type

Definition at line 32 of file preallocated.h.

template<class T, unsigned N>
typedef T pre_allocated_alloc< T, N >::value_type

Definition at line 27 of file preallocated.h.


Constructor & Destructor Documentation

template<class T, unsigned N>
pre_allocated_alloc< T, N >::pre_allocated_alloc (  )  throw () [inline]

Definition at line 52 of file preallocated.h.

References pre_allocated_alloc< T, N >::next.

template<class T, unsigned N>
pre_allocated_alloc< T, N >::pre_allocated_alloc ( const pre_allocated_alloc< T, N > &   )  throw () [inline]

Definition at line 55 of file preallocated.h.

References pre_allocated_alloc< T, N >::next.

template<class T, unsigned N>
template<class U >
pre_allocated_alloc< T, N >::pre_allocated_alloc ( const pre_allocated_alloc< U, N > &   )  throw () [inline]

Definition at line 60 of file preallocated.h.

References pre_allocated_alloc< T, N >::next.


Member Function Documentation

template<class T, unsigned N>
const_pointer pre_allocated_alloc< T, N >::address ( const_reference  value  )  const [inline]

Definition at line 48 of file preallocated.h.

template<class T, unsigned N>
pointer pre_allocated_alloc< T, N >::address ( reference  value  )  const [inline]

Definition at line 45 of file preallocated.h.

template<class T, unsigned N>
pointer pre_allocated_alloc< T, N >::allocate ( size_type  num,
const void *  = 0 
) [inline]

template<class T, unsigned N>
void pre_allocated_alloc< T, N >::construct ( pointer  p,
const T &  value 
) [inline]

Definition at line 81 of file preallocated.h.

template<class T, unsigned N>
void pre_allocated_alloc< T, N >::deallocate ( pointer  ,
size_type   
) [inline]

Definition at line 93 of file preallocated.h.

template<class T, unsigned N>
void pre_allocated_alloc< T, N >::destroy ( pointer  p  )  [inline]

Definition at line 87 of file preallocated.h.

template<class T, unsigned N>
size_type pre_allocated_alloc< T, N >::max_size (  )  const throw () [inline]

Definition at line 65 of file preallocated.h.

References N, and pre_allocated_alloc< T, N >::next.


Member Data Documentation

template<class T, unsigned N>
unsigned char pre_allocated_alloc< T, N >::_memory[N]

Definition at line 35 of file preallocated.h.

Referenced by pre_allocated_alloc< T, N >::allocate().

template<class T, unsigned N>
unsigned pre_allocated_alloc< T, N >::next


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

Generated on Tue Mar 30 15:53:25 2010 for Polyora by  doxygen 1.5.9