$extrastylesheet
#include <mln/accu/math/count.hh>
Public Member Functions | |
| count () | |
| bool | is_valid () const |
| unsigned | subj_ () |
| void | take_as_init (const T &t) |
| void | take_as_init_ (const T &t) |
| void | take_n_times (unsigned n, const T &t) |
| void | take_n_times_ (unsigned n, const T &t) |
| unsigned | to_result () const |
| void | init () |
| void | take (const argument &) |
| void | take (const count< T > &other) |
| void | untake (const argument &) |
| void | untake (const count< T > &other) |
| void | set_value (unsigned c) |
Protected Attributes | |
| unsigned | count_ |
Public Types | |
| typedef T | argument |
| typedef Accumulator< void > | category |
| typedef count< T > | exact_t |
| typedef unsigned | q_result |
| typedef mln::metal::unqualif < unsigned >::ret | result |
Generic counter accumulator.
The parameter T is the type to be count.
| mln::accu::math::count< T >::count | ( | ) |
| void mln::accu::math::count< T >::init | ( | ) |
Manipulators.
| bool mln::accu::math::count< T >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
Always true here.
| void mln::accu::math::count< T >::set_value | ( | unsigned | c | ) |
Force the value of the counter to c.
|
inherited |
| void mln::accu::math::count< T >::take | ( | const argument & | ) |
| void mln::accu::math::count< T >::take | ( | const count< T > & | other | ) |
|
inherited |
Take as initialization the value t.
|
inherited |
INTERNAL_API
Default implementation of "take as initialization".
|
inherited |
Take n times the value t.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
| unsigned mln::accu::math::count< T >::to_result | ( | ) | const |
Get the value of the accumulator.
| void mln::accu::math::count< T >::untake | ( | const argument & | ) |
| void mln::accu::math::count< T >::untake | ( | const count< T > & | other | ) |
|
protected |
| typedef T mln::accu::math::count< T >::argument |
|
inherited |
Definition at line 64 of file accumulator.hh.