Public Types | Public Member Functions | Protected Attributes

mln::fun::p2v::ternary_< P, T, F > Struct Template Reference

#include <ternary.hh>

List of all members.

Public Types

typedef T::result result

Public Member Functions

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

Protected Attributes

const F f_false_
const P f_pred_
const T f_true_

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.


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.


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 
) [inline]

Definition at line 77 of file ternary.hh.


Member Function Documentation

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

Definition at line 90 of file ternary.hh.


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.