Classes | Public Types | Public Member Functions

CL_MemoryPoolAllocator< _Type > Class Template Reference
[clanCore System]

STL allocator using CL_MemoryPool. More...

#include <memory_pool.h>

List of all members.

Classes

struct  rebind

Public Types

typedef const value_typeconst_pointer
typedef const value_typeconst_reference
typedef std::ptrdiff_t difference_type
typedef value_typepointer
typedef value_typereference
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

Detailed Description

template<typename _Type>
class CL_MemoryPoolAllocator< _Type >

STL allocator using CL_MemoryPool.


Member Typedef Documentation

template<typename _Type>
typedef const value_type* CL_MemoryPoolAllocator< _Type >::const_pointer
template<typename _Type>
typedef const value_type& CL_MemoryPoolAllocator< _Type >::const_reference
template<typename _Type>
typedef std::ptrdiff_t CL_MemoryPoolAllocator< _Type >::difference_type
template<typename _Type>
typedef value_type* CL_MemoryPoolAllocator< _Type >::pointer
template<typename _Type>
typedef value_type& CL_MemoryPoolAllocator< _Type >::reference
template<typename _Type>
typedef std::size_t CL_MemoryPoolAllocator< _Type >::size_type
template<typename _Type>
typedef _Type CL_MemoryPoolAllocator< _Type >::value_type

Constructor & Destructor Documentation

template<typename _Type>
CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator (  )  [inline]
template<typename _Type>
CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator ( const CL_MemoryPoolAllocator< _Type > &  _src  )  [inline]
template<typename _Type>
template<typename _Other >
CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator ( const CL_MemoryPoolAllocator< _Other > &  _src  )  [inline]
template<typename _Type>
CL_MemoryPoolAllocator< _Type >::CL_MemoryPoolAllocator ( CL_MemoryPool _memory_pool  )  [inline]

Member Function Documentation

template<typename _Type>
pointer CL_MemoryPoolAllocator< _Type >::address ( reference  _x  )  const [inline]
template<typename _Type>
const_pointer CL_MemoryPoolAllocator< _Type >::address ( const_reference  _x  )  const [inline]
template<typename _Type>
template<typename _Other >
pointer CL_MemoryPoolAllocator< _Type >::allocate ( size_type  _count,
const _Other *  _Hint = 0 
) [inline]
template<typename _Type>
void CL_MemoryPoolAllocator< _Type >::construct ( pointer  _ptr,
const _Type &  _value 
) [inline]
template<typename _Type>
void CL_MemoryPoolAllocator< _Type >::deallocate ( pointer  _ptr  )  [inline]
template<typename _Type>
void CL_MemoryPoolAllocator< _Type >::destroy ( pointer  _ptr,
size_type  _count 
) [inline]

References CL_MemoryPool::free().

template<typename _Type>
size_type CL_MemoryPoolAllocator< _Type >::max_size (  )  const [inline]

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