V
is the type of input values; T
is the type used to compute the result; R
is the result type.
More...
#include <linear.hh>
Public Types | |
typedef Function_v2v< void > | category |
typedef E | exact_t |
typedef void | mutable_result |
typedef R | result |
Public Member Functions | |
linear (T a, T b) | |
template<typename U> | |
R | operator() (const U &u) const |
R | operator() (const V &v) const |
Public Attributes | |
T | a |
T | b |
V
is the type of input values; T
is the type used to compute the result; R
is the result type.
By defaut, T
is V
and R
is T
.
Definition at line 55 of file v2v/linear.hh.
typedef Function_v2v<void> mln::Function_v2v< E >::category [inherited] |
Reimplemented from mln::Function< E >.
Reimplemented in mln::Function_v2b< E >, mln::Function_v2b< f_box2d_t >, mln::Function_v2b< mln::fun::v2b::lnot< V > >, mln::Function_v2b< mln::fun::p2b::antilogy >, mln::Function_v2b< mln::fun::p2b::has< I > >, mln::Function_v2b< mln::fun::p2b::tautology >, mln::Function_v2b< keep_specific_colors >, mln::Function_v2b< my_box2d >, mln::Function_v2b< mln::topo::is_simple_cell< I > >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_edge >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_row_odd >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_pixel >, mln::Function_v2b< mln::fun::v2b::threshold< V > >, mln::Function_v2b< mln::world::inter_pixel::is_separator >, mln::Function_v2b< mln::topo::is_n_face< N > >, mln::Function_v2b< not_to_remove >, mln::Function_v2b< mln::fun::p2b::chess >, mln::Function_v2b< f_box1d_t >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_dot >, mln::Function_v2b< mln::fun::p2b::big_chess< B > >, mln::Function_v2b< mln::world::inter_pixel::is_pixel >, and mln::Function_v2b< f_box3d_t >.
Definition at line 93 of file function.hh.
typedef E mln::Object< E >::exact_t [inherited] |
typedef void mln::Function_v2v< E >::mutable_result [inherited] |
typedef R mln::fun::v2v::linear< V, T, R >::result |
Definition at line 57 of file v2v/linear.hh.
mln::fun::v2v::linear< V, T, R >::linear | ( | T | a, | |
T | b | |||
) | [inline] |
Definition at line 91 of file v2v/linear.hh.
R mln::fun::v2v::linear< V, T, R >::operator() | ( | const U & | u | ) | const [inline] |
Definition at line 109 of file v2v/linear.hh.
References mln::fun::v2v::linear< V, T, R >::operator()().
R mln::fun::v2v::linear< V, T, R >::operator() | ( | const V & | v | ) | const [inline] |
Definition at line 100 of file v2v/linear.hh.
References mln::fun::v2v::linear< V, T, R >::a, mln::fun::v2v::linear< V, T, R >::b, and mln::fun::T.
Referenced by mln::fun::v2v::linear< V, T, R >::operator()().
T mln::fun::v2v::linear< V, T, R >::a |
Definition at line 65 of file v2v/linear.hh.
Referenced by mln::fun::v2v::linear< V, T, R >::operator()().
T mln::fun::v2v::linear< V, T, R >::b |
Definition at line 65 of file v2v/linear.hh.
Referenced by mln::fun::v2v::linear< V, T, R >::operator()().