|
DGtal
0.6.devel
|
#include <BasicFunctors.h>


Public Types | |
| typedef TPredicate1 | Predicate1 |
| typedef TPredicate2 | Predicate2 |
Public Member Functions | |
| PredicateCombiner (const Predicate1 &pred1, const Predicate2 &pred2, const TBinaryFunctor &boolFunctor) | |
| PredicateCombiner (const PredicateCombiner &other) | |
| PredicateCombiner & | operator= (const PredicateCombiner &other) |
| ~PredicateCombiner () | |
| template<typename T > | |
| bool | operator() (const T &t) const |
Data Fields | |
| const Predicate1 * | myPred1 |
| const Predicate2 * | myPred2 |
| const TBinaryFunctor * | myBoolFunctor |
Aim: The predicate returns true when the given binary functor returns true for the two Predicates given at construction.
Description of template class 'PredicateCombiner'
| Predicate1 | the left predicate type. |
| Predicate2 | the right predicate type. |
| TBinaryFunctor | binary functor used for comparison |
Definition at line 400 of file BasicFunctors.h.
| typedef TPredicate1 DGtal::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::Predicate1 |
Definition at line 402 of file BasicFunctors.h.
| typedef TPredicate2 DGtal::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::Predicate2 |
Definition at line 403 of file BasicFunctors.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 412 of file BasicFunctors.h.
|
inline |
Copy constructor.
| other | the object to copy |
Definition at line 423 of file BasicFunctors.h.
|
inline |
|
inline |
| t | any object of type T. |
| T | any input type supported by the two predicates to combine |
Definition at line 456 of file BasicFunctors.h.
|
inline |
Assignement
| other | the object to copy |
Definition at line 433 of file BasicFunctors.h.
| const TBinaryFunctor* DGtal::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myBoolFunctor |
aliasing pointer to the binary functor.
Definition at line 467 of file BasicFunctors.h.
Referenced by DGtal::PredicateCombiner< Tlow, Tup, AndBoolFct2 >::operator()(), and DGtal::PredicateCombiner< Tlow, Tup, AndBoolFct2 >::operator=().
| const Predicate1* DGtal::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred1 |
aliasing pointer to the left predicate.
Definition at line 463 of file BasicFunctors.h.
Referenced by DGtal::PredicateCombiner< Tlow, Tup, AndBoolFct2 >::operator()(), and DGtal::PredicateCombiner< Tlow, Tup, AndBoolFct2 >::operator=().
| const Predicate2* DGtal::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred2 |
aliasing pointer to the right predicate.
Definition at line 465 of file BasicFunctors.h.
Referenced by DGtal::PredicateCombiner< Tlow, Tup, AndBoolFct2 >::operator()(), and DGtal::PredicateCombiner< Tlow, Tup, AndBoolFct2 >::operator=().
1.8.1.1