dune-functions  2.5.0
Public Member Functions | Static Public Member Functions | List of all members
Dune::Functions::TupleVector< T > Class Template Reference

A class augmenting std::tuple by element access via operator[]. More...

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

Inheritance diagram for Dune::Functions::TupleVector< T >:
Inheritance graph

Public Member Functions

template<class... TT>
constexpr TupleVector (TT &&... tt)
 Construct from a set of arguments. More...
 
constexpr TupleVector ()
 Default constructor. More...
 
template<std::size_t i>
auto operator[] (const Dune::index_constant< i > &) const -> decltype(std::get< i >(*this))
 Const access to the tuple elements. More...
 
template<std::size_t i>
auto operator[] (const Dune::index_constant< i > &) -> decltype(std::get< i >(*this))
 Non-const access to the tuple elements. More...
 

Static Public Member Functions

static constexpr std::size_t size ()
 Number of elements of the tuple. More...
 

Detailed Description

template<class... T>
class Dune::Functions::TupleVector< T >

A class augmenting std::tuple by element access via operator[].

Constructor & Destructor Documentation

§ TupleVector() [1/2]

template<class... T>
template<class... TT>
constexpr Dune::Functions::TupleVector< T >::TupleVector ( TT &&...  tt)
inline

Construct from a set of arguments.

§ TupleVector() [2/2]

template<class... T>
constexpr Dune::Functions::TupleVector< T >::TupleVector ( )
inline

Default constructor.

Member Function Documentation

§ operator[]() [1/2]

template<class... T>
template<std::size_t i>
auto Dune::Functions::TupleVector< T >::operator[] ( const Dune::index_constant< i > &  ) const -> decltype(std::get<i>(*this))
inline

Const access to the tuple elements.

§ operator[]() [2/2]

template<class... T>
template<std::size_t i>
auto Dune::Functions::TupleVector< T >::operator[] ( const Dune::index_constant< i > &  ) -> decltype(std::get<i>(*this))
inline

Non-const access to the tuple elements.

§ size()

template<class... T>
static constexpr std::size_t Dune::Functions::TupleVector< T >::size ( )
inlinestatic

Number of elements of the tuple.


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