34 #ifndef GUM_FUNCTORS_H 35 #define GUM_FUNCTORS_H 52 template <
class GUM_SCALAR >
59 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
60 return x >= y ? x : y;
77 template <
class GUM_SCALAR >
84 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
85 return x <= y ? x : y;
107 template <
class GUM_SCALAR >
114 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
115 return x.first >= y.first ? x : y;
126 #endif // GUM_FUNCTORS_H
GUM_SCALAR first_argument_type
GUM_SCALAR second_argument_type
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
Arg Max function object class.
Maximization function object classReturns the maximum of its two arguments.
gum is the global namespace for all aGrUM entities
GUM_SCALAR second_argument_type
GUM_SCALAR first_argument_type
Minimization function object classReturns the minimum of its two arguments.
GUM_SCALAR first_argument_type
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
This files contains several function objects that are not (yet) defined in the STL.
GUM_SCALAR second_argument_type