dune-fem 2.8.0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
Dune::Fem::StackAllocator< T, S > Struct Template Reference

#include <dune/fem/common/stackallocator.hh>

Inheritance diagram for Dune::Fem::StackAllocator< T, S >:
Inheritance graph

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef UninitializedObjectStack Stack
 
typedef S StackPtr
 

Public Member Functions

 StackAllocator (StackPtr stack)
 
template<class U >
 StackAllocator (const StackAllocator< U, S > &other)
 
template<class U >
 StackAllocator (StackAllocator< U, S > &&other)
 
 StackAllocator (const StackAllocator &other)
 
 StackAllocator (StackAllocator &&other)
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n, typename rebind< void >::other::const_pointer hint=nullptr)
 
void deallocate (pointer p, size_type n)
 
size_type max_size () const
 
template<class... Args>
void construct (pointer p, Args &&... args)
 
void destroy (pointer p)
 

Member Typedef Documentation

◆ const_pointer

template<class T , class S = UninitializedObjectStack *>
typedef const T* Dune::Fem::StackAllocator< T, S >::const_pointer

◆ const_reference

template<class T , class S = UninitializedObjectStack *>
typedef const T& Dune::Fem::StackAllocator< T, S >::const_reference

◆ difference_type

template<class T , class S = UninitializedObjectStack *>
typedef std::ptrdiff_t Dune::Fem::StackAllocator< T, S >::difference_type

◆ pointer

template<class T , class S = UninitializedObjectStack *>
typedef T* Dune::Fem::StackAllocator< T, S >::pointer

◆ reference

template<class T , class S = UninitializedObjectStack *>
typedef T& Dune::Fem::StackAllocator< T, S >::reference

◆ size_type

template<class T , class S = UninitializedObjectStack *>
typedef std::size_t Dune::Fem::StackAllocator< T, S >::size_type

◆ Stack

template<class T , class S = UninitializedObjectStack *>
typedef UninitializedObjectStack Dune::Fem::StackAllocator< T, S >::Stack

◆ StackPtr

template<class T , class S = UninitializedObjectStack *>
typedef S Dune::Fem::StackAllocator< T, S >::StackPtr

◆ value_type

template<class T , class S = UninitializedObjectStack *>
typedef T Dune::Fem::StackAllocator< T, S >::value_type

Constructor & Destructor Documentation

◆ StackAllocator() [1/5]

template<class T , class S = UninitializedObjectStack *>
Dune::Fem::StackAllocator< T, S >::StackAllocator ( StackPtr  stack)
inlineexplicit

◆ StackAllocator() [2/5]

template<class T , class S = UninitializedObjectStack *>
template<class U >
Dune::Fem::StackAllocator< T, S >::StackAllocator ( const StackAllocator< U, S > &  other)
inline

◆ StackAllocator() [3/5]

template<class T , class S = UninitializedObjectStack *>
template<class U >
Dune::Fem::StackAllocator< T, S >::StackAllocator ( StackAllocator< U, S > &&  other)
inline

◆ StackAllocator() [4/5]

template<class T , class S = UninitializedObjectStack *>
Dune::Fem::StackAllocator< T, S >::StackAllocator ( const StackAllocator< T, S > &  other)
inline

◆ StackAllocator() [5/5]

template<class T , class S = UninitializedObjectStack *>
Dune::Fem::StackAllocator< T, S >::StackAllocator ( StackAllocator< T, S > &&  other)
inline

Member Function Documentation

◆ address() [1/2]

template<class T , class S = UninitializedObjectStack *>
const_pointer Dune::Fem::StackAllocator< T, S >::address ( const_reference  x) const
inline

◆ address() [2/2]

template<class T , class S = UninitializedObjectStack *>
pointer Dune::Fem::StackAllocator< T, S >::address ( reference  x) const
inline

◆ allocate()

template<class T , class S = UninitializedObjectStack *>
pointer Dune::Fem::StackAllocator< T, S >::allocate ( size_type  n,
typename rebind< void >::other::const_pointer  hint = nullptr 
)
inline

◆ construct()

template<class T , class S = UninitializedObjectStack *>
template<class... Args>
void Dune::Fem::StackAllocator< T, S >::construct ( pointer  p,
Args &&...  args 
)
inline

◆ deallocate()

template<class T , class S = UninitializedObjectStack *>
void Dune::Fem::StackAllocator< T, S >::deallocate ( pointer  p,
size_type  n 
)
inline

◆ destroy()

template<class T , class S = UninitializedObjectStack *>
void Dune::Fem::StackAllocator< T, S >::destroy ( pointer  p)
inline

◆ max_size()

template<class T , class S = UninitializedObjectStack *>
size_type Dune::Fem::StackAllocator< T, S >::max_size ( ) const
inline

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