Electroneum
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::*)() const  property,
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
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:

◆ 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(
2261  typename ::testing::internal::
2262  is_pointer<GTEST_REMOVE_CONST_(T)>::type(),
2263  value, listener);
2264  }
const uint32_t T[512]
#define GTEST_REMOVE_CONST_(T)
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

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