FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catch::Matchers::Generic::PredicateMatcher< T > Class Template Reference
Inheritance diagram for Catch::Matchers::Generic::PredicateMatcher< T >:

Public Member Functions

 PredicateMatcher (std::function< bool(T const &)> const &elem, std::string const &descr)
 
bool match (T const &item) const override
 
std::string describe () const override
 

Private Attributes

std::function< bool(T const &)> m_predicate
 
std::string m_description
 

Constructor & Destructor Documentation

template<typename T>
Catch::Matchers::Generic::PredicateMatcher< T >::PredicateMatcher ( std::function< bool(T const &)> const &  elem,
std::string const &  descr 
)
inline

Member Function Documentation

template<typename T>
std::string Catch::Matchers::Generic::PredicateMatcher< T >::describe ( ) const
inlineoverride
template<typename T>
bool Catch::Matchers::Generic::PredicateMatcher< T >::match ( T const &  item) const
inlineoverride

Field Documentation

template<typename T>
std::string Catch::Matchers::Generic::PredicateMatcher< T >::m_description
private
template<typename T>
std::function<bool(T const&)> Catch::Matchers::Generic::PredicateMatcher< T >::m_predicate
private