DGtal  0.9.4beta
Public Types | Public Member Functions | Private Attributes
DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue > Struct Template Reference

#include <DGtal/kernel/BasicPointFunctors.h>

Public Types

typedef TPointPredicate PointPredicate
 
typedef TDomain Domain
 
typedef TValue Value
 
typedef Domain::Point Point
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< PointPredicate >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CDomain< Domain >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CQuantity< Value >))
 
 PointFunctorFromPointPredicateAndDomain (ConstAlias< PointPredicate > aPtrPredicate, ConstAlias< Domain > aDomain, const Value aTrueValue, const Value aFalseValue)
 
 PointFunctorFromPointPredicateAndDomain (const PointFunctorFromPointPredicateAndDomain &other)
 
Value operator() (const Point &aPoint) const
 
PointFunctorFromPointPredicateAndDomainoperator= (const PointFunctorFromPointPredicateAndDomain &other)
 

Private Attributes

const PointPredicatemyPtrPredicate
 
const DomainmyDomain
 
Value myTrueValue
 
Value myFalseValue
 

Detailed Description

template<typename TPointPredicate, typename TDomain, typename TValue = typename TDomain::Integer>
struct DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >

Create a point functor from a point predicate and a domain.

Definition at line 522 of file BasicPointFunctors.h.

Member Typedef Documentation

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
typedef TDomain DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::Domain

Definition at line 525 of file BasicPointFunctors.h.

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
typedef Domain::Point DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::Point

Definition at line 527 of file BasicPointFunctors.h.

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
typedef TPointPredicate DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::PointPredicate

Definition at line 524 of file BasicPointFunctors.h.

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
typedef TValue DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::Value

Definition at line 526 of file BasicPointFunctors.h.

Constructor & Destructor Documentation

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::PointFunctorFromPointPredicateAndDomain ( ConstAlias< PointPredicate aPtrPredicate,
ConstAlias< Domain aDomain,
const Value  aTrueValue,
const Value  aFalseValue 
)

Constructor.

Parameters
[in]aPtrPredicatea predicate on digital point
[in]aDomaina domain on digital point
[in]aTrueValuethe returned value when a given point is inside the domain and when the predicate return true
[in]aFalseValuethe returned value when a given point is outside the domain or when the predicate return false
template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::PointFunctorFromPointPredicateAndDomain ( const PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue > &  other)

Member Function Documentation

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::BOOST_CONCEPT_ASSERT ( (concepts::CPointPredicate< PointPredicate >)  )
template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::BOOST_CONCEPT_ASSERT ( (concepts::CDomain< Domain >)  )
template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::BOOST_CONCEPT_ASSERT ( (concepts::CQuantity< Value >)  )
template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
Value DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::operator() ( const Point aPoint) const

operator ()

Parameters
[in]aPointevaluated digital point.
Returns
aTrueValue when aPoint is inside the domain and when the predicate return true, aFalseValue else.
template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
PointFunctorFromPointPredicateAndDomain& DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::operator= ( const PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue > &  other)

Assignment.

Parameters
otherthe object to copy.
Returns
a reference on 'this'. Forbidden by default.

Field Documentation

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
const Domain* DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::myDomain
private

Definition at line 562 of file BasicPointFunctors.h.

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
Value DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::myFalseValue
private

Definition at line 564 of file BasicPointFunctors.h.

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
const PointPredicate* DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::myPtrPredicate
private

Definition at line 561 of file BasicPointFunctors.h.

template<typename TPointPredicate , typename TDomain , typename TValue = typename TDomain::Integer>
Value DGtal::functors::PointFunctorFromPointPredicateAndDomain< TPointPredicate, TDomain, TValue >::myTrueValue
private

Definition at line 563 of file BasicPointFunctors.h.


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