DGtal  1.0.beta
Public Types | Public Member Functions | Data Fields
DGtal::functors::NotPointPredicate< TPointPredicate > Struct Template Reference

#include <DGtal/kernel/BasicPointPredicates.h>

Inheritance diagram for DGtal::functors::NotPointPredicate< TPointPredicate >:
[legend]

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
 

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

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

Definition at line 211 of file BasicPointPredicates.h.

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

Definition at line 209 of file BasicPointPredicates.h.

Constructor & Destructor Documentation

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

Constructor from predicates and bool Functor.

Member Function Documentation

template<typename TPointPredicate>
DGtal::functors::NotPointPredicate< TPointPredicate >::BOOST_CONCEPT_ASSERT ( (concepts::CPointPredicate< PointPredicate >)  )
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

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: