Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Matchers::Impl::MatchNotOf< ArgT > Struct Template Reference

#include <catch_matchers.h>

Inheritance diagram for Catch::Matchers::Impl::MatchNotOf< ArgT >:
Collaboration diagram for Catch::Matchers::Impl::MatchNotOf< ArgT >:

Public Member Functions

 MatchNotOf (MatcherBase< ArgT > const &underlyingMatcher)
 
bool match (ArgT const &arg) const override
 
std::string describe () const override
 
 MatchNotOf (MatcherBase< ArgT > const &underlyingMatcher)
 
bool match (ArgT const &arg) const override
 
std::string describe () const override
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< ArgT >
MatchAllOf< ArgT > operator&& (MatcherBase const &other) const
 
MatchAllOf< ArgT > operator&& (MatcherBase const &other) const
 
MatchAnyOf< ArgT > operator|| (MatcherBase const &other) const
 
MatchAnyOf< ArgT > operator|| (MatcherBase const &other) const
 
MatchNotOf< ArgT > operator! () const
 
MatchNotOf< ArgT > 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
 
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherMethod< ArgT >

Public Attributes

MatcherBase< ArgT > const & m_underlyingMatcher
 

Additional Inherited Members

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

Detailed Description

template<typename ArgT>
struct Catch::Matchers::Impl::MatchNotOf< ArgT >

Definition at line 2999 of file catch.hpp.

Constructor & Destructor Documentation

◆ MatchNotOf() [1/2]

template<typename ArgT >
Catch::Matchers::Impl::MatchNotOf< ArgT >::MatchNotOf ( MatcherBase< ArgT > const & underlyingMatcher)
inline

Definition at line 129 of file catch_matchers.h.

129: m_underlyingMatcher( underlyingMatcher ) {}
MatcherBase< ArgT > const & m_underlyingMatcher

◆ MatchNotOf() [2/2]

template<typename ArgT >
Catch::Matchers::Impl::MatchNotOf< ArgT >::MatchNotOf ( MatcherBase< ArgT > const & underlyingMatcher)
inline

Definition at line 3001 of file catch.hpp.

3001: m_underlyingMatcher( underlyingMatcher ) {}

Member Function Documentation

◆ describe() [1/2]

template<typename ArgT >
std::string Catch::Matchers::Impl::MatchNotOf< ArgT >::describe ( ) const
inlineoverridevirtual

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

Definition at line 135 of file catch_matchers.h.

135 {
136 return "not " + m_underlyingMatcher.toString();
137 }
Here is the call graph for this function:

◆ describe() [2/2]

template<typename ArgT >
std::string Catch::Matchers::Impl::MatchNotOf< ArgT >::describe ( ) const
inlineoverridevirtual

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

Definition at line 3007 of file catch.hpp.

3007 {
3008 return "not " + m_underlyingMatcher.toString();
3009 }

◆ match() [1/2]

template<typename ArgT >
bool Catch::Matchers::Impl::MatchNotOf< ArgT >::match ( ArgT const & arg) const
inlineoverridevirtual

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

Definition at line 131 of file catch_matchers.h.

131 {
132 return !m_underlyingMatcher.match( arg );
133 }
virtual bool match(ObjectT const &arg) const =0
Here is the call graph for this function:

◆ match() [2/2]

template<typename ArgT >
bool Catch::Matchers::Impl::MatchNotOf< ArgT >::match ( ArgT const & arg) const
inlineoverridevirtual

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

Definition at line 3003 of file catch.hpp.

3003 {
3004 return !m_underlyingMatcher.match( arg );
3005 }

Member Data Documentation

◆ m_underlyingMatcher

template<typename ArgT >
MatcherBase< ArgT > const & Catch::Matchers::Impl::MatchNotOf< ArgT >::m_underlyingMatcher

Definition at line 138 of file catch_matchers.h.


The documentation for this struct was generated from the following files: