Define an accumulator that does nothing. More...
#include <nil.hh>
Inherits base< util::ignore, nil< T > >.
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. |
Define an accumulator that does nothing.
Definition at line 49 of file accu/nil.hh.
void mln::accu::nil< T >::init | ( | ) | [inline] |
Manipulators.
Definition at line 100 of file accu/nil.hh.
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 '_').
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.