DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions
DGtal::Point2ShapePredicateComparator< T, b1, b2 > Struct Template Reference

#include <Point2ShapePredicate.h>

Public Member Functions

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

Detailed Description

template<typename T, bool b1, bool b2>
struct DGtal::Point2ShapePredicateComparator< T, b1, b2 >

Aim: A small struct with an operator that compares two values according to two bool template parameters.

Template Parameters:
Ttype for a signed quantity that is comparable
b1a bool for the comparison sign ('true' for >, 'false' for <)
b2a bool for the equality ('true' for a large inequality, 'false' for a strict inequality)

NB: only specialized versions should be used.

See also:
Point2ShapePredicate

Definition at line 171 of file Point2ShapePredicate.h.


Member Function Documentation

template<typename T , bool b1, bool b2>
bool DGtal::Point2ShapePredicateComparator< T, b1, b2 >::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 178 of file Point2ShapePredicate.h.

{
std::less<T> c;
return c(q,t);
}

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