Electroneum
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)
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

◆ 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

◆ 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(
2202 value, listener);
2203 }
#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