Flow123d  master-1d42d53
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

◆ const_pointer

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

Definition at line 33 of file simple_allocator.hh.

◆ const_reference

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

Definition at line 35 of file simple_allocator.hh.

◆ difference_type

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

Definition at line 31 of file simple_allocator.hh.

◆ pointer

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

Definition at line 32 of file simple_allocator.hh.

◆ reference

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

Definition at line 34 of file simple_allocator.hh.

◆ size_type

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

Definition at line 30 of file simple_allocator.hh.

◆ value_type

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

Definition at line 36 of file simple_allocator.hh.

Constructor & Destructor Documentation

◆ SimpleAllocator() [1/3]

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

Definition at line 38 of file simple_allocator.hh.

◆ SimpleAllocator() [2/3]

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

Definition at line 40 of file simple_allocator.hh.

◆ SimpleAllocator() [3/3]

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

◆ address() [1/2]

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

Definition at line 56 of file simple_allocator.hh.

◆ address() [2/2]

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

Definition at line 54 of file simple_allocator.hh.

◆ allocate()

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

Definition at line 43 of file simple_allocator.hh.

◆ construct()

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

Definition at line 60 of file simple_allocator.hh.

◆ deallocate()

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

Definition at line 48 of file simple_allocator.hh.

◆ destroy()

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

Definition at line 62 of file simple_allocator.hh.

◆ max_size()

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

Definition at line 64 of file simple_allocator.hh.

◆ operator=() [1/2]

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

Definition at line 58 of file simple_allocator.hh.

◆ operator=() [2/2]

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: