DGtal 1.4.0
|
Aim: The predicate returns true when the given binary functor returns true for the two PointPredicates given at construction. More...
#include <DGtal/kernel/BasicPointPredicates.h>
Public Types | |
typedef TPointPredicate1 | PointPredicate1 |
typedef TPointPredicate2 | PointPredicate2 |
typedef PointPredicate1::Point | Point |
typedef PointPredicate2::Point | Point2 |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< PointPredicate1 >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< PointPredicate2 >)) | |
BOOST_CONCEPT_ASSERT ((boost::BinaryFunction< TBinaryFunctor, bool, bool, bool >)) | |
BOOST_STATIC_ASSERT ((boost::is_same< Point, Point2 >::value)) | |
BinaryPointPredicate (ConstAlias< PointPredicate1 > pred1, ConstAlias< PointPredicate2 > pred2, ConstAlias< TBinaryFunctor > boolFunctor) | |
bool | operator() (const Point &p) const |
Data Fields | |
const PointPredicate1 * | myPred1 |
aliasing pointer to the left predicate. | |
const PointPredicate2 * | myPred2 |
aliasing pointer to the right predicate. | |
const TBinaryFunctor * | myBoolFunctor |
aliasing pointer to the binary functor. | |
Aim: The predicate returns true when the given binary functor returns true for the two PointPredicates given at construction.
Description of template class 'BinaryPointPredicate'
Note that this class is specialized for DGtal::AndBoolFct2 and DGtal::OrBoolFct2 in order to guarantee that the second computation is not performed when the first point predicate return false (resp. true) with DGtal::AndBoolFct2 (resp. DGtal::OrBoolFct2).
TPointPredicate1 | the left predicate type. |
TPointPredicate2 | the right predicate type. |
TBinaryFunctor | binary functor used for comparison |
Definition at line 275 of file BasicPointPredicates.h.
typedef PointPredicate1::Point DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::Point |
Definition at line 279 of file BasicPointPredicates.h.
typedef PointPredicate2::Point DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::Point2 |
Definition at line 280 of file BasicPointPredicates.h.
typedef TPointPredicate1 DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::PointPredicate1 |
Definition at line 277 of file BasicPointPredicates.h.
typedef TPointPredicate2 DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::PointPredicate2 |
Definition at line 278 of file BasicPointPredicates.h.
DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::BinaryPointPredicate | ( | ConstAlias< PointPredicate1 > | pred1, |
ConstAlias< PointPredicate2 > | pred2, | ||
ConstAlias< TBinaryFunctor > | boolFunctor ) |
Constructor from predicates and bool Functor.
pred1 | the left predicate. |
pred2 | the right predicate. |
boolFunctor | the binary function used to combine pred1 and pred2. |
DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::BOOST_CONCEPT_ASSERT | ( | (boost::BinaryFunction< TBinaryFunctor, bool, bool, bool >) | ) |
DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CPointPredicate< PointPredicate1 >) | ) |
DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CPointPredicate< PointPredicate2 >) | ) |
DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::BOOST_STATIC_ASSERT | ( | (boost::is_same< Point, Point2 >::value) | ) |
bool DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::operator() | ( | const Point & | p | ) | const |
p | any point. |
const TBinaryFunctor* DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myBoolFunctor |
aliasing pointer to the binary functor.
Definition at line 307 of file BasicPointPredicates.h.
const PointPredicate1* DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myPred1 |
aliasing pointer to the left predicate.
Definition at line 303 of file BasicPointPredicates.h.
const PointPredicate2* DGtal::functors::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myPred2 |
aliasing pointer to the right predicate.
Definition at line 305 of file BasicPointPredicates.h.