dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
Dune::TupleToVectorConverter< VectorTupleType, pos > Class Template Reference

wrapper class to convert a vector of tuples of RangeTypes into something that behaves like a vector< RangeType > More...

#include <dune/fem/common/tupleutility.hh>

Public Types

typedef VectorTupleType::value_type TupleType
 
typedef std::tuple_element< pos, TupleType >::type ValueType
 
typedef ValueType value_type
 

Public Member Functions

 TupleToVectorConverter (const TupleToVectorConverter &)=delete
 
 TupleToVectorConverter (VectorTupleType &vector)
 constructor
 
ValueTypeoperator[] (const size_t i)
 return reference to i-th entry of vector and pos's tuple component
 
const ValueTypeoperator[] (const size_t i) const
 return reference to i-th entry of vector and passId's tuple component
 
size_t size () const
 return size of vector
 

Protected Attributes

VectorTupleType & vector_
 

Detailed Description

template<class VectorTupleType, int pos>
class Dune::TupleToVectorConverter< VectorTupleType, pos >

wrapper class to convert a vector of tuples of RangeTypes into something that behaves like a vector< RangeType >

Member Typedef Documentation

◆ TupleType

template<class VectorTupleType , int pos>
typedef VectorTupleType::value_type Dune::TupleToVectorConverter< VectorTupleType, pos >::TupleType

◆ value_type

template<class VectorTupleType , int pos>
typedef ValueType Dune::TupleToVectorConverter< VectorTupleType, pos >::value_type

◆ ValueType

template<class VectorTupleType , int pos>
typedef std::tuple_element<pos,TupleType>::type Dune::TupleToVectorConverter< VectorTupleType, pos >::ValueType

Constructor & Destructor Documentation

◆ TupleToVectorConverter() [1/2]

template<class VectorTupleType , int pos>
Dune::TupleToVectorConverter< VectorTupleType, pos >::TupleToVectorConverter ( const TupleToVectorConverter< VectorTupleType, pos > &  )
delete

◆ TupleToVectorConverter() [2/2]

template<class VectorTupleType , int pos>
Dune::TupleToVectorConverter< VectorTupleType, pos >::TupleToVectorConverter ( VectorTupleType &  vector)
inlineexplicit

constructor

Member Function Documentation

◆ operator[]() [1/2]

template<class VectorTupleType , int pos>
ValueType & Dune::TupleToVectorConverter< VectorTupleType, pos >::operator[] ( const size_t  i)
inline

return reference to i-th entry of vector and pos's tuple component

◆ operator[]() [2/2]

template<class VectorTupleType , int pos>
const ValueType & Dune::TupleToVectorConverter< VectorTupleType, pos >::operator[] ( const size_t  i) const
inline

return reference to i-th entry of vector and passId's tuple component

◆ size()

template<class VectorTupleType , int pos>
size_t Dune::TupleToVectorConverter< VectorTupleType, pos >::size ( ) const
inline

return size of vector

Member Data Documentation

◆ vector_

template<class VectorTupleType , int pos>
VectorTupleType& Dune::TupleToVectorConverter< VectorTupleType, pos >::vector_
protected

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