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::NotPointPredicate< TPointPredicate > Struct Template Reference

#include <BasicPointPredicates.h>

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

Public Types

typedef TPointPredicate PointPredicate
typedef PointPredicate::Point Point

Public Member Functions

 NotPointPredicate (const PointPredicate &pred)
bool operator() (const Point &p) const

Data Fields

const PointPredicatemyPred

Detailed Description

template<typename TPointPredicate>
struct DGtal::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.

Definition at line 204 of file BasicPointPredicates.h.


Member Typedef Documentation

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

Definition at line 209 of file BasicPointPredicates.h.

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

Definition at line 206 of file BasicPointPredicates.h.


Constructor & Destructor Documentation

template<typename TPointPredicate >
DGtal::NotPointPredicate< TPointPredicate >::NotPointPredicate ( const PointPredicate pred)
inline

Constructor from predicates and bool Functor.

Definition at line 102 of file BasicPointPredicates.ih.

: myPred( pred )
{
}

Member Function Documentation

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

Definition at line 111 of file BasicPointPredicates.ih.

{
return ! myPred( p );
}

Field Documentation

template<typename TPointPredicate>
const PointPredicate& DGtal::NotPointPredicate< TPointPredicate >::myPred

the PointPredicate that is inversed.

Definition at line 223 of file BasicPointPredicates.h.


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