Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::MatchExpr< ArgT, MatcherT > Class Template Reference

#include <catch_capture_matchers.h>

Inheritance diagram for Catch::MatchExpr< ArgT, MatcherT >:
Collaboration diagram for Catch::MatchExpr< ArgT, MatcherT >:

Public Member Functions

 MatchExpr (ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString)
 
void streamReconstructedExpression (std::ostream &os) const override
 
 MatchExpr (ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString)
 
void streamReconstructedExpression (std::ostream &os) const override
 
- Public Member Functions inherited from Catch::ITransientExpression
auto isBinaryExpression () const -> bool
 
auto getResult () const -> bool
 
 ITransientExpression (bool isBinaryExpression, bool result)
 
virtual ~ITransientExpression ()
 
auto isBinaryExpression () const -> bool
 
auto getResult () const -> bool
 
 ITransientExpression (bool isBinaryExpression, bool result)
 
virtual ~ITransientExpression ()
 

Additional Inherited Members

- Public Attributes inherited from Catch::ITransientExpression
bool m_isBinaryExpression
 
bool m_result
 

Detailed Description

template<typename ArgT, typename MatcherT>
class Catch::MatchExpr< ArgT, MatcherT >

Definition at line 3370 of file catch.hpp.

Constructor & Destructor Documentation

◆ MatchExpr() [1/2]

template<typename ArgT , typename MatcherT >
Catch::MatchExpr< ArgT, MatcherT >::MatchExpr ( ArgT const & arg,
MatcherT const & matcher,
StringRef const & matcherString )
inline

Definition at line 27 of file catch_capture_matchers.h.

28 : ITransientExpression{ true, matcher.match( arg ) },
29 m_arg( arg ),
30 m_matcher( matcher ),
31 m_matcherString( matcherString )
32 {}
ITransientExpression(bool isBinaryExpression, bool result)

◆ MatchExpr() [2/2]

template<typename ArgT , typename MatcherT >
Catch::MatchExpr< ArgT, MatcherT >::MatchExpr ( ArgT const & arg,
MatcherT const & matcher,
StringRef const & matcherString )
inline

Definition at line 3375 of file catch.hpp.

3376 : ITransientExpression{ true, matcher.match( arg ) },
3377 m_arg( arg ),
3378 m_matcher( matcher ),
3379 m_matcherString( matcherString )
3380 {}

Member Function Documentation

◆ streamReconstructedExpression() [1/2]

template<typename ArgT , typename MatcherT >
void Catch::MatchExpr< ArgT, MatcherT >::streamReconstructedExpression ( std::ostream & os) const
inlineoverridevirtual

Implements Catch::ITransientExpression.

Definition at line 34 of file catch_capture_matchers.h.

34 {
35 auto matcherAsString = m_matcher.toString();
36 os << Catch::Detail::stringify( m_arg ) << ' ';
37 if( matcherAsString == Detail::unprintableString )
38 os << m_matcherString;
39 else
40 os << matcherAsString;
41 }
os_t os
const std::string unprintableString
std::string stringify(const T &e)
Here is the call graph for this function:

◆ streamReconstructedExpression() [2/2]

template<typename ArgT , typename MatcherT >
void Catch::MatchExpr< ArgT, MatcherT >::streamReconstructedExpression ( std::ostream & os) const
inlineoverridevirtual

Implements Catch::ITransientExpression.

Definition at line 3382 of file catch.hpp.

3382 {
3383 auto matcherAsString = m_matcher.toString();
3384 os << Catch::Detail::stringify( m_arg ) << ' ';
3385 if( matcherAsString == Detail::unprintableString )
3386 os << m_matcherString;
3387 else
3388 os << matcherAsString;
3389 }
Here is the call graph for this function:

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