Dune Core Modules (2.3.1)
Dune::tuple< T1, T2, T3, T4, T5, T6, T7, T8, T9 > Class Template Reference
A Tuple of objects. More...
#include <dune/common/tuples.hh>
Public Types | |
typedef TupleToPairs< T1, T2, T3, T4, T5, T6, T7, T8, T9 >::Type | FirstPair |
Type of the first Pair defining the Tuple. | |
typedef T1 | Type1 |
The type of the first field. | |
typedef TT | Type2 |
The type of the second field. | |
Public Member Functions | |
TupleAccessTraits< Type1 >::NonConstType | first () |
Get the first value. More... | |
TupleAccessTraits< Type1 >::ConstType | first () const |
Get the first value. More... | |
TupleAccessTraits< Type2 >::NonConstType | second () |
Get the second value. More... | |
TupleAccessTraits< Type2 >::ConstType | second () const |
Get the second value. More... | |
Public Attributes | |
Type1 | first_ |
The value of the first field. | |
Type2 | second_ |
The value of the second field. | |
Detailed Description
template<typename T1 = Nil, typename T2 = Nil, typename T3 = Nil, typename T4 = Nil, typename T5 = Nil, typename T6 = Nil, typename T7 = Nil, typename T8 = Nil, typename T9 = Nil>
class Dune::tuple< T1, T2, T3, T4, T5, T6, T7, T8, T9 >
class Dune::tuple< T1, T2, T3, T4, T5, T6, T7, T8, T9 >
A Tuple of objects.
A maximum of 9 objects is supported.
Use the following construction to access the individual elements.
tuple<std::string, float*, int> my_tuple;
std:string& s = get<0>(my_tuple);
float* p = get<1>(my_tuple);
// Access the third element in a generic way
typedef tuple_element<2, tuple<std::string, float*, int> >::type Type;
Type& i = get<2>(my_tuple);
STL namespace.
The documentation for this class was generated from the following file:
- dune/common/tuples.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)