#include <preallocated.h>
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 |
Definition at line 24 of file preallocated.h.
| typedef const T* pre_allocated_alloc< T, N >::const_pointer |
Definition at line 29 of file preallocated.h.
| typedef const T& pre_allocated_alloc< T, N >::const_reference |
Definition at line 31 of file preallocated.h.
| typedef std::ptrdiff_t pre_allocated_alloc< T, N >::difference_type |
Definition at line 33 of file preallocated.h.
| typedef T* pre_allocated_alloc< T, N >::pointer |
Definition at line 28 of file preallocated.h.
| typedef T& pre_allocated_alloc< T, N >::reference |
Definition at line 30 of file preallocated.h.
| typedef std::size_t pre_allocated_alloc< T, N >::size_type |
Definition at line 32 of file preallocated.h.
| typedef T pre_allocated_alloc< T, N >::value_type |
Definition at line 27 of file preallocated.h.
| pre_allocated_alloc< T, N >::pre_allocated_alloc | ( | ) | throw () [inline] |
| pre_allocated_alloc< T, N >::pre_allocated_alloc | ( | const pre_allocated_alloc< T, N > & | ) | throw () [inline] |
| pre_allocated_alloc< T, N >::pre_allocated_alloc | ( | const pre_allocated_alloc< U, N > & | ) | throw () [inline] |
| const_pointer pre_allocated_alloc< T, N >::address | ( | const_reference | value | ) | const [inline] |
Definition at line 48 of file preallocated.h.
| pointer pre_allocated_alloc< T, N >::address | ( | reference | value | ) | const [inline] |
Definition at line 45 of file preallocated.h.
| pointer pre_allocated_alloc< T, N >::allocate | ( | size_type | num, | |
| const void * | = 0 | |||
| ) | [inline] |
Definition at line 70 of file preallocated.h.
References pre_allocated_alloc< T, N >::_memory, N, and pre_allocated_alloc< T, N >::next.
| void pre_allocated_alloc< T, N >::construct | ( | pointer | p, | |
| const T & | value | |||
| ) | [inline] |
Definition at line 81 of file preallocated.h.
| void pre_allocated_alloc< T, N >::deallocate | ( | pointer | , | |
| size_type | ||||
| ) | [inline] |
Definition at line 93 of file preallocated.h.
| void pre_allocated_alloc< T, N >::destroy | ( | pointer | p | ) | [inline] |
Definition at line 87 of file preallocated.h.
| size_type pre_allocated_alloc< T, N >::max_size | ( | ) | const throw () [inline] |
| 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().
| unsigned pre_allocated_alloc< T, N >::next |
Definition at line 36 of file preallocated.h.
Referenced by pre_allocated_alloc< T, N >::allocate(), pre_allocated_alloc< T, N >::max_size(), and pre_allocated_alloc< T, N >::pre_allocated_alloc().
1.5.9