OpenWalnut
1.4.0
|
The actual class implementing the predicate evaluation. More...
#include <WPredicateHelper.h>
Public Member Functions | |
ArbitraryPredicate (Predicate predicate) | |
Creates instance. | |
virtual | ~ArbitraryPredicate () |
Destructor. | |
virtual bool | operator() (T const &inst) const |
Checks the instance of T against an arbitrary predicate. | |
Private Attributes | |
Predicate | m_predicate |
The predicate to use for checking. |
The actual class implementing the predicate evaluation.
The default predicate is a functor evaluating to true or false. For more details see ArbitraryPredicateBase.
T | the type to check. This usually is the type of the elements in a list or similar. |
Predicate | this is the predicate type. By default, it is a functor. |
Definition at line 185 of file WPredicateHelper.h.
WPredicateHelper::ArbitraryPredicate< T, Predicate >::ArbitraryPredicate | ( | Predicate | predicate | ) | [inline, explicit] |
Creates instance.
predicate | the predicate used for checking |
Definition at line 193 of file WPredicateHelper.h.
virtual WPredicateHelper::ArbitraryPredicate< T, Predicate >::~ArbitraryPredicate | ( | ) | [inline, virtual] |
Destructor.
Definition at line 202 of file WPredicateHelper.h.
virtual bool WPredicateHelper::ArbitraryPredicate< T, Predicate >::operator() | ( | T const & | inst | ) | const [inline, virtual] |
Checks the instance of T against an arbitrary predicate.
inst | the value to check against a predicate |
Implements WPredicateHelper::ArbitraryPredicateBase< T >.
Definition at line 213 of file WPredicateHelper.h.
References WPredicateHelper::ArbitraryPredicate< T, Predicate >::m_predicate.
Predicate WPredicateHelper::ArbitraryPredicate< T, Predicate >::m_predicate [private] |
The predicate to use for checking.
Definition at line 216 of file WPredicateHelper.h.
Referenced by WPredicateHelper::ArbitraryPredicate< T, Predicate >::operator()().