Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::accu::stat::min_max< V > Struct Template Reference

Generic min and max accumulator class. More...

#include <min_max.hh>

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

Public Member Functions

min< V >::result first () const
 Return the result of the first accumulator.
 
min< V > first_accu () const
 Return the first accumulator.
 
bool is_valid () const
 Check whether this accu is able to return a result.
 
max< V >::result second () const
 Return the result of the second accumulator.
 
max< V > second_accu () const
 Return the second accumulator.
 
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.
 
void init ()
 Manipulators.
 
std::pair< typename min< V >
::result, typename max< V >
::result > 
to_result () const
 Get the value of the accumulator.
 

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 Function Documentation

min< V > ::result mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::first ( ) const
inherited

Return the result of the first accumulator.

min< V > mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::first_accu ( ) const
inherited

Return the first accumulator.

void mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::init ( )
inherited

Manipulators.

bool mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::is_valid ( ) const
inherited

Check whether this accu is able to return a result.

Always true here.

max< V > ::result mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::second ( ) const
inherited

Return the result of the second accumulator.

max< V > mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::second_accu ( ) const
inherited

Return the second accumulator.

template<typename E >
template<typename T >
void Accumulator< E >::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 '_').

Definition at line 186 of file accumulator.hh.

References mln::mln_exact().

template<typename E >
template<typename T >
void Accumulator< E >::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 '_').

Definition at line 213 of file accumulator.hh.

References mln::mln_exact().

std::pair<typename min< V > ::result, typename max< V > ::result> mln::accu::pair< min< V > , max< V > , mln_argument(min< V > ) >::to_result ( ) const
inherited

Get the value of the accumulator.