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

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

#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 222 of file Point2ShapePredicate.h.

Member Function Documentation

◆ operator()()

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 229 of file Point2ShapePredicate.h.

230  {
231  std::less_equal<T> c;
232  return c(q,t);
233  }

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