#include <object_pool.h>
Classes | |
struct | rebind |
Public Types | |
typedef ptrdiff_t | difference_type |
typedef T * | pointer |
typedef T & | reference |
typedef size_t | size_type |
typedef T | value_type |
Public Member Functions | |
const_pointer | address (const_reference r) const |
pointer | address (reference r) const |
pointer | allocate (size_type n, SPAllocator< void >::const_pointer hint=0) |
void | construct (pointer p, const_reference val) |
void | deallocate (pointer p, size_type n) |
void | destroy (pointer p) |
SPStorage * | get_block () const |
FreeList * | get_pool () const |
int32_t | get_used () const |
size_type | max_size () const throw () |
template<class U > | |
SPAllocator (const SPAllocator< U > &u) throw () | |
SPAllocator (FreeList *pool, SPStorage *block) throw () | |
~SPAllocator () throw () | |
Public Attributes | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
Private Attributes | |
SPStorage * | block_ |
FreeList * | pool_ |
int32_t | used_ |
Definition at line 90 of file object_pool.h.
typedef ptrdiff_t lockfree::detail::SPAllocator< T >::difference_type |
Definition at line 138 of file object_pool.h.
typedef T* lockfree::detail::SPAllocator< T >::pointer |
Definition at line 139 of file object_pool.h.
typedef T& lockfree::detail::SPAllocator< T >::reference |
Definition at line 141 of file object_pool.h.
typedef size_t lockfree::detail::SPAllocator< T >::size_type |
Definition at line 137 of file object_pool.h.
typedef T lockfree::detail::SPAllocator< T >::value_type |
Definition at line 143 of file object_pool.h.
|
inline |
Definition at line 151 of file object_pool.h.
|
inline |
Definition at line 159 of file object_pool.h.
|
inline |
Definition at line 166 of file object_pool.h.
|
inline |
Definition at line 174 of file object_pool.h.
|
inline |
Definition at line 170 of file object_pool.h.
|
inline |
Definition at line 182 of file object_pool.h.
|
inline |
Definition at line 203 of file object_pool.h.
|
inline |
Definition at line 191 of file object_pool.h.
|
inline |
Definition at line 207 of file object_pool.h.
|
inline |
Definition at line 212 of file object_pool.h.
|
inline |
Definition at line 214 of file object_pool.h.
|
inline |
Definition at line 213 of file object_pool.h.
|
inline |
Definition at line 178 of file object_pool.h.
|
private |
Definition at line 217 of file object_pool.h.
const typedef T* lockfree::detail::SPAllocator< T >::const_pointer |
Definition at line 140 of file object_pool.h.
const typedef T& lockfree::detail::SPAllocator< T >::const_reference |
Definition at line 142 of file object_pool.h.
|
private |
Definition at line 219 of file object_pool.h.
|
private |
Definition at line 218 of file object_pool.h.