|
OpenWalnut
1.2.5
|
The actual class implementing the predicate evaluation. More...
#include <WPredicateHelper.h>
Inheritance diagram for WPredicateHelper::ArbitraryPredicate< T, Predicate >: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. | |
Public Member Functions inherited from WPredicateHelper::ArbitraryPredicateBase< T > | |
| ArbitraryPredicateBase () | |
| Creates instance. | |
| virtual | ~ArbitraryPredicateBase () |
| Destructor. | |
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 187 of file WPredicateHelper.h.
|
inlineexplicit |
Creates instance.
| predicate | the predicate used for checking |
Definition at line 195 of file WPredicateHelper.h.
|
inlinevirtual |
Destructor.
Definition at line 204 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 215 of file WPredicateHelper.h.
References WPredicateHelper::ArbitraryPredicate< T, Predicate >::m_predicate.
|
private |
The predicate to use for checking.
Definition at line 218 of file WPredicateHelper.h.
Referenced by WPredicateHelper::ArbitraryPredicate< T, Predicate >::operator()().
1.8.1