47 #ifndef _MIRA_FUNCTIONALS_H_ 48 #define _MIRA_FUNCTIONALS_H_ 60 template <
typename P,
typename Op>
63 EvalFirstOf(
const Op& iOp,
const typename P::first_type& iValue) :
68 bool operator()(
const P& p)
70 return op(p.first, value);
74 typename P::first_type value;
77 template <
typename P,
typename Op>
80 EvalSecondOf(
const Op& iOp,
const typename P::second_type& iValue) :
84 bool operator()(
const P& p)
86 return op(p.second, value);
90 typename P::second_type value;
112 template <
typename P,
typename Op>
114 const typename P::first_type& iValue)
116 return Private::EvalFirstOf<P,Op>(iOp, iValue);
133 template <
typename P,
typename Op>
135 const typename P::second_type& iValue)
137 return Private::EvalSecondOf<P,Op>(iOp, iValue);
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Private::EvalFirstOf< P, Op > evalFirstOf(const Op &iOp, const typename P::first_type &iValue)
Functor for using STL functions like find_if, erase_if...
Definition: Functionals.h:113
Private::EvalSecondOf< P, Op > evalSecondOf(const Op &iOp, const typename P::second_type &iValue)
Functor for using stl functions like find_if, erase_if...
Definition: Functionals.h:134