CL_MemoryPoolAllocator< _Type > Class Template Reference
[clanCore System]

STL allocator using CL_MemoryPool. More...

#include <memory_pool.h>

List of all members.

Public Types

typedef _Type value_type
typedef value_typepointer
typedef const value_typeconst_pointer
typedef value_typereference
typedef const value_typeconst_reference
typedef std::size_t size_type
typedef std::ptrdiff_t difference_type

Public Member Functions

 CL_MemoryPoolAllocator ()
 CL_MemoryPoolAllocator (const CL_MemoryPoolAllocator< _Type > &_src)
template<typename _Other>
 CL_MemoryPoolAllocator (const CL_MemoryPoolAllocator< _Other > &_src)
 CL_MemoryPoolAllocator (CL_MemoryPool *_memory_pool)
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 destroy (pointer _ptr, size_type _count)
size_type max_size () const
void construct (pointer _ptr, const _Type &_value)
void deallocate (pointer _ptr)

Classes

struct  rebind


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>
const_pointer CL_MemoryPoolAllocator< _Type >::address const_reference  _x  )  const [inline]
 

template<typename _Type>
pointer CL_MemoryPoolAllocator< _Type >::address 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]
 

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


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:39 2009 for ClanLib by  doxygen 1.4.6