OpenWalnut
1.5.0dev
|
This namespace contains some useful helper classes which use some common class methods as predicate. More...
Classes | |
class | Name |
This class tests against the getName() method of the instances of type T. More... | |
class | Name< std::shared_ptr< T > > |
This class tests against the getName() method of the instances of type T. More... | |
class | ArbitraryPredicateBase |
This class builds the base for wrapping around nearly every possible predicates like functors, classes with operator() and so on. More... | |
class | ArbitraryPredicate |
The actual class implementing the predicate evaluation. More... | |
Functions | |
template<typename T > | |
bool | alwaysTrue (const T &) |
Predicate which is always true. More... | |
template<typename T > | |
bool | alwaysFalse (const T &) |
Predicate which is always false. More... | |
This namespace contains some useful helper classes which use some common class methods as predicate.
This is especially useful and handy if std containers are used with OpenWalnut's classes. The predicate helper classes allow easy use of std::count_if, std::find_if and so on.
bool WPredicateHelper::alwaysFalse | ( | const T & | ) |
Predicate which is always false.
Useful if you want to ignore something all the time.
T | the value type to check |
Definition at line 60 of file WPredicateHelper.h.
bool WPredicateHelper::alwaysTrue | ( | const T & | ) |
Predicate which is always true.
Useful if you want to ignore something all the time.
T | the value type to check |
Definition at line 47 of file WPredicateHelper.h.