$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::fun::p2v::ternary_< P, T, F > Struct Template Reference

#include <mln/fun/p2v/ternary.hh>

Public Member Functions

 ternary_ (const Function_v2b< P > &f_pred, const Function_v2v< T > &f_true, const Function_v2v< F > &f_false)
template<typename Pt >
result operator() (const Pt &p) const

Protected Attributes

const F f_false_
const P f_pred_
const T f_true_

Public Types

typedef T::result result

Detailed Description

template<typename P, typename T, typename F>
struct mln::fun::p2v::ternary_< P, T, F >

Definition at line 47 of file ternary.hh.

Constructor & Destructor Documentation

template<typename P , typename T , typename F >
mln::fun::p2v::ternary_< P, T, F >::ternary_ ( const Function_v2b< P > &  f_pred,
const Function_v2v< T > &  f_true,
const Function_v2v< F > &  f_false 
)

Member Function Documentation

template<typename P , typename T , typename F >
template<typename Pt >
result mln::fun::p2v::ternary_< P, T, F >::operator() ( const Pt &  p) const

Member Data Documentation

template<typename P , typename T , typename F >
const F mln::fun::p2v::ternary_< P, T, F >::f_false_
protected

Definition at line 62 of file ternary.hh.

template<typename P , typename T , typename F >
const P mln::fun::p2v::ternary_< P, T, F >::f_pred_
protected

Definition at line 60 of file ternary.hh.

template<typename P , typename T , typename F >
const T mln::fun::p2v::ternary_< P, T, F >::f_true_
protected

Definition at line 61 of file ternary.hh.

Member Typedef Documentation

template<typename P , typename T , typename F >
typedef T ::result mln::fun::p2v::ternary_< P, T, F >::result

Definition at line 50 of file ternary.hh.