Electroneum
testing::internal::FieldMatcher< Class, FieldType > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

 FieldMatcher (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 2181 of file gmock-matchers.h.

Constructor & Destructor Documentation

◆ FieldMatcher()

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

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

2185  : field_(field), matcher_(matcher) {}

Member Function Documentation

◆ DescribeNegationTo()

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

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

2192  {
2193  *os << "is an object whose given field ";
2194  matcher_.DescribeNegationTo(os);
2195  }
void DescribeNegationTo(::std::ostream *os) const
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 2187 of file gmock-matchers.h.

2187  {
2188  *os << "is an object whose given field ";
2189  matcher_.DescribeTo(os);
2190  }
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 2198 of file gmock-matchers.h.

2198  {
2199  return MatchAndExplainImpl(
2200  typename ::testing::internal::
2201  is_pointer<GTEST_REMOVE_CONST_(T)>::type(),
2202  value, listener);
2203  }
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: