Electroneum
testing::PolymorphicMatcher< Impl > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

 PolymorphicMatcher (const Impl &an_impl)
 
Impl & mutable_impl ()
 
const Impl & impl () const
 
template<typename T >
 operator Matcher< T > () const
 

Detailed Description

template<class Impl>
class testing::PolymorphicMatcher< Impl >

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

Constructor & Destructor Documentation

◆ PolymorphicMatcher()

template<class Impl >
testing::PolymorphicMatcher< Impl >::PolymorphicMatcher ( const Impl &  an_impl)
inlineexplicit

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

432 : impl_(an_impl) {}

Member Function Documentation

◆ impl()

template<class Impl >
const Impl& testing::PolymorphicMatcher< Impl >::impl ( ) const
inline

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

440 { return impl_; }

◆ mutable_impl()

template<class Impl >
Impl& testing::PolymorphicMatcher< Impl >::mutable_impl ( )
inline

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

436 { return impl_; }

◆ operator Matcher< T >()

template<class Impl >
template<typename T >
testing::PolymorphicMatcher< Impl >::operator Matcher< T > ( ) const
inline

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

443  {
444  return Matcher<T>(new MonomorphicImpl<T>(impl_));
445  }

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