Electroneum
Loading...
Searching...
No Matches
testing::internal::PropertyMatcher< Class, PropertyType > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

typedef GTEST_REFERENCE_TO_CONST_ (PropertyType) RefToConstProperty
 PropertyMatcher (PropertyType(Class::*property)() const, 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>
class testing::internal::PropertyMatcher< Class, PropertyType >

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

Constructor & Destructor Documentation

◆ PropertyMatcher()

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

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

2246 : property_(property), matcher_(matcher) {}

Member Function Documentation

◆ DescribeNegationTo()

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

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

2253 {
2254 *os << "is an object whose given property ";
2255 matcher_.DescribeNegationTo(os);
2256 }
void DescribeNegationTo(::std::ostream *os) const

◆ DescribeTo()

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

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

2248 {
2249 *os << "is an object whose given property ";
2250 matcher_.DescribeTo(os);
2251 }
void DescribeTo(::std::ostream *os) const

◆ GTEST_REFERENCE_TO_CONST_()

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

◆ MatchAndExplain()

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

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

2259 {
2260 return MatchAndExplainImpl(
2263 value, listener);
2264 }
#define GTEST_REMOVE_CONST_(T)

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h