Public Member Functions

mln::accu::tuple< A, n, > Struct Template Reference
[Multiple accumulators]

Generic tuple of accumulators. More...

#include <tuple.hh>

Inherits base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) >, tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >.

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.
res to_result () const
 Get the value of the accumulator.

void init ()
 Manipulators.

Detailed Description

template<typename A, unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type)>
struct mln::accu::tuple< A, n, >

Generic tuple of accumulators.

The parameter T is the type of values.

Definition at line 74 of file tuple.hh.


Member Function Documentation

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS(10, typename T) >
void mln::accu::tuple< A, n, >::init (  )  [inline]

Manipulators.

Definition at line 197 of file tuple.hh.

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS(10, typename T) >
bool mln::accu::tuple< A, n, >::is_valid (  )  const [inline]

Check whether this accu is able to return a result.

Always true here.

Definition at line 239 of file tuple.hh.

void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_as_init ( const T &  t  )  [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< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_n_times ( unsigned  n,
const T &  t 
) [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 A , unsigned n, BOOST_PP_ENUM_PARAMS(10, typename T) >
tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T) >::res mln::accu::tuple< A, n, >::to_result (  )  const [inline]

Get the value of the accumulator.

Definition at line 229 of file tuple.hh.