DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Data Fields
DGtal::IsUpperPointPredicate< TPoint > Struct Template Reference

#include <BasicPointPredicates.h>

Public Types

typedef TPoint Point

Public Member Functions

 IsUpperPointPredicate (const Point &lowerBound)
bool operator() (const Point &p) const

Data Fields

Point myLowerBound

Detailed Description

template<typename TPoint>
struct DGtal::IsUpperPointPredicate< TPoint >

Aim: The predicate returns true when the point is above (or equal) the given lower bound.

Description of template class 'IsUpperPointPredicate'

Template Parameters:
TPointany point type

Definition at line 146 of file BasicPointPredicates.h.


Member Typedef Documentation

template<typename TPoint >
typedef TPoint DGtal::IsUpperPointPredicate< TPoint >::Point

Definition at line 148 of file BasicPointPredicates.h.


Constructor & Destructor Documentation

template<typename TPoint >
DGtal::IsUpperPointPredicate< TPoint >::IsUpperPointPredicate ( const Point lowerBound)
inline

Constructor from lower bound.

Definition at line 66 of file BasicPointPredicates.ih.

: myLowerBound( lowerBound )
{}

Member Function Documentation

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

Definition at line 74 of file BasicPointPredicates.ih.

{
return p.isUpper( myLowerBound );
}

Field Documentation

template<typename TPoint >
Point DGtal::IsUpperPointPredicate< TPoint >::myLowerBound

the lower bound.

Definition at line 161 of file BasicPointPredicates.h.


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