$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::accu::stat::max< T > Struct Template Reference

#include <mln/accu/stat/max.hh>

Public Member Functions

 max ()
bool is_valid () const
void set_value (const T &t)
const Tsubj_ ()
void take_as_init (const T &t)
void take_n_times (unsigned n, const T &t)
void take_n_times_ (unsigned n, const T &t)
const Tto_result () const
void init ()
void take_as_init_ (const argument &t)
void take (const argument &t)
void take (const max< T > &other)

Protected Attributes

T t_

Public Types

typedef T argument
typedef Accumulator< void > category
typedef max< Texact_t
typedef const Tq_result
typedef mln::metal::unqualif
< const T & >::ret 
result

Detailed Description

template<typename T>
struct mln::accu::stat::max< T >

Generic max accumulator class.

The parameter T is the type of values.

Definition at line 101 of file accu/stat/max.hh.

Constructor & Destructor Documentation

template<typename T>
mln::accu::stat::max< T >::max ( )

Member Function Documentation

template<typename T>
void mln::accu::stat::max< T >::init ( )

Manipulators.

template<typename T>
bool mln::accu::stat::max< T >::is_valid ( ) const

Check whether this accu is able to return a result.

Always true here.

template<typename T>
void mln::accu::stat::max< T >::set_value ( const T t)

Force the value of the min to t.

const T & mln::accu::internal::base< const T & , max< T > >::subj_ ( )
inherited
template<typename T>
void mln::accu::stat::max< T >::take ( const argument t)
template<typename T>
void mln::accu::stat::max< T >::take ( const max< T > &  other)
void mln::Accumulator< max< T > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

template<typename T>
void mln::accu::stat::max< T >::take_as_init_ ( const argument t)

INTERNAL_API

Default implementation of "take as initialization".

Reimplemented from mln::Accumulator< max< T > >.

void mln::Accumulator< max< T > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

void mln::Accumulator< max< T > >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

template<typename T>
const T& mln::accu::stat::max< T >::to_result ( ) const

Get the value of the accumulator.

Member Data Documentation

template<typename T>
T mln::accu::stat::max< T >::t_
protected

Definition at line 127 of file accu/stat/max.hh.

Member Typedef Documentation

template<typename T>
typedef T mln::accu::stat::max< T >::argument

Definition at line 103 of file accu/stat/max.hh.

typedef Accumulator<void> mln::Accumulator< max< T > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef max< T > mln::Object< max< T > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef const T & mln::accu::internal::base< const T & , max< T > >::q_result
inherited

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< const T & >::ret mln::accu::internal::base< const T & , max< T > >::result
inherited

Definition at line 59 of file base.hh.