Public Member Functions

mln::accu::nil< T > Struct Template Reference

Define an accumulator that does nothing. More...

#include <nil.hh>

Inherits base< util::ignore, nil< 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.
util::ignore to_result () const
 Get the value of the accumulator.

void init ()
 Manipulators.

Detailed Description

template<typename T>
struct mln::accu::nil< T >

Define an accumulator that does nothing.

Definition at line 49 of file accu/nil.hh.


Member Function Documentation

template<typename T >
void mln::accu::nil< T >::init (  )  [inline]

Manipulators.

Definition at line 100 of file accu/nil.hh.

template<typename T >
bool mln::accu::nil< T >::is_valid (  )  const [inline]

Check whether this accu is able to return a result.

Always true here.

Definition at line 136 of file accu/nil.hh.

void mln::Accumulator< nil< 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< nil< 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 T >
util::ignore mln::accu::nil< T >::to_result (  )  const [inline]

Get the value of the accumulator.

Definition at line 128 of file accu/nil.hh.