Public Types | Public Member Functions | Data Fields

DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 > Struct Template Reference

Aim: The predicate returns true when the point is within the given bounds. More...

#include <BasicPointPredicates.h>

Public Types

typedef TPointPredicate1 PointPredicate1
typedef TPointPredicate2 PointPredicate2
typedef PointPredicate1::Point Point
typedef PointPredicate2::Point Point2

Public Member Functions

 BinaryPointPredicate (const PointPredicate1 &pred1, const PointPredicate2 &pred2, const BoolFunction2 &boolFunctor)
bool operator() (const Point &p) const

Data Fields

const PointPredicate1myPred1
const PointPredicate2myPred2
BoolFunction2 myBoolFunctor

Detailed Description

template<typename TPointPredicate1, typename TPointPredicate2>
struct DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >

Aim: The predicate returns true when the point is within the given bounds.

Description of template class 'BinaryPointPredicate'

Template Parameters:
PointPredicate1 the left predicate type.
PointPredicate2 the right predicate type.

Member Typedef Documentation

template<typename TPointPredicate1 , typename TPointPredicate2 >
typedef PointPredicate1::Point DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::Point
template<typename TPointPredicate1 , typename TPointPredicate2 >
typedef PointPredicate2::Point DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::Point2
template<typename TPointPredicate1 , typename TPointPredicate2 >
typedef TPointPredicate1 DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::PointPredicate1
template<typename TPointPredicate1 , typename TPointPredicate2 >
typedef TPointPredicate2 DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::PointPredicate2

Constructor & Destructor Documentation

template<typename TPointPredicate1 , typename TPointPredicate2 >
DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::BinaryPointPredicate ( const PointPredicate1 pred1,
const PointPredicate2 pred2,
const BoolFunction2 boolFunctor 
)

Constructor from predicates and bool Functor.


Member Function Documentation

template<typename TPointPredicate1 , typename TPointPredicate2 >
bool DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::operator() ( const Point p  )  const
Parameters:
p any point.
Returns:
the value of the predicate at this point.

Field Documentation

template<typename TPointPredicate1 , typename TPointPredicate2 >
BoolFunction2 DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::myBoolFunctor
template<typename TPointPredicate1 , typename TPointPredicate2 >
const PointPredicate1& DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::myPred1
template<typename TPointPredicate1 , typename TPointPredicate2 >
const PointPredicate2& DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2 >::myPred2

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