ManaPlus
Public Member Functions | Private Attributes
Catch::Matchers::Impl::Generic::Not< ExpressionT > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Impl::Generic::Not< ExpressionT >:
Catch::Matchers::Impl::MatcherImpl< Not< ExpressionT >, ExpressionT > Catch::Matchers::Impl::Matcher< ExpressionT > Catch::SharedImpl< IShared > Catch::IShared Catch::NonCopyable

Public Member Functions

 Not (Matcher< ExpressionT > const &matcher)
 
 Not (Not const &other)
 
virtual bool match (ExpressionT const &expr) const
 
virtual std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherImpl< Not< ExpressionT >, ExpressionT >
virtual Ptr< Matcher< ExpressionT > > clone () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::Matcher< ExpressionT >
virtual ~Matcher ()
 
Generic::AllOf< ExpressionT > operator&& (Matcher< ExpressionT > const &other) const
 
Generic::AnyOf< ExpressionT > operator|| (Matcher< ExpressionT > const &other) const
 
Generic::Not< ExpressionT > operator! () const
 
- Public Member Functions inherited from Catch::SharedImpl< IShared >
 SharedImpl ()
 
virtual void addRef () const
 
virtual void release () const
 
- Public Member Functions inherited from Catch::IShared
virtual ~IShared ()
 

Private Attributes

Ptr< Matcher< ExpressionT > > m_matcher
 

Additional Inherited Members

- Public Types inherited from Catch::Matchers::Impl::Matcher< ExpressionT >
typedef ExpressionT ExpressionType
 
- Data Fields inherited from Catch::SharedImpl< IShared >
unsigned int m_rc
 
- Protected Member Functions inherited from Catch::NonCopyable
 NonCopyable ()
 
virtual ~NonCopyable ()
 

Detailed Description

template<typename ExpressionT>
class Catch::Matchers::Impl::Generic::Not< ExpressionT >

Definition at line 926 of file catch.hpp.

Constructor & Destructor Documentation

◆ Not() [1/2]

template<typename ExpressionT >
Catch::Matchers::Impl::Generic::Not< ExpressionT >::Not ( Matcher< ExpressionT > const &  matcher)
inlineexplicit

Definition at line 928 of file catch.hpp.

928 : m_matcher(matcher.clone()) {}
Ptr< Matcher< ExpressionT > > m_matcher
Definition: catch.hpp:939

◆ Not() [2/2]

template<typename ExpressionT >
Catch::Matchers::Impl::Generic::Not< ExpressionT >::Not ( Not< ExpressionT > const &  other)
inline

Definition at line 929 of file catch.hpp.

929 : m_matcher( other.m_matcher ) {}

Member Function Documentation

◆ match()

template<typename ExpressionT >
virtual bool Catch::Matchers::Impl::Generic::Not< ExpressionT >::match ( ExpressionT const &  expr) const
inlinevirtual

Implements Catch::Matchers::Impl::Matcher< ExpressionT >.

Definition at line 931 of file catch.hpp.

931  {
932  return !m_matcher->match( expr );
933  }

◆ toString()

template<typename ExpressionT >
virtual std::string Catch::Matchers::Impl::Generic::Not< ExpressionT >::toString ( ) const
inlinevirtual

Implements Catch::Matchers::Impl::Matcher< ExpressionT >.

Definition at line 935 of file catch.hpp.

935  {
936  return "not " + m_matcher->toString();
937  }

Field Documentation

◆ m_matcher

template<typename ExpressionT >
Ptr< Matcher<ExpressionT> > Catch::Matchers::Impl::Generic::Not< ExpressionT >::m_matcher
private

Definition at line 939 of file catch.hpp.


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