Public Types | Public Member Functions | Protected Attributes

mln::fun::v2v::saturate< V > Struct Template Reference

#include <saturate.hh>

Inheritance diagram for mln::fun::v2v::saturate< V >:
Inheritance graph

List of all members.

Public Types

typedef Function_v2v< void > category
typedef saturate< V > exact_t
typedef void mutable_result
typedef V result

Public Member Functions

template<typename W >
operator() (const W &w) const
 saturate ()
 saturate (const V &min, const V &max)

Protected Attributes

max_
min_
bool needs_update_

Detailed Description

template<typename V>
struct mln::fun::v2v::saturate< V >

Definition at line 54 of file fun/v2v/saturate.hh.


Member Typedef Documentation

typedef Function_v2v<void> mln::Function_v2v< saturate< V > >::category [inherited]

Reimplemented from mln::Function< saturate< V > >.

Definition at line 126 of file function.hh.

typedef saturate< V > mln::Object< saturate< V > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef void mln::Function_v2v< saturate< V > >::mutable_result [inherited]

Definition at line 127 of file function.hh.

template<typename V>
typedef V mln::fun::v2v::saturate< V >::result

Definition at line 59 of file fun/v2v/saturate.hh.


Constructor & Destructor Documentation

template<typename V >
mln::fun::v2v::saturate< V >::saturate (  )  [inline]

Definition at line 74 of file fun/v2v/saturate.hh.

References mln::fun::v2v::saturate< V >::needs_update_.

template<typename V >
mln::fun::v2v::saturate< V >::saturate ( const V &  min,
const V &  max 
) [inline]

Definition at line 83 of file fun/v2v/saturate.hh.

References mln::fun::v2v::saturate< V >::needs_update_.


Member Function Documentation

template<typename V >
template<typename W >
V mln::fun::v2v::saturate< V >::operator() ( const W &  w  )  const [inline]

Member Data Documentation

template<typename V>
V mln::fun::v2v::saturate< V >::max_ [protected]

Definition at line 65 of file fun/v2v/saturate.hh.

Referenced by mln::fun::v2v::saturate< V >::operator()().

template<typename V>
V mln::fun::v2v::saturate< V >::min_ [protected]

Definition at line 65 of file fun/v2v/saturate.hh.

Referenced by mln::fun::v2v::saturate< V >::operator()().

template<typename V>
bool mln::fun::v2v::saturate< V >::needs_update_ [mutable, protected]