STL allocator using CL_MemoryPool. More...
#include <memory_pool.h>
Classes | |
| struct | rebind |
Public Types | |
| typedef const value_type * | const_pointer |
| typedef const value_type & | const_reference |
| typedef std::ptrdiff_t | difference_type |
| typedef value_type * | pointer |
| typedef value_type & | reference |
| typedef std::size_t | size_type |
| typedef _Type | value_type |
Public Member Functions | |
| CL_MemoryPoolAllocator () | |
| CL_MemoryPoolAllocator (const CL_MemoryPoolAllocator< _Type > &_src) | |
| CL_MemoryPoolAllocator (CL_MemoryPool *_memory_pool) | |
| template<typename _Other > | |
| CL_MemoryPoolAllocator (const CL_MemoryPoolAllocator< _Other > &_src) | |
| pointer | address (reference _x) const |
| const_pointer | address (const_reference _x) const |
| template<typename _Other > | |
| pointer | allocate (size_type _count, const _Other *_Hint=0) |
| void | construct (pointer _ptr, const _Type &_value) |
| void | deallocate (pointer _ptr) |
| void | destroy (pointer _ptr, size_type _count) |
| size_type | max_size () const |
STL allocator using CL_MemoryPool.
| typedef const value_type* CL_MemoryPoolAllocator< _Type >::const_pointer |
| typedef const value_type& CL_MemoryPoolAllocator< _Type >::const_reference |
| typedef std::ptrdiff_t CL_MemoryPoolAllocator< _Type >::difference_type |
| typedef value_type* CL_MemoryPoolAllocator< _Type >::pointer |
| typedef value_type& CL_MemoryPoolAllocator< _Type >::reference |
| typedef std::size_t CL_MemoryPoolAllocator< _Type >::size_type |
| typedef _Type CL_MemoryPoolAllocator< _Type >::value_type |
| CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator | ( | ) | [inline] |
| CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator | ( | const CL_MemoryPoolAllocator< _Type > & | _src | ) | [inline] |
| CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator | ( | const CL_MemoryPoolAllocator< _Other > & | _src | ) | [inline] |
| CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator | ( | CL_MemoryPool * | _memory_pool | ) | [inline] |
| pointer CL_MemoryPoolAllocator< _Type >::address | ( | reference | _x | ) | const [inline] |
| const_pointer CL_MemoryPoolAllocator< _Type >::address | ( | const_reference | _x | ) | const [inline] |
| pointer CL_MemoryPoolAllocator< _Type >::allocate | ( | size_type | _count, | |
| const _Other * | _Hint = 0 | |||
| ) | [inline] |
References CL_MemoryPool::alloc().
| void CL_MemoryPoolAllocator< _Type >::construct | ( | pointer | _ptr, | |
| const _Type & | _value | |||
| ) | [inline] |
| void CL_MemoryPoolAllocator< _Type >::deallocate | ( | pointer | _ptr | ) | [inline] |
| void CL_MemoryPoolAllocator< _Type >::destroy | ( | pointer | _ptr, | |
| size_type | _count | |||
| ) | [inline] |
References CL_MemoryPool::free().
| size_type CL_MemoryPoolAllocator< _Type >::max_size | ( | ) | const [inline] |
1.7.1