dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | List of all members
Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet > Class Template Reference

associative container assigning values to each GeometryType More...

#include <dune/fem/space/basisfunctionset/hpdg/typemap.hh>

Inheritance diagram for Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >:
Inheritance graph

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

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...
 
GeometryType type (Iterator iterator) const
 return geometry type from given iterator More...
 
GeometryType type (ConstIterator iterator) const
 return geometry type from given iterator 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...
 

Static Public Member Functions

Capacity
static constexpr Size size () noexcept
 return size More...
 
static constexpr Size max_size () noexcept
 return maximum size More...
 
static constexpr bool empty () noexcept
 test whether container is empty More...
 

Detailed Description

template<class T, class TypeIndexSet>
class Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >

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;
};
STL namespace.

Member Typedef Documentation

◆ const_iterator

template<class T , class TypeIndexSet >
typedef Container::const_iterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::const_iterator

const iterator type

◆ const_pointer

template<class T , class TypeIndexSet >
typedef Container::const_pointer Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::const_pointer

const pointer type

◆ const_reference

template<class T , class TypeIndexSet >
typedef Container::const_reference Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::const_reference

const reference type

◆ ConstIterator

template<class T , class TypeIndexSet >
typedef const_iterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::ConstIterator

iterator type

◆ difference_type

template<class T , class TypeIndexSet >
typedef Container::difference_type Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::difference_type

difference type

◆ iterator

template<class T , class TypeIndexSet >
typedef Container::iterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::iterator

iterator type

◆ Iterator

template<class T , class TypeIndexSet >
typedef iterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::Iterator

iterator type

◆ pointer

template<class T , class TypeIndexSet >
typedef Container::pointer Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::pointer

pointer type

◆ reference

template<class T , class TypeIndexSet >
typedef Container::reference Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::reference

reference type

◆ Size

template<class T , class TypeIndexSet >
typedef size_type Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::Size

size type

◆ size_type

template<class T , class TypeIndexSet >
typedef Container::size_type Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::size_type

size type

◆ Value

template<class T , class TypeIndexSet >
typedef value_type Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::Value

value type

◆ value_type

template<class T , class TypeIndexSet >
typedef Container::value_type Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::value_type

value type

Member Function Documentation

◆ at() [1/2]

template<class T , class TypeIndexSet >
Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::at ( const GeometryType &  type)
inline

access element

◆ at() [2/2]

template<class T , class TypeIndexSet >
const Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::at ( const GeometryType &  type) const
inline

access element

◆ back() [1/2]

template<class T , class TypeIndexSet >
Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::back ( )
inline

access last element

◆ back() [2/2]

template<class T , class TypeIndexSet >
const Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::back ( ) const
inline

access last element

◆ begin() [1/2]

template<class T , class TypeIndexSet >
ConstIterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::begin ( ) const
inlinenoexcept

return iterator to beginning

◆ begin() [2/2]

template<class T , class TypeIndexSet >
Iterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::begin ( )
inlinenoexcept

return iterator to beginning

◆ cbegin()

template<class T , class TypeIndexSet >
ConstIterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::cbegin ( ) const
inlinenoexcept

return const_iterator to beginning

◆ cend()

template<class T , class TypeIndexSet >
ConstIterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::cend ( ) const
inlinenoexcept

return const_iterator to end

◆ data() [1/2]

template<class T , class TypeIndexSet >
const Value * Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::data ( ) const
inlinenoexcept

get pointer to data

◆ data() [2/2]

template<class T , class TypeIndexSet >
Value * Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::data ( )
inlinenoexcept

get pointer to data

◆ empty()

template<class T , class TypeIndexSet >
static constexpr bool Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::empty ( )
inlinestaticconstexprnoexcept

test whether container is empty

◆ end() [1/2]

template<class T , class TypeIndexSet >
ConstIterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::end ( ) const
inlinenoexcept

return iterator to end

◆ end() [2/2]

template<class T , class TypeIndexSet >
Iterator Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::end ( )
inlinenoexcept

return iterator to end

◆ fill()

template<class T , class TypeIndexSet >
void Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::fill ( const Value value)
inline

fill container with value

◆ front() [1/2]

template<class T , class TypeIndexSet >
Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::front ( )
inline

access first element

◆ front() [2/2]

template<class T , class TypeIndexSet >
const Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::front ( ) const
inline

access first element

◆ max_size()

template<class T , class TypeIndexSet >
static constexpr Size Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::max_size ( )
inlinestaticconstexprnoexcept

return maximum size

◆ operator[]() [1/2]

template<class T , class TypeIndexSet >
Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::operator[] ( const GeometryType &  type)
inline

access element

◆ operator[]() [2/2]

template<class T , class TypeIndexSet >
const Value & Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::operator[] ( const GeometryType &  type) const
inline

access element

◆ size()

template<class T , class TypeIndexSet >
static constexpr Size Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::size ( )
inlinestaticconstexprnoexcept

return size

◆ swap()

template<class T , class TypeIndexSet >
void Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::swap ( This other)
inlinenoexcept

swap content

◆ type() [1/2]

template<class T , class TypeIndexSet >
GeometryType Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::type ( ConstIterator  iterator) const
inline

return geometry type from given iterator

◆ type() [2/2]

template<class T , class TypeIndexSet >
GeometryType Dune::Fem::hpDG::GeometryTypeMap< T, TypeIndexSet >::type ( Iterator  iterator) const
inline

return geometry type from given iterator


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