DGtal  1.3.beta
Public Types | Public Member Functions | Data Fields
DGtal::functors::EqualPointPredicate< TPoint > Struct Template Reference

Aim: The predicate returns true when the point given as argument equals the reference point given at construction. More...

#include <DGtal/kernel/BasicPointPredicates.h>

Public Types

typedef TPoint Point
 

Public Member Functions

 EqualPointPredicate (const Point &aPoint)
 
bool operator() (const Point &p) const
 

Data Fields

Point myPoint
 Reference point. More...
 

Detailed Description

template<typename TPoint>
struct DGtal::functors::EqualPointPredicate< TPoint >

Aim: The predicate returns true when the point given as argument equals the reference point given at construction.

Description of template class 'EqualPointPredicate'

Template Parameters
TPointpoint type.

Definition at line 238 of file BasicPointPredicates.h.

Member Typedef Documentation

◆ Point

template<typename TPoint >
typedef TPoint DGtal::functors::EqualPointPredicate< TPoint >::Point

Definition at line 240 of file BasicPointPredicates.h.

Constructor & Destructor Documentation

◆ EqualPointPredicate()

template<typename TPoint >
DGtal::functors::EqualPointPredicate< TPoint >::EqualPointPredicate ( const Point aPoint)

Constructor from a point.

Member Function Documentation

◆ operator()()

template<typename TPoint >
bool DGtal::functors::EqualPointPredicate< TPoint >::operator() ( const Point p) const
Parameters
pany point.
Returns
the value of the predicate at this point.

Field Documentation

◆ myPoint

template<typename TPoint >
Point DGtal::functors::EqualPointPredicate< TPoint >::myPoint

Reference point.

Definition at line 254 of file BasicPointPredicates.h.


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