Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherMethod< T >

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
 

Detailed Description

template<typename T>
class Catch::Matchers::Generic::PredicateMatcher< T >

Definition at line 3495 of file catch.hpp.

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

Definition at line 3500 of file catch.hpp.

References Catch::Matchers::Generic::Detail::finalizeDescription().

+ Here is the call graph for this function:

Member Function Documentation

◆ describe()

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

Implements Catch::Matchers::Impl::MatcherUntypedBase.

Definition at line 3509 of file catch.hpp.

◆ match()

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

Implements Catch::Matchers::Impl::MatcherMethod< T >.

Definition at line 3505 of file catch.hpp.


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