Generic val of accumulators. More...
#include <v.hh>

Public Types | |
| typedef Accumulator< void > | category |
| typedef val< A > | exact_t |
| typedef const A::result & | q_result |
| typedef mln::metal::unqualif < const A::result & >::ret | result |
Public Member Functions | |
| bool | is_valid () const |
| Check whether this accu is able to return a result. | |
| typedef | mln_argument (A) argument |
| const A::result & | 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 A::result & | to_result () const |
| Get the value of the accumulator. | |
| val () | |
| val (const A &a) | |
| void | init () |
| Manipulators. | |
| void | take_as_init_ (const argument &t) |
| void | take (const argument &t) |
| void | take (const val< A > &other) |
| template<typename I > | |
| void | take_as_init_ (const util::pix< I > &pix) |
| template<typename I > | |
| void | take (const util::pix< I > &pix) |
Protected Attributes | |
| A | a_ |
Generic val of accumulators.
typedef Accumulator<void> mln::Accumulator< val< A > >::category [inherited] |
Reimplemented from mln::Proxy< val< A > >.
typedef val< A > mln::Object< val< A > >::exact_t [inherited] |
typedef const A::result & mln::accu::internal::base< const A::result & , val< A > >::q_result [inherited] |
typedef mln::metal::unqualif< const A::result & >::ret mln::accu::internal::base< const A::result & , val< A > >::result [inherited] |
| mln::accu::val< A >::val | ( | ) | [inline] |
References mln::accu::val< A >::init().
| mln::accu::val< A >::val | ( | const A & | a | ) | [inline] |
References mln::accu::val< A >::init().
| void mln::accu::val< A >::init | ( | ) | [inline] |
| bool mln::accu::val< A >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Always true here.
References mln::accu::val< A >::a_.
| typedef mln::accu::val< A >::mln_argument | ( | A | ) |
| const A::result & mln::accu::internal::base< const A::result & , val< A > >::subj_ | ( | ) | [inherited] |
| void mln::accu::val< A >::take | ( | const argument & | t | ) | [inline] |
References mln::accu::val< A >::a_.
| void mln::accu::val< A >::take | ( | const val< A > & | other | ) | [inline] |
References mln::accu::val< A >::a_.
| void mln::accu::val< A >::take | ( | const util::pix< I > & | pix | ) | [inline] |
References mln::accu::val< A >::a_, and mln::util::pix< I >::v().
| void mln::Accumulator< val< A > >::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::accu::val< A >::take_as_init_ | ( | const argument & | t | ) | [inline] |
References mln::accu::val< A >::a_.
| void mln::Accumulator< val< A > >::take_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
| void mln::accu::val< A >::take_as_init_ | ( | const util::pix< I > & | pix | ) | [inline] |
References mln::accu::val< A >::a_, and mln::util::pix< I >::v().
| void mln::Accumulator< val< A > >::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< val< A > >::take_n_times_ | ( | unsigned | n, | |
| const T & | t | |||
| ) | [inherited] |
Default implementation of "take n times".
| const A::result & mln::accu::val< A >::to_result | ( | ) | const [inline] |
Get the value of the accumulator.
References mln::accu::val< A >::a_.
A mln::accu::val< A >::a_ [protected] |
1.7.1