DGtal  0.9.4beta
Public Types | Public Member Functions | Data Fields
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate > Struct Template Reference

#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
 
const PredicatemyPred
 

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

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

Definition at line 377 of file BasicPointPredicates.h.

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

Definition at line 375 of file BasicPointPredicates.h.

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

Definition at line 376 of file BasicPointPredicates.h.

Constructor & Destructor Documentation

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

template<typename TPointFunctor, typename TPredicate>
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::BOOST_CONCEPT_ASSERT ( (concepts::CPointFunctor< TPointFunctor >)  )
template<typename TPointFunctor, typename TPredicate>
DGtal::functors::PointFunctorPredicate< TPointFunctor, TPredicate >::BOOST_CONCEPT_ASSERT ( (concepts::CUnaryFunctor< TPredicate, typename TPointFunctor::Value, bool >)  )
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

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.

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: