DGtal
1.4.2
|
Aim: The predicate returns true when the given binary functor returns true for the two Predicates given at construction. More...
#include <DGtal/base/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 |
aliasing pointer to the left predicate. More... | |
const Predicate2 * | myPred2 |
aliasing pointer to the right predicate. More... | |
const TBinaryFunctor * | myBoolFunctor |
aliasing pointer to the binary functor. More... | |
Aim: The predicate returns true when the given binary functor returns true for the two Predicates given at construction.
Description of template class 'PredicateCombiner'
TPredicate1 | the left predicate type. |
TPredicate2 | the right predicate type. |
TBinaryFunctor | binary functor used for comparison |
Definition at line 622 of file BasicFunctors.h.
typedef TPredicate1 DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::Predicate1 |
Definition at line 624 of file BasicFunctors.h.
typedef TPredicate2 DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::Predicate2 |
Definition at line 625 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 634 of file BasicFunctors.h.
|
inline |
Copy constructor.
other | the object to copy |
Definition at line 645 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 678 of file BasicFunctors.h.
References DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myBoolFunctor, DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred1, and DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred2.
|
inline |
Assignement
other | the object to copy |
Definition at line 655 of file BasicFunctors.h.
References DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myBoolFunctor, DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred1, and DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred2.
const TBinaryFunctor* DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myBoolFunctor |
aliasing pointer to the binary functor.
Definition at line 689 of file BasicFunctors.h.
Referenced by DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::operator()(), and DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::operator=().
const Predicate1* DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred1 |
aliasing pointer to the left predicate.
Definition at line 685 of file BasicFunctors.h.
Referenced by DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::operator()(), and DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::operator=().
const Predicate2* DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::myPred2 |
aliasing pointer to the right predicate.
Definition at line 687 of file BasicFunctors.h.
Referenced by DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::operator()(), and DGtal::functors::PredicateCombiner< TPredicate1, TPredicate2, TBinaryFunctor >::operator=().