Flow123d  release_3.0.0-1070-g00ac913
Classes | Public Types | Public Member Functions | List of all members
internal::SimpleAllocator< T > Class Template Reference

#include <simple_allocator.hh>

Classes

struct  rebind
 

Public Types

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

Public Member Functions

 SimpleAllocator ()
 
 SimpleAllocator (const SimpleAllocator &)
 
pointer allocate (size_type n, const void *=0)
 
void deallocate (void *p, size_type)
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
SimpleAllocator< T > & operator= (const SimpleAllocator &)
 
void construct (pointer p, const T &val)
 
void destroy (pointer p)
 
size_type max_size () const
 
template<class U >
 SimpleAllocator (const SimpleAllocator< U > &)
 
template<class U >
SimpleAllocatoroperator= (const SimpleAllocator< U > &)
 

Detailed Description

template<class T>
class internal::SimpleAllocator< T >

Simple allocator which uses default malloc and free functions. Fields allocated with this allocator will not be included in overall memory consumption.

Definition at line 28 of file simple_allocator.hh.

Member Typedef Documentation

template<class T >
typedef const T* internal::SimpleAllocator< T >::const_pointer

Definition at line 33 of file simple_allocator.hh.

template<class T >
typedef const T& internal::SimpleAllocator< T >::const_reference

Definition at line 35 of file simple_allocator.hh.

template<class T >
typedef ptrdiff_t internal::SimpleAllocator< T >::difference_type

Definition at line 31 of file simple_allocator.hh.

template<class T >
typedef T* internal::SimpleAllocator< T >::pointer

Definition at line 32 of file simple_allocator.hh.

template<class T >
typedef T& internal::SimpleAllocator< T >::reference

Definition at line 34 of file simple_allocator.hh.

template<class T >
typedef size_t internal::SimpleAllocator< T >::size_type

Definition at line 30 of file simple_allocator.hh.

template<class T >
typedef T internal::SimpleAllocator< T >::value_type

Definition at line 36 of file simple_allocator.hh.

Constructor & Destructor Documentation

template<class T >
internal::SimpleAllocator< T >::SimpleAllocator ( )
inline

Definition at line 38 of file simple_allocator.hh.

template<class T >
internal::SimpleAllocator< T >::SimpleAllocator ( const SimpleAllocator< T > &  )
inline

Definition at line 40 of file simple_allocator.hh.

template<class T >
template<class U >
internal::SimpleAllocator< T >::SimpleAllocator ( const SimpleAllocator< U > &  )
inline

Definition at line 72 of file simple_allocator.hh.

Member Function Documentation

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

Definition at line 54 of file simple_allocator.hh.

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

Definition at line 56 of file simple_allocator.hh.

template<class T >
pointer internal::SimpleAllocator< T >::allocate ( size_type  n,
const void *  = 0 
)
inline

Definition at line 43 of file simple_allocator.hh.

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

Definition at line 60 of file simple_allocator.hh.

template<class T >
void internal::SimpleAllocator< T >::deallocate ( void *  p,
size_type   
)
inline

Definition at line 48 of file simple_allocator.hh.

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

Definition at line 62 of file simple_allocator.hh.

template<class T >
size_type internal::SimpleAllocator< T >::max_size ( ) const
inline

Definition at line 64 of file simple_allocator.hh.

template<class T >
SimpleAllocator<T>& internal::SimpleAllocator< T >::operator= ( const SimpleAllocator< T > &  )
inline

Definition at line 58 of file simple_allocator.hh.

template<class T >
template<class U >
SimpleAllocator& internal::SimpleAllocator< T >::operator= ( const SimpleAllocator< U > &  )
inline

Definition at line 75 of file simple_allocator.hh.


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