dune-functions 2.8.0
|
A multi-index class with only one level. More...
#include <dune/functions/functionspacebases/flatmultiindex.hh>
Public Member Functions | |
constexpr | FlatMultiIndex ()=default |
FlatMultiIndex (std::initializer_list< size_type > const &l) | |
Construct from initializer_list. | |
operator const size_type & () const | |
Const cast of multi-index to first entry. | |
operator size_type & () | |
Non-const cast of multi-index to first entry. | |
Static Public Member Functions | |
static constexpr std::size_t | max_size () |
Public Attributes | |
T | elements |
STL member. | |
A multi-index class with only one level.
This class provides a multi-index interface in the sense that it has operator[] access to individual interfaces. However, since it only supports flat indices of exactly one level, it also has a cast of the multi-index to this index. This is obtianed by deriving from std::array<size_type,1> and adding this cast. Hence multi-indices of type FlatMultiIndex can be used like classic indices.
|
constexprdefault |
|
inline |
Construct from initializer_list.
This is needed because std::array does not have a constructor from initializer list. Instead the list initialization of an std::array is an aggregate initialization and hence not visible in the derived class.
|
inlinestaticconstexpr |
|
inline |
Const cast of multi-index to first entry.
|
inline |
Non-const cast of multi-index to first entry.
|
inherited |
STL member.