DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
DGtal::functors::NotPointPredicate< TPointPredicate > Struct Template Reference

Aim: The predicate returns true when the point predicate given at construction return false. Thus inverse a predicate: NOT operator. More...

#include <DGtal/kernel/BasicPointPredicates.h>

Public Types

typedef TPointPredicate PointPredicate
 
typedef PointPredicate::Point Point
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< PointPredicate >))
 
 NotPointPredicate (ConstAlias< PointPredicate > pred)
 
bool operator() (const Point &p) const
 

Data Fields

const PointPredicatemyPred
 The PointPredicate that is inversed. More...
 

Detailed Description

template<typename TPointPredicate>
struct DGtal::functors::NotPointPredicate< TPointPredicate >

Aim: The predicate returns true when the point predicate given at construction return false. Thus inverse a predicate: NOT operator.

Description of template class 'NotPointPredicate'

Template Parameters
TPointPredicatethe predicate type.
Examples
geometry/volumes/distance/voronoimap2D.cpp.

Definition at line 207 of file BasicPointPredicates.h.

Member Typedef Documentation

◆ Point

template<typename TPointPredicate >
typedef PointPredicate::Point DGtal::functors::NotPointPredicate< TPointPredicate >::Point

Definition at line 211 of file BasicPointPredicates.h.

◆ PointPredicate

template<typename TPointPredicate >
typedef TPointPredicate DGtal::functors::NotPointPredicate< TPointPredicate >::PointPredicate

Definition at line 209 of file BasicPointPredicates.h.

Constructor & Destructor Documentation

◆ NotPointPredicate()

template<typename TPointPredicate >
DGtal::functors::NotPointPredicate< TPointPredicate >::NotPointPredicate ( ConstAlias< PointPredicate pred)

Constructor from predicates and bool Functor.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename TPointPredicate >
DGtal::functors::NotPointPredicate< TPointPredicate >::BOOST_CONCEPT_ASSERT ( (concepts::CPointPredicate< PointPredicate >)  )

◆ operator()()

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

Field Documentation

◆ myPred

template<typename TPointPredicate >
const PointPredicate* DGtal::functors::NotPointPredicate< TPointPredicate >::myPred

The PointPredicate that is inversed.

Definition at line 225 of file BasicPointPredicates.h.


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