#include <min_max.hh>
Public Types | |
typedef T | argument |
typedef Accumulator< void > | category |
typedef E | exact_t |
typedef R | q_result |
typedef mln::metal::unqualif < R >::ret | result |
typedef A1::result | result_1 |
typedef A2::result | result_2 |
Public Member Functions | |
A1::result | first () const |
bool | is_valid () const |
Check whether this accu is able to return a result. | |
A2::result | second () const |
R | subj_ () |
template<typename T> | |
void | take_as_init (const T &t) |
Take as initialization the value t . | |
template<typename T> | |
void | take_n_times (unsigned n, const T &t) |
Take n times the value t . | |
template<typename T> | |
void | take_n_times_ (unsigned n, const T &t) |
Default implementation of "take n times". | |
void | get_result (result_1 &r1, result_2 &r2) const |
std::pair< typename A1::result, typename A2::result > | to_result () const |
Get the value of the accumulator. | |
void | init () |
Manipulators. | |
void | take (const pair< A1, A2, T > &other) |
void | take (const argument &t) |
void | take_as_init_ (const argument &t) |
Default implementation of "take as initialization". | |
Protected Attributes | |
A1 | a1_ |
A2 | a2_ |
The parameter V
is the type of values.
Definition at line 61 of file accu/stat/min_max.hh.
typedef T mln::accu::pair< A1, A2, T >::argument [inherited] |
typedef Accumulator<void> mln::Accumulator< E >::category [inherited] |
typedef E mln::Object< E >::exact_t [inherited] |
typedef R mln::accu::internal::base< R, E >::q_result [inherited] |
typedef mln::metal::unqualif< R >::ret mln::accu::internal::base< R, E >::result [inherited] |
typedef A1 ::result mln::accu::pair< A1, A2, T >::result_1 [inherited] |
typedef A2 ::result mln::accu::pair< A1, A2, T >::result_2 [inherited] |
A1::result mln::accu::pair< A1, A2, T >::first | ( | ) | const [inline, inherited] |
Definition at line 184 of file pair.hh.
Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().
void mln::accu::pair< A1, A2, T >::get_result | ( | result_1 & | r1, | |
result_2 & | r2 | |||
) | const [inline, inherited] |
void mln::accu::pair< A1, A2, T >::init | ( | ) | [inline, inherited] |
Manipulators.
Definition at line 129 of file pair.hh.
Referenced by mln::accu::pair< A1, A2, T >::pair().
bool mln::accu::pair< A1, A2, T >::is_valid | ( | ) | const [inline, inherited] |
A2::result mln::accu::pair< A1, A2, T >::second | ( | ) | const [inline, inherited] |
Definition at line 192 of file pair.hh.
Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().
R base::subj_ | ( | ) | [inline, inherited] |
void mln::accu::pair< A1, A2, T >::take | ( | const pair< A1, A2, T > & | other | ) | [inline, inherited] |
Definition at line 156 of file pair.hh.
References mln::accu::pair< A1, A2, T >::a1_, and mln::accu::pair< A1, A2, T >::a2_.
void mln::accu::pair< A1, A2, T >::take | ( | const argument & | t | ) | [inline, inherited] |
Definition at line 147 of file pair.hh.
Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().
void mln::Accumulator< E >::take_as_init | ( | const T & | t | ) | [inline, inherited] |
Take as initialization the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Reimplemented in mln::accu::stat::variance< T, S, R >.
Definition at line 186 of file accumulator.hh.
References mln::exact(), and mln::mln_exact().
Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().
void mln::accu::pair< A1, A2, T >::take_as_init_ | ( | const argument & | t | ) | [inline, inherited] |
void mln::Accumulator< E >::take_n_times | ( | unsigned | n, | |
const T & | t | |||
) | [inline, inherited] |
Take n
times the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Definition at line 213 of file accumulator.hh.
References mln::exact(), and mln::mln_exact().
void mln::Accumulator< E >::take_n_times_ | ( | unsigned | n, | |
const T & | t | |||
) | [inline, inherited] |
Default implementation of "take n times".
Reimplemented in mln::accu::stat::var< T >.
Definition at line 230 of file accumulator.hh.
References mln::exact().
std::pair< typename A1::result, typename A2::result > mln::accu::pair< A1, A2, T >::to_result | ( | ) | const [inline, inherited] |
A1 mln::accu::pair< A1, A2, T >::a1_ [protected, inherited] |
A2 mln::accu::pair< A1, A2, T >::a2_ [protected, inherited] |