Dune::ForEachValuePair< TupleType1, TupleType2 > Class Template Reference

#include <utility.hh>

List of all members.


Detailed Description

template<class TupleType1, class TupleType2>
class Dune::ForEachValuePair< TupleType1, TupleType2 >

Extension of ForEachValue to two tuples...

This class provides the framework to process two tuples at once. It works the same as ForEachValue, just that the corresponding function object takes one argument from the first tuple and one argument from the second.

Note:
You have to ensure that the two tuples you provide are compatible in the sense that they have the same length and that the objects passed to the function objects are related in meaningful way. The best way to enforce it is to build the second tuple from the existing first tuple using ForEachType.

Public Member Functions

 ForEachValuePair (TupleType1 &t1, TupleType2 &t2)
template<class Functor>
void apply (Functor &f)

Constructor & Destructor Documentation

template<class TupleType1, class TupleType2>
Dune::ForEachValuePair< TupleType1, TupleType2 >::ForEachValuePair ( TupleType1 &  t1,
TupleType2 &  t2 
) [inline]

Constructor

Parameters:
t1 First tuple.
t2 Second tuple.


Member Function Documentation

template<class TupleType1, class TupleType2>
template<class Functor>
void Dune::ForEachValuePair< TupleType1, TupleType2 >::apply ( Functor &  f  )  [inline]

Applies the function object f to the pair of tuples.

Parameters:
f The function object to apply on the pair of tuples.


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

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].