DUNE-FEM (unstable)
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 | |
typedef Container::reference | reference |
reference type | |
typedef Container::const_reference | const_reference |
const reference type | |
typedef Container::pointer | pointer |
pointer type | |
typedef Container::const_pointer | const_pointer |
const pointer type | |
typedef Container::iterator | iterator |
iterator type | |
typedef Container::const_iterator | const_iterator |
const iterator type | |
typedef Container::size_type | size_type |
size type | |
typedef Container::difference_type | difference_type |
difference type | |
typedef value_type | Value |
value type | |
typedef iterator | Iterator |
iterator type | |
typedef const_iterator | ConstIterator |
iterator type | |
typedef size_type | Size |
size type | |
Public Member Functions | |
Construction and Assignment | |
GeometryTypeMap () | |
default constructor | |
GeometryTypeMap (const This &)=default | |
copy constructor | |
GeometryTypeMap (This &&)=default | |
move constructor | |
This & | operator= (const This &)=default |
copy assignment | |
This & | operator= (This &&)=default |
move assignment | |
Iterators | |
Iterator | begin () noexcept |
return iterator to beginning | |
Iterator | end () noexcept |
return iterator to end | |
ConstIterator | begin () const noexcept |
return iterator to beginning | |
ConstIterator | end () const noexcept |
return iterator to end | |
ConstIterator | cbegin () const noexcept |
return const_iterator to beginning | |
ConstIterator | cend () const noexcept |
return const_iterator to end | |
Capacity | |
constexpr Size | size () const noexcept |
return size | |
constexpr Size | max_size () const noexcept |
return maximum size | |
constexpr bool | empty () const noexcept |
test whether container is empty | |
Element access | |
Value & | operator[] (const GeometryType &type) |
access element | |
const Value & | operator[] (const GeometryType &type) const |
access element | |
Value & | at (const GeometryType &type) |
access element | |
const Value & | at (const GeometryType &type) const |
access element | |
Value & | front () |
access first element | |
const Value & | front () const |
access first element | |
Value & | back () |
access last element | |
const Value & | back () const |
access last element | |
Value * | data () noexcept |
get pointer to data | |
const Value * | data () const noexcept |
get pointer to data | |
Modifiers | |
void | fill (const Value &value) |
fill container with value | |
void | swap (This &other) noexcept(noexcept(swap(std::declval< Value & >(), std::declval< Value & >()))) |
swap content | |
Detailed Description
template<class T, int dim, class TypeIndex>
class Dune::GeometryTypeMap< T, dim, 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
-
T value type TypeIndexSet type 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{};constexpr Size size() const noexceptreturn sizeDefinition: geometrytypemap.hh:125Unique label for each type of entities that can occur in DUNE grids.Definition: type.hh:114STL namespace.
The documentation for this class was generated from the following file:
- dune/fem/common/geometrytypemap.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 20, 23:30, 2024)