OpenWalnut  1.5.0dev
Classes | Functions
WPredicateHelper Namespace Reference

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...
 

Detailed Description

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.

Function Documentation

◆ alwaysFalse()

template<typename T >
bool WPredicateHelper::alwaysFalse ( const T &  )

Predicate which is always false.

Useful if you want to ignore something all the time.

Template Parameters
Tthe value type to check
Returns
always false.

Definition at line 60 of file WPredicateHelper.h.

◆ alwaysTrue()

template<typename T >
bool WPredicateHelper::alwaysTrue ( const T &  )

Predicate which is always true.

Useful if you want to ignore something all the time.

Template Parameters
Tthe value type to check
Returns
always true.

Definition at line 47 of file WPredicateHelper.h.