DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate > Struct Template Reference

Aim: The predicate returns true when the predicate returns true for the value assigned to a given point in the point functor. More...

#include <DGtal/kernel/BasicPointPredicates.h>

Public Types

typedef TPointFunctor PointFunctor
 
typedef TPredicate Predicate
 
typedef PointFunctor::Point Point
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CPointFunctor< TPointFunctor >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TPredicate, typename TPointFunctor::Value, bool >))
 
 PointFunctorPredicate (ConstAlias< PointFunctor > aFun, ConstAlias< Predicate > aPred)
 
bool operator() (const Point &p) const
 

Data Fields

const PointFunctormyFun
 alias of the PointFunctor. More...
 
const PredicatemyPred
 alias of the predicate. More...
 

Detailed Description

template<typename TPointFunctor, typename TPredicate>
struct DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >

Aim: The predicate returns true when the predicate returns true for the value assigned to a given point in the point functor.

Description of template class 'PointFunctorPredicate'

Template Parameters
TPointFunctora model of CPointFunctor.
TPredicatea type of predicate on values (model of CPredicate)

Definition at line 370 of file BasicPointPredicates.h.

Member Typedef Documentation

◆ Point

template<typename TPointFunctor , typename TPredicate >
typedef PointFunctor::Point DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::Point

Definition at line 377 of file BasicPointPredicates.h.

◆ PointFunctor

template<typename TPointFunctor , typename TPredicate >
typedef TPointFunctor DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::PointFunctor

Definition at line 375 of file BasicPointPredicates.h.

◆ Predicate

template<typename TPointFunctor , typename TPredicate >
typedef TPredicate DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::Predicate

Definition at line 376 of file BasicPointPredicates.h.

Constructor & Destructor Documentation

◆ PointFunctorPredicate()

template<typename TPointFunctor , typename TPredicate >
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::PointFunctorPredicate ( ConstAlias< PointFunctor aFun,
ConstAlias< Predicate aPred 
)

Constructor from an PointFunctor and a predicate

Parameters
aFunan point functor.
aPreda predicate.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT() [1/2]

template<typename TPointFunctor , typename TPredicate >
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::BOOST_CONCEPT_ASSERT ( (concepts::CPointFunctor< TPointFunctor >)  )

◆ BOOST_CONCEPT_ASSERT() [2/2]

template<typename TPointFunctor , typename TPredicate >
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::BOOST_CONCEPT_ASSERT ( (concepts::CUnaryFunctor< TPredicate, typename TPointFunctor::Value, bool >)  )

◆ operator()()

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

Field Documentation

◆ myFun

template<typename TPointFunctor , typename TPredicate >
const PointFunctor* DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::myFun

alias of the PointFunctor.

Definition at line 393 of file BasicPointPredicates.h.

◆ myPred

template<typename TPointFunctor , typename TPredicate >
const Predicate* DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::myPred

alias of the predicate.

Definition at line 395 of file BasicPointPredicates.h.


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