dune-fem  2.4.1-rc
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 </local/tomalk/somewhere/tmp/dune-fem/dune/fem/common/tupleutility.hh>

Public Types

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

Public Member Functions

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

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

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

Constructor & Destructor Documentation

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

constructor

Member Function Documentation

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

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

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

return size of vector

Member Data Documentation

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

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