GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
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< T > operator&& (MatcherBase const &other) const
MatchAnyOf< T > operator|| (MatcherBase const &other) const
MatchNotOf< T > operator! () const
Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 MatcherUntypedBase (MatcherUntypedBase const &)=default
MatcherUntypedBase & operator= (MatcherUntypedBase const &)=delete
std::string toString () const

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

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