OpenWalnut
1.4.0
|
This class tests against the getName() method of the instances of type T. More...
#include <WPredicateHelper.h>
Public Member Functions | |
Name (std::string check) | |
Creates instance. | |
bool | operator() (const T &inst) |
Checks the instance of T against the string specified during construction. | |
Private Attributes | |
std::string | m_check |
The string to check against. |
This class tests against the getName() method of the instances of type T.
Many, many, many many many classes in OpenWalnut provide a getName() method. This predicate can check against a defined name. Useful for searching.
Definition at line 70 of file WPredicateHelper.h.
WPredicateHelper::Name< T >::Name | ( | std::string | check | ) | [inline, explicit] |
Creates instance.
The specified string is used for checking.
check | the string to check against. |
Definition at line 78 of file WPredicateHelper.h.
bool WPredicateHelper::Name< T >::operator() | ( | const T & | inst | ) | [inline] |
Checks the instance of T against the string specified during construction.
inst | use getName of this instance of T |
Definition at line 90 of file WPredicateHelper.h.
References WPredicateHelper::Name< T >::m_check.
std::string WPredicateHelper::Name< T >::m_check [private] |
The string to check against.
Definition at line 93 of file WPredicateHelper.h.
Referenced by WPredicateHelper::Name< T >::operator()(), and WPredicateHelper::Name< boost::shared_ptr< T > >::operator()().