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

#include <mln/pw/bind.hh>

Public Member Functions

 unary_bound_fun_ (const Function_v2v< F > &f, const Function_v2v< PW > &pw)
template<typename P >
result operator() (const P &p) const

Protected Attributes

const F f_
const PW pw_

Public Types

typedef F::result result

Detailed Description

template<typename F, typename PW>
struct mln::pw::unary_bound_fun_< F, PW >

Point-wise unary 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 53 of file bind.hh.

Constructor & Destructor Documentation

template<typename F, typename PW>
mln::pw::unary_bound_fun_< F, PW >::unary_bound_fun_ ( const Function_v2v< F > &  f,
const Function_v2v< PW > &  pw 
)

Member Function Documentation

template<typename F, typename PW>
template<typename P >
result mln::pw::unary_bound_fun_< F, PW >::operator() ( const P &  p) const

Member Data Documentation

template<typename F, typename PW>
const F mln::pw::unary_bound_fun_< F, PW >::f_
protected

The function to apply.

Definition at line 66 of file bind.hh.

template<typename F, typename PW>
const PW mln::pw::unary_bound_fun_< F, PW >::pw_
protected

The point-wise expression.

Definition at line 68 of file bind.hh.

Member Typedef Documentation

template<typename F, typename PW>
typedef F::result mln::pw::unary_bound_fun_< F, PW >::result

Definition at line 57 of file bind.hh.