Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::PropertyMatcher< Class, PropertyType, Property > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

typedef GTEST_REFERENCE_TO_CONST_ (PropertyType) RefToConstProperty
 
 PropertyMatcher (Property property, const Matcher< RefToConstProperty > &matcher)
 
 PropertyMatcher (const std::string &property_name, Property property, const Matcher< RefToConstProperty > &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 PropertyType, typename Property>
class testing::internal::PropertyMatcher< Class, PropertyType, Property >

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

Constructor & Destructor Documentation

◆ PropertyMatcher() [1/2]

template<typename Class , typename PropertyType , typename Property >
testing::internal::PropertyMatcher< Class, PropertyType, Property >::PropertyMatcher ( Property property,
const Matcher< RefToConstProperty > & matcher )
inline

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

2529 : property_(property),
2530 matcher_(matcher),
2531 whose_property_("whose given property ") {}

◆ PropertyMatcher() [2/2]

template<typename Class , typename PropertyType , typename Property >
testing::internal::PropertyMatcher< Class, PropertyType, Property >::PropertyMatcher ( const std::string & property_name,
Property property,
const Matcher< RefToConstProperty > & matcher )
inline

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

2535 : property_(property),
2536 matcher_(matcher),
2537 whose_property_("whose property `" + property_name + "` ") {}

Member Function Documentation

◆ DescribeNegationTo()

template<typename Class , typename PropertyType , typename Property >
void testing::internal::PropertyMatcher< Class, PropertyType, Property >::DescribeNegationTo ( ::std::ostream * os) const
inline

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

2544 {
2545 *os << "is an object " << whose_property_;
2546 matcher_.DescribeNegationTo(os);
2547 }
void DescribeNegationTo(::std::ostream *os) const
os_t os
Here is the call graph for this function:

◆ DescribeTo()

template<typename Class , typename PropertyType , typename Property >
void testing::internal::PropertyMatcher< Class, PropertyType, Property >::DescribeTo ( ::std::ostream * os) const
inline

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

2539 {
2540 *os << "is an object " << whose_property_;
2541 matcher_.DescribeTo(os);
2542 }
void DescribeTo(::std::ostream *os) const
Here is the call graph for this function:

◆ GTEST_REFERENCE_TO_CONST_()

template<typename Class , typename PropertyType , typename Property >
typedef testing::internal::PropertyMatcher< Class, PropertyType, Property >::GTEST_REFERENCE_TO_CONST_ ( PropertyType )

◆ MatchAndExplain()

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

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

2550 {
2551 return MatchAndExplainImpl(
2552 typename ::testing::internal::
2553 is_pointer<GTEST_REMOVE_CONST_(T)>::type(),
2554 value, listener);
2555 }
#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: