OpenWalnut
1.5.0dev
|
The actual class implementing the predicate evaluation. More...
#include <WPredicateHelper.h>
Public Member Functions | |
ArbitraryPredicate (Predicate predicate) | |
Creates instance. More... | |
virtual | ~ArbitraryPredicate () |
Destructor. More... | |
virtual bool | operator() (T const &inst) const |
Checks the instance of T against an arbitrary predicate. More... | |
Public Member Functions inherited from WPredicateHelper::ArbitraryPredicateBase< T > | |
ArbitraryPredicateBase () | |
Creates instance. More... | |
virtual | ~ArbitraryPredicateBase () |
Destructor. More... | |
Private Attributes | |
Predicate | m_predicate |
The predicate to use for checking. More... | |
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.
|
inlineexplicit |
Creates instance.
predicate | the predicate used for checking |
Definition at line 193 of file WPredicateHelper.h.
|
inlinevirtual |
Destructor.
Definition at line 202 of file WPredicateHelper.h.
|
inlinevirtual |
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.
|
private |
The predicate to use for checking.
Definition at line 222 of file WPredicateHelper.h.
Referenced by WPredicateHelper::ArbitraryPredicate< T, Predicate >::operator()().