|
DGtal
0.6.devel
|
#include <BasicPointPredicates.h>
Public Types | |
| typedef TPointPredicate1 | PointPredicate1 |
| typedef TPointPredicate2 | PointPredicate2 |
| typedef PointPredicate1::Point | Point |
| typedef PointPredicate2::Point | Point2 |
Public Member Functions | |
| BOOST_STATIC_ASSERT ((boost::is_same< Point, typename PointPredicate2::Point >::value)) | |
| BinaryPointPredicate (const PointPredicate1 &pred1, const PointPredicate2 &pred2, const TBinaryFunctor &boolFunctor) | |
| BinaryPointPredicate (const BinaryPointPredicate &other) | |
| BinaryPointPredicate & | operator= (const BinaryPointPredicate &other) |
| ~BinaryPointPredicate () | |
| bool | operator() (const Point &p) const |
Data Fields | |
| const PointPredicate1 * | myPred1 |
| const PointPredicate2 * | myPred2 |
| const TBinaryFunctor * | myBoolFunctor |
Aim: The predicate returns true when the given binary functor returns true for the two PointPredicates given at construction.
Description of template class 'BinaryPointPredicate'
| PointPredicate1 | the left predicate type. |
| PointPredicate2 | the right predicate type. |
| TBinaryFunctor | binary functor used for comparison |
Definition at line 268 of file BasicPointPredicates.h.
| typedef PointPredicate1::Point DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::Point |
Definition at line 272 of file BasicPointPredicates.h.
| typedef PointPredicate2::Point DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::Point2 |
Definition at line 278 of file BasicPointPredicates.h.
| typedef TPointPredicate1 DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::PointPredicate1 |
Definition at line 270 of file BasicPointPredicates.h.
| typedef TPointPredicate2 DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::PointPredicate2 |
Definition at line 271 of file BasicPointPredicates.h.
|
inline |
Constructor from predicates and bool Functor.
| pred1 | the left predicate. |
| pred2 | the right predicate. |
| boolFunctor | the binary function used to combine pred1 and pred2. |
Definition at line 136 of file BasicPointPredicates.ih.
|
inline |
Copy constructor.
| other | the object to copy |
Definition at line 146 of file BasicPointPredicates.ih.
|
inline |
| DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::BOOST_STATIC_ASSERT | ( | (boost::is_same< Point, typename PointPredicate2::Point >::value) | ) |
|
inline |
| p | any point. |
Definition at line 177 of file BasicPointPredicates.ih.
|
inline |
Assignement
| other | the object to copy |
Definition at line 155 of file BasicPointPredicates.ih.
References DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myBoolFunctor, DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myPred1, and DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myPred2.
| const TBinaryFunctor* DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myBoolFunctor |
aliasing pointer to the binary functor.
Definition at line 320 of file BasicPointPredicates.h.
Referenced by DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::operator=().
| const PointPredicate1* DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myPred1 |
aliasing pointer to the left predicate.
Definition at line 316 of file BasicPointPredicates.h.
Referenced by DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::operator=().
| const PointPredicate2* DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::myPred2 |
aliasing pointer to the right predicate.
Definition at line 318 of file BasicPointPredicates.h.
Referenced by DGtal::BinaryPointPredicate< TPointPredicate1, TPointPredicate2, TBinaryFunctor >::operator=().
1.8.1.1