Agora  1.2.0
Agora project
Catch::Matchers::Generic::PredicateMatcher< T > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Generic::PredicateMatcher< T >:
Collaboration 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
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchAllOf< Toperator&& (MatcherBase const &other) const
 
MatchAnyOf< Toperator|| (MatcherBase const &other) const
 
MatchNotOf< Toperator! () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
virtual ~MatcherUntypedBase ()
 
- Protected Attributes inherited from Catch::Matchers::Impl::MatcherUntypedBase
std::string m_cachedToString
 

Constructor & Destructor Documentation

◆ PredicateMatcher()

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

Member Function Documentation

◆ describe()

template<typename T >
std::string Catch::Matchers::Generic::PredicateMatcher< T >::describe ( ) const
inlineoverridevirtual

◆ match()

template<typename T >
bool Catch::Matchers::Generic::PredicateMatcher< T >::match ( T const &  item) const
inlineoverridevirtual

Member Data Documentation

◆ m_description

template<typename T >
std::string Catch::Matchers::Generic::PredicateMatcher< T >::m_description
private

◆ m_predicate

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

The documentation for this class was generated from the following file: