Generic min accumulator class. More...
#include <min.hh>

Public Types | |
| typedef T | argument |
| typedef Accumulator< void > | category |
| typedef min< T > | exact_t |
| typedef const T & | q_result |
| typedef mln::metal::unqualif < const T & >::ret | result |
Public Member Functions | |
| bool | is_valid () const |
| Check whether this accu is able to return a result. | |
| min () | |
| const T & | 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". | |
| const T & | to_result () const |
| Get the value of the accumulator. | |
| void | init () |
| Manipulators. | |
| void | take_as_init_ (const argument &t) |
| void | take (const argument &t) |
| void | take (const min< T > &other) |
Protected Attributes | |
| T | t_ |
Generic min accumulator class.
The parameter T is the type of values.
| typedef T mln::accu::stat::min< T >::argument |
typedef Accumulator<void> mln::Accumulator< min< T > >::category [inherited] |
Reimplemented from mln::Proxy< min< T > >.
typedef min< T > mln::Object< min< T > >::exact_t [inherited] |
typedef const T & mln::accu::internal::base< const T & , min< T > >::q_result [inherited] |
typedef mln::metal::unqualif< const T & >::ret mln::accu::internal::base< const T & , min< T > >::result [inherited] |
| mln::accu::stat::min< T >::min | ( | ) | [inline] |
References mln::accu::stat::min< T >::init().
| void mln::accu::stat::min< T >::init | ( | ) | [inline] |
Manipulators.
References mln::accu::stat::min< T >::t_.
Referenced by mln::accu::stat::min< T >::min().
| bool mln::accu::stat::min< T >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Always true here.
| const T & mln::accu::internal::base< const T & , min< T > >::subj_ | ( | ) | [inherited] |
| void mln::accu::stat::min< T >::take | ( | const min< T > & | other | ) | [inline] |
References mln::accu::stat::min< T >::t_.
| void mln::accu::stat::min< T >::take | ( | const argument & | t | ) | [inline] |
References mln::accu::stat::min< T >::t_.
| void mln::Accumulator< min< 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< min< T > >::take_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
| void mln::accu::stat::min< T >::take_as_init_ | ( | const argument & | t | ) | [inline] |
References mln::accu::stat::min< T >::t_.
| void mln::Accumulator< min< 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< min< T > >::take_n_times_ | ( | unsigned | n, | |
| const T & | t | |||
| ) | [inherited] |
Default implementation of "take n times".
| const T & mln::accu::stat::min< T >::to_result | ( | ) | const [inline] |
Get the value of the accumulator.
References mln::accu::stat::min< T >::t_.
T mln::accu::stat::min< T >::t_ [protected] |
1.7.1