DGtal  0.9.3beta
Public Member Functions
DGtal::functors::Point2ShapePredicateComparator< T, false, true > Struct Template Reference

#include <DGtal/shapes/fromPoints/Point2ShapePredicate.h>

Public Member Functions

bool operator() (const T &q, const T &t) const
 

Detailed Description

template<typename T>
struct DGtal::functors::Point2ShapePredicateComparator< T, false, true >

Aim: A small struct with an operator that compares two values (<=).

Template Parameters
Ttype for a signed quantity that is comparable
See also
Point2ShapePredicate

Definition at line 216 of file Point2ShapePredicate.h.

Member Function Documentation

template<typename T >
bool DGtal::functors::Point2ShapePredicateComparator< T, false, true >::operator() ( const T &  q,
const T &  t 
) const
inline

Compares two values.

Parameters
qleft value.
tright value.
Returns
'true' if q <= t, 'false' otherwise

Definition at line 223 of file Point2ShapePredicate.h.

224  {
225  std::less_equal<T> c;
226  return c(q,t);
227  }

The documentation for this struct was generated from the following file: