$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::pw::binary_bound_fun_< F, PW1, PW2 > Struct Template Reference

#include <mln/pw/bind.hh>

Public Member Functions

 binary_bound_fun_ (const Function_vv2v< F > &f, const Function_v2v< PW1 > &pw1, const Function_v2v< PW2 > &pw2)
template<typename P >
result operator() (const P &p) const

Protected Attributes

const F f_
const PW1 pw1_
const PW2 pw2_

Public Types

typedef F::result result

Detailed Description

template<typename F, typename PW1, typename PW2>
struct mln::pw::binary_bound_fun_< F, PW1, PW2 >

Point-wise binary function binding.

This point-wise class is actually a function object embedding a Milena function (functor) and another point-wise expression. Its operator() returns the application of the embedded function to the embedded point-wise expression.

Definition at line 91 of file bind.hh.

Constructor & Destructor Documentation

template<typename F, typename PW1, typename PW2>
mln::pw::binary_bound_fun_< F, PW1, PW2 >::binary_bound_fun_ ( const Function_vv2v< F > &  f,
const Function_v2v< PW1 > &  pw1,
const Function_v2v< PW2 > &  pw2 
)

Member Function Documentation

template<typename F, typename PW1, typename PW2>
template<typename P >
result mln::pw::binary_bound_fun_< F, PW1, PW2 >::operator() ( const P &  p) const

Member Data Documentation

template<typename F, typename PW1, typename PW2>
const F mln::pw::binary_bound_fun_< F, PW1, PW2 >::f_
protected

The function to apply.

Definition at line 108 of file bind.hh.

template<typename F, typename PW1, typename PW2>
const PW1 mln::pw::binary_bound_fun_< F, PW1, PW2 >::pw1_
protected

The first point-wise expression.

Definition at line 110 of file bind.hh.

template<typename F, typename PW1, typename PW2>
const PW2 mln::pw::binary_bound_fun_< F, PW1, PW2 >::pw2_
protected

The second point-wise expression.

Definition at line 112 of file bind.hh.

Member Typedef Documentation

template<typename F, typename PW1, typename PW2>
typedef F::result mln::pw::binary_bound_fun_< F, PW1, PW2 >::result

Definition at line 97 of file bind.hh.