ManaPlus
Public Types | Public Member Functions
Catch::Matchers::Impl::Matcher< ExpressionT > Struct Template Referenceabstract

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Impl::Matcher< ExpressionT >:
Catch::SharedImpl< IShared > Catch::IShared Catch::NonCopyable Catch::Matchers::Impl::MatcherImpl< Equals, std::string > Catch::Matchers::Impl::MatcherImpl< Contains, std::string > Catch::Matchers::Impl::MatcherImpl< EndsWith, std::string > Catch::Matchers::Impl::MatcherImpl< AnyOf< ExpressionT >, ExpressionT > Catch::Matchers::Impl::MatcherImpl< Not< ExpressionT >, ExpressionT > Catch::Matchers::Impl::MatcherImpl< AllOf< ExpressionT >, ExpressionT > Catch::Matchers::Impl::MatcherImpl< StartsWith, std::string > Catch::Matchers::Impl::MatcherImpl< DerivedT, ExpressionT >

Public Types

typedef ExpressionT ExpressionType
 

Public Member Functions

virtual ~Matcher ()
 
virtual Ptr< Matcherclone () const =0
 
virtual bool match (ExpressionT const &expr) const =0
 
virtual std::string toString () const =0
 
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 ()
 

Additional Inherited Members

- 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>
struct Catch::Matchers::Impl::Matcher< ExpressionT >

Definition at line 902 of file catch.hpp.

Member Typedef Documentation

◆ ExpressionType

template<typename ExpressionT >
typedef ExpressionT Catch::Matchers::Impl::Matcher< ExpressionT >::ExpressionType

Definition at line 904 of file catch.hpp.

Constructor & Destructor Documentation

◆ ~Matcher()

template<typename ExpressionT >
virtual Catch::Matchers::Impl::Matcher< ExpressionT >::~Matcher ( )
inlinevirtual

Definition at line 906 of file catch.hpp.

906 {}

Member Function Documentation

◆ clone()

template<typename ExpressionT >
virtual Ptr<Matcher> Catch::Matchers::Impl::Matcher< ExpressionT >::clone ( ) const
pure virtual

◆ match()

template<typename ExpressionT >
virtual bool Catch::Matchers::Impl::Matcher< ExpressionT >::match ( ExpressionT const &  expr) const
pure virtual

◆ operator!()

template<typename ExpressionT >
Generic::Not< ExpressionT > Catch::Matchers::Impl::Matcher< ExpressionT >::operator!

Definition at line 1041 of file catch.hpp.

1041  {
1042  return Generic::Not<ExpressionT>( *this );
1043  }

◆ operator&&()

template<typename ExpressionT >
Generic::AllOf< ExpressionT > Catch::Matchers::Impl::Matcher< ExpressionT >::operator&& ( Matcher< ExpressionT > const &  other) const

Definition at line 1025 of file catch.hpp.

1025  {
1026  Generic::AllOf<ExpressionT> allOfExpr;
1027  allOfExpr.add( *this );
1028  allOfExpr.add( other );
1029  return allOfExpr;
1030  }

References Catch::Matchers::Impl::Generic::AllOf< ExpressionT >::add().

◆ operator||()

template<typename ExpressionT >
Generic::AnyOf< ExpressionT > Catch::Matchers::Impl::Matcher< ExpressionT >::operator|| ( Matcher< ExpressionT > const &  other) const

Definition at line 1033 of file catch.hpp.

1033  {
1034  Generic::AnyOf<ExpressionT> anyOfExpr;
1035  anyOfExpr.add( *this );
1036  anyOfExpr.add( other );
1037  return anyOfExpr;
1038  }

References Catch::Matchers::Impl::Generic::AnyOf< ExpressionT >::add().

◆ toString()

template<typename ExpressionT >
virtual std::string Catch::Matchers::Impl::Matcher< ExpressionT >::toString ( ) const
pure virtual

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