Public Types | Public Member Functions

mln::doc::Accumulator< E > Struct Template Reference

Documentation class for mln::Accumulator. More...

#include <accumulator.hh>

List of all members.

Public Types

typedef void argument
 The argument type of elements to accumulate.
typedef void result_
 The value type to return.

Public Member Functions

void init ()
 Initialize the accumulator.
 operator result_ () const
 Convert the accumulator into the result.
void take (const E &other)
 Take into account another accumulator other.
void take (const argument &t)
 Take into account a argument t (an element).

Detailed Description

template<typename E>
struct mln::doc::Accumulator< E >

Documentation class for mln::Accumulator.

See also:
mln::Accumulator

Definition at line 36 of file doc/accumulator.hh.


Member Typedef Documentation

template<typename E >
typedef void mln::doc::Accumulator< E >::argument

The argument type of elements to accumulate.

Definition at line 39 of file doc/accumulator.hh.

template<typename E >
typedef void mln::doc::Accumulator< E >::result_

The value type to return.

Definition at line 42 of file doc/accumulator.hh.


Member Function Documentation

template<typename E >
void mln::doc::Accumulator< E >::init (  ) 

Initialize the accumulator.

template<typename E >
mln::doc::Accumulator< E >::operator result_ (  )  const

Convert the accumulator into the result.

template<typename E >
void mln::doc::Accumulator< E >::take ( const E &  other  ) 

Take into account another accumulator other.

template<typename E >
void mln::doc::Accumulator< E >::take ( const argument t  ) 

Take into account a argument t (an element).