zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pool_allocator< T > Class Template Reference

#include <PoolAlloc.h>

Classes

struct  rebind
 

Public Types

typedef const T * const_pointer
 
typedef const T & const_reference
 
typedef ptrdiff_t difference_type
 
typedef T * pointer
 
typedef T & reference
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

 pool_allocator ()
 
 pool_allocator (TPoolAllocator &a)
 
 pool_allocator (const pool_allocator< T > &p)
 
template<class Other >
 pool_allocator (const pool_allocator< Other > &p)
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n)
 
pointer allocate (size_type n, const void *)
 
void construct (pointer p, const T &val)
 
void deallocate (pointer, size_type)
 
void destroy (pointer p)
 
TPoolAllocatorgetAllocator () const
 
size_type max_size () const
 
size_type max_size (int size) const
 
bool operator!= (const pool_allocator &rhs) const
 
template<class Other >
pool_allocator< T > & operator= (const pool_allocator< Other > &p)
 
bool operator== (const pool_allocator &rhs) const
 
void setAllocator (TPoolAllocator *a)
 

Protected Attributes

TPoolAllocatorallocator
 

Detailed Description

template<class T>
class pool_allocator< T >

Definition at line 233 of file PoolAlloc.h.

Member Typedef Documentation

template<class T>
typedef const T* pool_allocator< T >::const_pointer

Definition at line 238 of file PoolAlloc.h.

template<class T>
typedef const T& pool_allocator< T >::const_reference

Definition at line 240 of file PoolAlloc.h.

template<class T>
typedef ptrdiff_t pool_allocator< T >::difference_type

Definition at line 236 of file PoolAlloc.h.

template<class T>
typedef T* pool_allocator< T >::pointer

Definition at line 237 of file PoolAlloc.h.

template<class T>
typedef T& pool_allocator< T >::reference

Definition at line 239 of file PoolAlloc.h.

template<class T>
typedef size_t pool_allocator< T >::size_type

Definition at line 235 of file PoolAlloc.h.

template<class T>
typedef T pool_allocator< T >::value_type

Definition at line 241 of file PoolAlloc.h.

Constructor & Destructor Documentation

template<class T>
pool_allocator< T >::pool_allocator ( )
inline

Definition at line 250 of file PoolAlloc.h.

template<class T>
pool_allocator< T >::pool_allocator ( TPoolAllocator a)
inline

Definition at line 251 of file PoolAlloc.h.

template<class T>
pool_allocator< T >::pool_allocator ( const pool_allocator< T > &  p)
inline

Definition at line 252 of file PoolAlloc.h.

template<class T>
template<class Other >
pool_allocator< T >::pool_allocator ( const pool_allocator< Other > &  p)
inline

Definition at line 261 of file PoolAlloc.h.

Member Function Documentation

template<class T>
pointer pool_allocator< T >::address ( reference  x) const
inline

Definition at line 247 of file PoolAlloc.h.

template<class T>
const_pointer pool_allocator< T >::address ( const_reference  x) const
inline

Definition at line 248 of file PoolAlloc.h.

template<class T>
pointer pool_allocator< T >::allocate ( size_type  n)
inline

Definition at line 275 of file PoolAlloc.h.

References TPoolAllocator::allocate(), and pool_allocator< T >::getAllocator().

template<class T>
pointer pool_allocator< T >::allocate ( size_type  n,
const void  
)
inline

Definition at line 278 of file PoolAlloc.h.

References TPoolAllocator::allocate(), and pool_allocator< T >::getAllocator().

template<class T>
void pool_allocator< T >::construct ( pointer  p,
const T &  val 
)
inline

Definition at line 284 of file PoolAlloc.h.

template<class T>
void pool_allocator< T >::deallocate ( pointer  ,
size_type   
)
inline

Definition at line 281 of file PoolAlloc.h.

template<class T>
void pool_allocator< T >::destroy ( pointer  p)
inline

Definition at line 285 of file PoolAlloc.h.

template<class T>
TPoolAllocator& pool_allocator< T >::getAllocator ( ) const
inline
template<class T>
size_type pool_allocator< T >::max_size ( ) const
inline

Definition at line 290 of file PoolAlloc.h.

template<class T>
size_type pool_allocator< T >::max_size ( int  size) const
inline

Definition at line 291 of file PoolAlloc.h.

template<class T>
bool pool_allocator< T >::operator!= ( const pool_allocator< T > &  rhs) const
inline

Definition at line 288 of file PoolAlloc.h.

References pool_allocator< T >::getAllocator().

template<class T>
template<class Other >
pool_allocator<T>& pool_allocator< T >::operator= ( const pool_allocator< Other > &  p)
inline

Definition at line 255 of file PoolAlloc.h.

References pool_allocator< T >::allocator.

template<class T>
bool pool_allocator< T >::operator== ( const pool_allocator< T > &  rhs) const
inline

Definition at line 287 of file PoolAlloc.h.

References pool_allocator< T >::getAllocator().

template<class T>
void pool_allocator< T >::setAllocator ( TPoolAllocator a)
inline

Definition at line 293 of file PoolAlloc.h.

References pool_allocator< T >::allocator.

Member Data Documentation

template<class T>
TPoolAllocator* pool_allocator< T >::allocator
protected

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