Public Types | Public Member Functions | Public Attributes

mln::fun::v2b::threshold< V > Struct Template Reference

Threshold function. More...

#include <threshold.hh>

Inheritance diagram for mln::fun::v2b::threshold< V >:
Inheritance graph

List of all members.

Public Types

typedef Function_v2b< void > category
typedef threshold< V > exact_t
typedef void mutable_result
typedef bool result

Public Member Functions

bool operator() (const V &v) const
 threshold (const V &a)

Public Attributes

a

Detailed Description

template<typename V>
struct mln::fun::v2b::threshold< V >

Threshold function.

f(v) = (v >= threshold).

Definition at line 48 of file fun/v2b/threshold.hh.


Member Typedef Documentation

typedef Function_v2b<void> mln::Function_v2b< threshold< V > >::category [inherited]

Reimplemented from mln::Function_v2v< threshold< V > >.

Definition at line 152 of file function.hh.

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

Definition at line 173 of file object.hh.

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

Definition at line 127 of file function.hh.

template<typename V>
typedef bool mln::fun::v2b::threshold< V >::result

Reimplemented from mln::Function_v2b< threshold< V > >.

Definition at line 50 of file fun/v2b/threshold.hh.


Constructor & Destructor Documentation

template<typename V >
mln::fun::v2b::threshold< V >::threshold ( const V &  a  )  [inline]

Definition at line 62 of file fun/v2b/threshold.hh.


Member Function Documentation

template<typename V >
bool mln::fun::v2b::threshold< V >::operator() ( const V &  v  )  const [inline]

Definition at line 70 of file fun/v2b/threshold.hh.

References mln::fun::v2b::threshold< V >::a.


Member Data Documentation

template<typename V>
V mln::fun::v2b::threshold< V >::a

Definition at line 54 of file fun/v2b/threshold.hh.

Referenced by mln::fun::v2b::threshold< V >::operator()().