mln::accu::pair< A1, A2, T > Struct Template Reference
[Multiple accumulators]

Generic pair of accumulators. More...

#include <pair.hh>

Inheritance diagram for mln::accu::pair< A1, A2, T >:

Inheritance graph

List of all members.

Public Member Functions

bool is_valid () const
 Check whether this accu is able to return a result.
void take_as_init (const T &t)
 Take as initialization the value t.
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
std::pair< typename A1::result,
typename A2::result > 
to_result () const
 Get the value of the accumulator.
void init ()
 Manipulators.


Detailed Description

template<typename A1, typename A2, typename T = mln_argument(A1)>
struct mln::accu::pair< A1, A2, T >

Generic pair of accumulators.

The parameter T is the type of values.


Member Function Documentation

template<typename A1 , typename A2 , typename T >
void mln::accu::pair< A1, A2, T >::init (  )  [inline]

Manipulators.

template<typename A1 , typename A2 , typename T >
bool mln::accu::pair< A1, A2, T >::is_valid (  )  const [inline]

Check whether this accu is able to return a result.

Always true here.

void mln::Accumulator< pair< A1, A2, T > >::take_as_init ( const T &  t  )  [inline, inherited]

Take as initialization the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

void mln::Accumulator< pair< A1, A2, T > >::take_n_times ( unsigned  n,
const T &  t 
) [inline, inherited]

Take n times the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

template<typename A1 , typename A2 , typename T >
std::pair< typename A1::result, typename A2::result > mln::accu::pair< A1, A2, T >::to_result (  )  const [inline]

Get the value of the accumulator.


Generated on Tue Jul 14 16:32:39 2009 for Milena (Olena) by  doxygen 1.5.9