mln::accu::stat::min_max< V > Struct Template Reference
[On values]

Generic min and max accumulator class. More...

#include <min_max.hh>

Inheritance diagram for mln::accu::stat::min_max< V >:

Inheritance graph

List of all members.

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
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_


Detailed Description

template<typename V>
struct mln::accu::stat::min_max< V >

Generic min and max accumulator class.

The parameter V is the type of values.

Definition at line 61 of file accu/stat/min_max.hh.


Member Typedef Documentation

template<typename A1, typename A2, typename T = mln_argument(A1)>
typedef T mln::accu::pair< A1, A2, T >::argument [inherited]

Definition at line 61 of file pair.hh.

template<typename E>
typedef Accumulator<void> mln::Accumulator< E >::category [inherited]

Reimplemented from mln::Proxy< E >.

Definition at line 80 of file accumulator.hh.

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 172 of file object.hh.

template<typename R, typename E>
typedef R mln::accu::internal::base< R, E >::q_result [inherited]

Definition at line 58 of file base.hh.

template<typename R, typename E>
typedef mln::metal::unqualif< R >::ret mln::accu::internal::base< R, E >::result [inherited]

template<typename A1, typename A2, typename T = mln_argument(A1)>
typedef A1 ::result mln::accu::pair< A1, A2, T >::result_1 [inherited]

Definition at line 63 of file pair.hh.

template<typename A1, typename A2, typename T = mln_argument(A1)>
typedef A2 ::result mln::accu::pair< A1, A2, T >::result_2 [inherited]

Definition at line 64 of file pair.hh.


Member Function Documentation

template<typename A1, typename A2, typename T>
A1::result mln::accu::pair< A1, A2, T >::first (  )  const [inline, inherited]

template<typename A1, typename A2, typename T>
void mln::accu::pair< A1, A2, T >::get_result ( result_1 r1,
result_2 r2 
) const [inline, inherited]

Definition at line 174 of file pair.hh.

template<typename A1, typename A2, typename T>
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().

template<typename A1, typename A2, typename T>
bool mln::accu::pair< A1, A2, T >::is_valid (  )  const [inline, inherited]

Check whether this accu is able to return a result.

Always true here.

Definition at line 200 of file pair.hh.

template<typename A1, typename A2, typename T>
A2::result mln::accu::pair< A1, A2, T >::second (  )  const [inline, inherited]

template<typename R, typename E>
R base::subj_ (  )  [inline, inherited]

Definition at line 77 of file base.hh.

References mln::exact().

template<typename A1, typename A2, typename T>
void mln::accu::pair< A1, A2, T >::take ( const pair< A1, A2, T > &  other  )  [inline, inherited]

template<typename A1, typename A2, typename T>
void mln::accu::pair< A1, A2, T >::take ( const argument t  )  [inline, inherited]

template<typename E>
template<typename T>
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().

template<typename A1, typename A2, typename T>
void mln::accu::pair< A1, A2, T >::take_as_init_ ( const argument t  )  [inline, inherited]

Default implementation of "take as initialization".

Reimplemented from mln::Accumulator< E >.

Definition at line 138 of file pair.hh.

template<typename E>
template<typename T>
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().

template<typename E>
template<typename T>
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().

template<typename A1, typename A2, typename T>
std::pair< typename A1::result, typename A2::result > mln::accu::pair< A1, A2, T >::to_result (  )  const [inline, inherited]

Get the value of the accumulator.

Definition at line 165 of file pair.hh.


Member Data Documentation

template<typename A1, typename A2, typename T = mln_argument(A1)>
A1 mln::accu::pair< A1, A2, T >::a1_ [protected, inherited]

Definition at line 93 of file pair.hh.

Referenced by mln::accu::pair< A1, A2, T >::take().

template<typename A1, typename A2, typename T = mln_argument(A1)>
A2 mln::accu::pair< A1, A2, T >::a2_ [protected, inherited]

Definition at line 94 of file pair.hh.

Referenced by mln::accu::pair< A1, A2, T >::take().


Generated on Sun Apr 25 01:57:42 2010 for Milena (Olena) by  doxygen 1.5.6