Monero
Loading...
Searching...
No Matches
testing::internal::FieldMatcher< Class, FieldType > Class Template Reference

#include <gmock-matchers.h>

Collaboration diagram for testing::internal::FieldMatcher< Class, FieldType >:

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

Private Member Functions

bool MatchAndExplainImpl (false_type, const Class &obj, MatchResultListener *listener) const
bool MatchAndExplainImpl (true_type, const Class *p, MatchResultListener *listener) const
 GTEST_DISALLOW_ASSIGN_ (FieldMatcher)

Private Attributes

const FieldType Class::* field_
const Matcher< const FieldType & > matcher_

Constructor & Destructor Documentation

◆ FieldMatcher()

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

Member Function Documentation

◆ DescribeNegationTo()

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

◆ DescribeTo()

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

◆ GTEST_DISALLOW_ASSIGN_()

template<typename Class, typename FieldType>
testing::internal::FieldMatcher< Class, FieldType >::GTEST_DISALLOW_ASSIGN_ ( FieldMatcher< Class, FieldType > )
private

◆ MatchAndExplain()

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

◆ MatchAndExplainImpl() [1/2]

template<typename Class, typename FieldType>
bool testing::internal::FieldMatcher< Class, FieldType >::MatchAndExplainImpl ( false_type ,
const Class & obj,
MatchResultListener * listener ) const
inlineprivate

◆ MatchAndExplainImpl() [2/2]

template<typename Class, typename FieldType>
bool testing::internal::FieldMatcher< Class, FieldType >::MatchAndExplainImpl ( true_type ,
const Class * p,
MatchResultListener * listener ) const
inlineprivate

Member Data Documentation

◆ field_

template<typename Class, typename FieldType>
const FieldType Class::* testing::internal::FieldMatcher< Class, FieldType >::field_
private

◆ matcher_

template<typename Class, typename FieldType>
const Matcher<const FieldType&> testing::internal::FieldMatcher< Class, FieldType >::matcher_
private

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