|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
A dirt-simple lightweight stl pool allocator meant for use in short-lifetime objects. More...
#include <StlPoolAllocator.hxx>
Classes | |
| struct | rebind |
Public Types | |
| typedef T | value_type |
| typedef value_type * | pointer |
| typedef const value_type * | const_pointer |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
Public Member Functions | |
| StlPoolAllocator (P *pool=0) | |
| StlPoolAllocator (const StlPoolAllocator &other) | |
| StlPoolAllocator & | operator= (const StlPoolAllocator &rhs) |
| template<typename U > | |
| StlPoolAllocator (const StlPoolAllocator< U, P > &other) | |
| ~StlPoolAllocator () | |
| pointer | address (reference ref) const |
| const_pointer | address (const_reference ref) const |
| pointer | allocate (size_type n, const void *hint=0) |
| void | deallocate (pointer ptr, size_type n) |
| void * | allocate_raw (size_type bytes) |
| void | deallocate_raw (void *ptr) |
| size_type | max_size () const |
| size_type | max_size (size_type _sz) const |
| void | construct (pointer p, const_reference orig) |
| void | destroy (pointer ptr) |
| bool | operator== (const StlPoolAllocator &rhs) const |
| bool | operator!= (const StlPoolAllocator &rhs) const |
Public Attributes | |
| P * | mPool |
A dirt-simple lightweight stl pool allocator meant for use in short-lifetime objects.
This will pool-allocate at most S bytes, after which no further pool allocation will be performed, and fallback to the system new/delete will be used (deallocating a pool allocated object will not free up room in the pool).
Definition at line 28 of file StlPoolAllocator.hxx.
| typedef const value_type* resip::StlPoolAllocator< T, P >::const_pointer |
Definition at line 33 of file StlPoolAllocator.hxx.
| typedef const value_type& resip::StlPoolAllocator< T, P >::const_reference |
Definition at line 35 of file StlPoolAllocator.hxx.
| typedef ptrdiff_t resip::StlPoolAllocator< T, P >::difference_type |
Definition at line 37 of file StlPoolAllocator.hxx.
| typedef value_type* resip::StlPoolAllocator< T, P >::pointer |
Definition at line 32 of file StlPoolAllocator.hxx.
| typedef value_type& resip::StlPoolAllocator< T, P >::reference |
Definition at line 34 of file StlPoolAllocator.hxx.
| typedef size_t resip::StlPoolAllocator< T, P >::size_type |
Definition at line 36 of file StlPoolAllocator.hxx.
| typedef T resip::StlPoolAllocator< T, P >::value_type |
Definition at line 31 of file StlPoolAllocator.hxx.
|
inlineexplicit |
Definition at line 55 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 57 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 67 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 70 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 84 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 79 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 89 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 99 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 136 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 94 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 108 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 141 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 118 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 127 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 151 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 59 of file StlPoolAllocator.hxx.
|
inline |
Definition at line 146 of file StlPoolAllocator.hxx.
| P* resip::StlPoolAllocator< T, P >::mPool |
Definition at line 156 of file StlPoolAllocator.hxx.