dune-functions  2.5.0
Public Member Functions | List of all members
Dune::Functions::ShiftedMultiIndex< Index, offset > Class Template Reference

Class representing a shifted multi index. More...

#include <dune/functions/common/indexaccess.hh>

Public Member Functions

 ShiftedMultiIndex (const Index &index)
 
template<class P >
decltype(auto) operator[] (const P &position) const
 
ShiftedMultiIndex< Index, offset+1 > pop () const
 Return multi index with one more position truncated. More...
 
auto size () const
 

Detailed Description

template<class Index, std::size_t offset = 1>
class Dune::Functions::ShiftedMultiIndex< Index, offset >

Class representing a shifted multi index.

Template Parameters
IndexType of the base multi index
offsetNumber of positions to shift left

For a given multi index of size n this represents a multi index with the first offset entries removed.

Notice that this does only store a reference to the passed multi index.

Constructor & Destructor Documentation

§ ShiftedMultiIndex()

template<class Index , std::size_t offset = 1>
Dune::Functions::ShiftedMultiIndex< Index, offset >::ShiftedMultiIndex ( const Index &  index)
inline

Member Function Documentation

§ operator[]()

template<class Index , std::size_t offset = 1>
template<class P >
decltype(auto) Dune::Functions::ShiftedMultiIndex< Index, offset >::operator[] ( const P &  position) const
inline

§ pop()

template<class Index , std::size_t offset = 1>
ShiftedMultiIndex<Index, offset+1> Dune::Functions::ShiftedMultiIndex< Index, offset >::pop ( ) const
inline

Return multi index with one more position truncated.

§ size()

template<class Index , std::size_t offset = 1>
auto Dune::Functions::ShiftedMultiIndex< Index, offset >::size ( ) const
inline

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