dune-fem  2.8-git
Public Types | List of all members
Dune::GeometryTypeMap< T, dim, TypeIndex > Class Template Reference

associative container assigning values to each GeometryType More...

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

Public Types

typedef Container::value_type value_type
 value type More...
 
typedef Container::reference reference
 reference type More...
 
typedef Container::const_reference const_reference
 const reference type More...
 
typedef Container::pointer pointer
 pointer type More...
 
typedef Container::const_pointer const_pointer
 const pointer type More...
 
typedef Container::iterator iterator
 iterator type More...
 
typedef Container::const_iterator const_iterator
 const iterator type More...
 
typedef Container::size_type size_type
 size type More...
 
typedef Container::difference_type difference_type
 difference type More...
 
typedef value_type Value
 value type More...
 
typedef iterator Iterator
 iterator type More...
 
typedef const_iterator ConstIterator
 iterator type More...
 
typedef size_type Size
 size type More...
 

Public Member Functions

Construction and Assignment
 GeometryTypeMap ()
 default constructor More...
 
 GeometryTypeMap (const This &)=default
 copy constructor More...
 
 GeometryTypeMap (This &&)=default
 move constructor More...
 
Thisoperator= (const This &)=default
 copy assignment More...
 
Thisoperator= (This &&)=default
 move assignment More...
 
Iterators
Iterator begin () noexcept
 return iterator to beginning More...
 
Iterator end () noexcept
 return iterator to end More...
 
ConstIterator begin () const noexcept
 return iterator to beginning More...
 
ConstIterator end () const noexcept
 return iterator to end More...
 
ConstIterator cbegin () const noexcept
 return const_iterator to beginning More...
 
ConstIterator cend () const noexcept
 return const_iterator to end More...
 
Capacity
constexpr Size size () const noexcept
 return size More...
 
constexpr Size max_size () const noexcept
 return maximum size More...
 
constexpr bool empty () const noexcept
 test whether container is empty More...
 
Element access
Valueoperator[] (const GeometryType &type)
 access element More...
 
const Valueoperator[] (const GeometryType &type) const
 access element More...
 
Valueat (const GeometryType &type)
 access element More...
 
const Valueat (const GeometryType &type) const
 access element More...
 
Valuefront ()
 access first element More...
 
const Valuefront () const
 access first element More...
 
Valueback ()
 access last element More...
 
const Valueback () const
 access last element More...
 
Valuedata () noexcept
 get pointer to data More...
 
const Valuedata () const noexcept
 get pointer to data More...
 
Modifiers
void fill (const Value &value)
 fill container with value More...
 
void swap (This &other) noexcept(noexcept(swap(std::declval< Value & >(), std::declval< Value & >())))
 swap content More...
 

Detailed Description

template<class T, int dim, class TypeIndex>
class Dune::GeometryTypeMap< T, dim, TypeIndex >

associative container assigning values to each GeometryType

The GeometryTypeMap is an associative container similar to std::map< GeometryType, T >.

Template Parameters
Tvalue type
TypeIndexSettype index set (see note)
Note
T must be default constructable, copy constructable and copy assignable.
A TypeIndexSet is required to implement the following interface:
struct TypeIndexSet
{
static constexpr std::size_t size () noexcept;
static std::size_t index ( const GeometryType &type ) noexcept;
};
constexpr Size size() const noexcept
return size
Definition: geometrytypemap.hh:125

Member Typedef Documentation

◆ const_iterator

template<class T , int dim, class TypeIndex >
typedef Container::const_iterator Dune::GeometryTypeMap< T, dim, TypeIndex >::const_iterator

const iterator type

◆ const_pointer

template<class T , int dim, class TypeIndex >
typedef Container::const_pointer Dune::GeometryTypeMap< T, dim, TypeIndex >::const_pointer

const pointer type

◆ const_reference

template<class T , int dim, class TypeIndex >
typedef Container::const_reference Dune::GeometryTypeMap< T, dim, TypeIndex >::const_reference

const reference type

◆ ConstIterator

template<class T , int dim, class TypeIndex >
typedef const_iterator Dune::GeometryTypeMap< T, dim, TypeIndex >::ConstIterator

iterator type

◆ difference_type

template<class T , int dim, class TypeIndex >
typedef Container::difference_type Dune::GeometryTypeMap< T, dim, TypeIndex >::difference_type

difference type

◆ iterator

template<class T , int dim, class TypeIndex >
typedef Container::iterator Dune::GeometryTypeMap< T, dim, TypeIndex >::iterator

iterator type

◆ Iterator

template<class T , int dim, class TypeIndex >
typedef iterator Dune::GeometryTypeMap< T, dim, TypeIndex >::Iterator

iterator type

◆ pointer

template<class T , int dim, class TypeIndex >
typedef Container::pointer Dune::GeometryTypeMap< T, dim, TypeIndex >::pointer

pointer type

◆ reference

template<class T , int dim, class TypeIndex >
typedef Container::reference Dune::GeometryTypeMap< T, dim, TypeIndex >::reference

reference type

◆ Size

template<class T , int dim, class TypeIndex >
typedef size_type Dune::GeometryTypeMap< T, dim, TypeIndex >::Size

size type

◆ size_type

template<class T , int dim, class TypeIndex >
typedef Container::size_type Dune::GeometryTypeMap< T, dim, TypeIndex >::size_type

size type

◆ Value

template<class T , int dim, class TypeIndex >
typedef value_type Dune::GeometryTypeMap< T, dim, TypeIndex >::Value

value type

◆ value_type

template<class T , int dim, class TypeIndex >
typedef Container::value_type Dune::GeometryTypeMap< T, dim, TypeIndex >::value_type

value type

Constructor & Destructor Documentation

◆ GeometryTypeMap() [1/3]

template<class T , int dim, class TypeIndex >
Dune::GeometryTypeMap< T, dim, TypeIndex >::GeometryTypeMap ( )
inline

default constructor

◆ GeometryTypeMap() [2/3]

template<class T , int dim, class TypeIndex >
Dune::GeometryTypeMap< T, dim, TypeIndex >::GeometryTypeMap ( const This )
default

copy constructor

◆ GeometryTypeMap() [3/3]

template<class T , int dim, class TypeIndex >
Dune::GeometryTypeMap< T, dim, TypeIndex >::GeometryTypeMap ( This &&  )
default

move constructor

Member Function Documentation

◆ at() [1/2]

template<class T , int dim, class TypeIndex >
Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::at ( const GeometryType &  type)
inline

access element

◆ at() [2/2]

template<class T , int dim, class TypeIndex >
const Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::at ( const GeometryType &  type) const
inline

access element

◆ back() [1/2]

template<class T , int dim, class TypeIndex >
Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::back ( )
inline

access last element

◆ back() [2/2]

template<class T , int dim, class TypeIndex >
const Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::back ( ) const
inline

access last element

◆ begin() [1/2]

template<class T , int dim, class TypeIndex >
ConstIterator Dune::GeometryTypeMap< T, dim, TypeIndex >::begin ( ) const
inlinenoexcept

return iterator to beginning

◆ begin() [2/2]

template<class T , int dim, class TypeIndex >
Iterator Dune::GeometryTypeMap< T, dim, TypeIndex >::begin ( )
inlinenoexcept

return iterator to beginning

◆ cbegin()

template<class T , int dim, class TypeIndex >
ConstIterator Dune::GeometryTypeMap< T, dim, TypeIndex >::cbegin ( ) const
inlinenoexcept

return const_iterator to beginning

◆ cend()

template<class T , int dim, class TypeIndex >
ConstIterator Dune::GeometryTypeMap< T, dim, TypeIndex >::cend ( ) const
inlinenoexcept

return const_iterator to end

◆ data() [1/2]

template<class T , int dim, class TypeIndex >
const Value* Dune::GeometryTypeMap< T, dim, TypeIndex >::data ( ) const
inlinenoexcept

get pointer to data

◆ data() [2/2]

template<class T , int dim, class TypeIndex >
Value* Dune::GeometryTypeMap< T, dim, TypeIndex >::data ( )
inlinenoexcept

get pointer to data

◆ empty()

template<class T , int dim, class TypeIndex >
constexpr bool Dune::GeometryTypeMap< T, dim, TypeIndex >::empty ( ) const
inlineconstexprnoexcept

test whether container is empty

◆ end() [1/2]

template<class T , int dim, class TypeIndex >
ConstIterator Dune::GeometryTypeMap< T, dim, TypeIndex >::end ( ) const
inlinenoexcept

return iterator to end

◆ end() [2/2]

template<class T , int dim, class TypeIndex >
Iterator Dune::GeometryTypeMap< T, dim, TypeIndex >::end ( )
inlinenoexcept

return iterator to end

◆ fill()

template<class T , int dim, class TypeIndex >
void Dune::GeometryTypeMap< T, dim, TypeIndex >::fill ( const Value value)
inline

fill container with value

◆ front() [1/2]

template<class T , int dim, class TypeIndex >
Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::front ( )
inline

access first element

◆ front() [2/2]

template<class T , int dim, class TypeIndex >
const Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::front ( ) const
inline

access first element

◆ max_size()

template<class T , int dim, class TypeIndex >
constexpr Size Dune::GeometryTypeMap< T, dim, TypeIndex >::max_size ( ) const
inlineconstexprnoexcept

return maximum size

◆ operator=() [1/2]

template<class T , int dim, class TypeIndex >
This& Dune::GeometryTypeMap< T, dim, TypeIndex >::operator= ( const This )
default

copy assignment

◆ operator=() [2/2]

template<class T , int dim, class TypeIndex >
This& Dune::GeometryTypeMap< T, dim, TypeIndex >::operator= ( This &&  )
default

move assignment

◆ operator[]() [1/2]

template<class T , int dim, class TypeIndex >
Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::operator[] ( const GeometryType &  type)
inline

access element

◆ operator[]() [2/2]

template<class T , int dim, class TypeIndex >
const Value& Dune::GeometryTypeMap< T, dim, TypeIndex >::operator[] ( const GeometryType &  type) const
inline

access element

◆ size()

template<class T , int dim, class TypeIndex >
constexpr Size Dune::GeometryTypeMap< T, dim, TypeIndex >::size ( ) const
inlineconstexprnoexcept

return size

◆ swap()

template<class T , int dim, class TypeIndex >
void Dune::GeometryTypeMap< T, dim, TypeIndex >::swap ( This other)
inlinenoexcept

swap content


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