Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::FieldMatcher< Class, FieldType > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

 FieldMatcher (FieldType Class::*field, const Matcher< const FieldType & > &matcher)
 
 FieldMatcher (const std::string &field_name, FieldType Class::*field, const Matcher< const FieldType & > &matcher)
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 
template<typename T >
bool MatchAndExplain (const T &value, MatchResultListener *listener) const
 

Detailed Description

template<typename Class, typename FieldType>
class testing::internal::FieldMatcher< Class, FieldType >

Definition at line 2452 of file gmock-matchers.h.

Constructor & Destructor Documentation

◆ FieldMatcher() [1/2]

template<typename Class , typename FieldType >
testing::internal::FieldMatcher< Class, FieldType >::FieldMatcher ( FieldType Class::* field,
const Matcher< const FieldType & > & matcher )
inline

Definition at line 2454 of file gmock-matchers.h.

2456 : field_(field), matcher_(matcher), whose_field_("whose given field ") {}
ehm field

◆ FieldMatcher() [2/2]

template<typename Class , typename FieldType >
testing::internal::FieldMatcher< Class, FieldType >::FieldMatcher ( const std::string & field_name,
FieldType Class::* field,
const Matcher< const FieldType & > & matcher )
inline

Definition at line 2458 of file gmock-matchers.h.

2460 : field_(field),
2461 matcher_(matcher),
2462 whose_field_("whose field `" + field_name + "` ") {}

Member Function Documentation

◆ DescribeNegationTo()

template<typename Class , typename FieldType >
void testing::internal::FieldMatcher< Class, FieldType >::DescribeNegationTo ( ::std::ostream * os) const
inline

Definition at line 2469 of file gmock-matchers.h.

2469 {
2470 *os << "is an object " << whose_field_;
2471 matcher_.DescribeNegationTo(os);
2472 }
void DescribeNegationTo(::std::ostream *os) const
os_t os
Here is the call graph for this function:

◆ DescribeTo()

template<typename Class , typename FieldType >
void testing::internal::FieldMatcher< Class, FieldType >::DescribeTo ( ::std::ostream * os) const
inline

Definition at line 2464 of file gmock-matchers.h.

2464 {
2465 *os << "is an object " << whose_field_;
2466 matcher_.DescribeTo(os);
2467 }
void DescribeTo(::std::ostream *os) const
Here is the call graph for this function:

◆ MatchAndExplain()

template<typename Class , typename FieldType >
template<typename T >
bool testing::internal::FieldMatcher< Class, FieldType >::MatchAndExplain ( const T & value,
MatchResultListener * listener ) const
inline

Definition at line 2475 of file gmock-matchers.h.

2475 {
2476 return MatchAndExplainImpl(
2477 typename ::testing::internal::
2478 is_pointer<GTEST_REMOVE_CONST_(T)>::type(),
2479 value, listener);
2480 }
#define GTEST_REMOVE_CONST_(T)
#define value
Definition pkcs11.h:157
#define T(meth, val, expected)

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