Define an accumulator that does nothing. More...
#include <nil.hh>
Public Types | |
typedef util::eat | argument |
typedef Accumulator< void > | category |
typedef nil< T > | exact_t |
typedef util::ignore | q_result |
typedef mln::metal::unqualif < util::ignore >::ret | result |
Public Member Functions | |
bool | is_valid () const |
Check whether this accu is able to return a result. | |
nil () | |
util::ignore | subj_ () |
void | take_as_init (const T &t) |
Take as initialization the value t . | |
void | take_as_init_ (const T &t) |
Default implementation of "take as initialization". | |
void | take_n_times (unsigned n, const T &t) |
Take n times the value t . | |
void | take_n_times_ (unsigned n, const T &t) |
Default implementation of "take n times". | |
util::ignore | to_result () const |
Get the value of the accumulator. | |
void | init () |
Manipulators. | |
void | take_as_init_ (const argument &) |
void | take (const argument &) |
void | take (const nil< T > &) |
Define an accumulator that does nothing.
typedef util::eat mln::accu::nil< T >::argument |
typedef Accumulator<void> mln::Accumulator< nil< T > >::category [inherited] |
Reimplemented from mln::Proxy< nil< T > >.
typedef nil< T > mln::Object< nil< T > >::exact_t [inherited] |
typedef util::ignore mln::accu::internal::base< util::ignore , nil< T > >::q_result [inherited] |
typedef mln::metal::unqualif< util::ignore >::ret mln::accu::internal::base< util::ignore , nil< T > >::result [inherited] |
mln::accu::nil< T >::nil | ( | ) | [inline] |
void mln::accu::nil< T >::init | ( | ) | [inline] |
Manipulators.
bool mln::accu::nil< T >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Always true here.
util::ignore mln::accu::internal::base< util::ignore , nil< T > >::subj_ | ( | ) | [inherited] |
void mln::accu::nil< T >::take | ( | const nil< T > & | ) | [inline] |
void mln::accu::nil< T >::take | ( | const argument & | ) | [inline] |
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_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
void mln::accu::nil< T >::take_as_init_ | ( | const argument & | ) | [inline] |
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 '_').
void mln::Accumulator< nil< T > >::take_n_times_ | ( | unsigned | n, | |
const T & | t | |||
) | [inherited] |
Default implementation of "take n times".
util::ignore mln::accu::nil< T >::to_result | ( | ) | const [inline] |
Get the value of the accumulator.