Public Types | Public Member Functions | Protected Member Functions

mln::accu::internal::base< R, E > Class Template Reference

Generic min accumulator class. More...

#include <base.hh>

Inherits mln::Accumulator< E >.

Inherited by mln::accu::internal::couple< accu::shape::bbox< P >, accu::math::count< P >, float, rectangularity< P > >, mln::accu::internal::couple< A1, A2, R, E >, mln::accu::pair< min< V >, max< V > >, and mln::accu::math::sum< typename mln::value::props< T >::sum, S >.

List of all members.

Public Types

typedef Accumulator< void > category
typedef E exact_t
typedef R q_result
typedef mln::metal::unqualif
< R >::ret 
result

Public Member Functions

subj_ ()
template<typename T >
void take_as_init (const T &t)
 Take as initialization the value t.
template<typename T >
void take_as_init_ (const T &t)
 Default implementation of "take as initialization".
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".

Protected Member Functions

 base ()

Detailed Description

template<typename R, typename E>
class mln::accu::internal::base< R, E >

Generic min accumulator class.

Base class for implementation of accumulator classes.

Definition at line 49 of file base.hh.


Member Typedef Documentation

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 173 of file object.hh.

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

Reimplemented in mln::accu::stat::histo3d_rgb< V >.

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

Constructor & Destructor Documentation

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

Definition at line 70 of file base.hh.


Member Function Documentation

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

Definition at line 77 of file base.hh.

References mln::exact().

template<typename E >
template<typename T >
void mln::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::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 E >
template<typename T >
void mln::Accumulator< E >::take_as_init_ ( const T &  t  )  [inherited]

Default implementation of "take as initialization".

Definition at line 200 of file accumulator.hh.

References mln::exact().

template<typename E >
template<typename T >
void mln::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::exact(), and mln::mln_exact().

template<typename E >
template<typename T >
void mln::Accumulator< E >::take_n_times_ ( unsigned  n,
const T &  t 
) [inherited]

Default implementation of "take n times".

Definition at line 230 of file accumulator.hh.

References mln::exact().