dune-functions  2.5-dev
Public Member Functions | Public Attributes | List of all members
Dune::Functions::FlatMultiIndex< size_type > Class Template Reference

A multi index class with only one level. More...

#include <dune/functions/functionspacebases/flatmultiindex.hh>

Inheritance diagram for Dune::Functions::FlatMultiIndex< size_type >:
Inheritance graph

Public Member Functions

template<class... T>
constexpr FlatMultiIndex (T &&... t)
 Forward constructor arguments to std::array. More...
 
 FlatMultiIndex (std::initializer_list< size_type > const &l)
 Construct from initializer_list. More...
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

template<class size_type>
class Dune::Functions::FlatMultiIndex< size_type >

A multi index class with only one level.

This only adds a cast to size_type to std::array<size_type,1>. Hence MultiIndices of type FlatMultiIndex can be used like classic indices.

Constructor & Destructor Documentation

§ FlatMultiIndex() [1/2]

template<class size_type >
template<class... T>
constexpr Dune::Functions::FlatMultiIndex< size_type >::FlatMultiIndex ( T &&...  t)
inline

Forward constructor arguments to std::array.

§ FlatMultiIndex() [2/2]

template<class size_type >
Dune::Functions::FlatMultiIndex< size_type >::FlatMultiIndex ( std::initializer_list< size_type > const &  l)
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.

Member Data Documentation

§ elements

T std::array< T >::elements
inherited

STL member.


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