Electroneum
testing::internal::MatcherBase< T > Class Template Reference

#include <gmock-matchers.h>

Inheritance diagram for testing::internal::MatcherBase< T >:

Public Member Functions

bool MatchAndExplain (T x, MatchResultListener *listener) const
 
bool Matches (T x) const
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 
void ExplainMatchResultTo (T x, ::std::ostream *os) const
 
const MatcherDescriberInterfaceGetDescriber () const
 

Protected Member Functions

 MatcherBase ()
 
 MatcherBase (const MatcherInterface< T > *impl)
 
virtual ~MatcherBase ()
 

Detailed Description

template<typename T>
class testing::internal::MatcherBase< T >

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

Constructor & Destructor Documentation

◆ MatcherBase() [1/2]

template<typename T>
testing::internal::MatcherBase< T >::MatcherBase ( )
inlineprotected

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

288 {}

◆ MatcherBase() [2/2]

template<typename T>
testing::internal::MatcherBase< T >::MatcherBase ( const MatcherInterface< T > *  impl)
inlineexplicitprotected

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

292  : impl_(impl) {}

◆ ~MatcherBase()

template<typename T>
virtual testing::internal::MatcherBase< T >::~MatcherBase ( )
inlineprotectedvirtual

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

294 {}

Member Function Documentation

◆ DescribeNegationTo()

template<typename T>
void testing::internal::MatcherBase< T >::DescribeNegationTo ( ::std::ostream *  os) const
inline

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

270  {
271  impl_->DescribeNegationTo(os);
272  }
Here is the caller graph for this function:

◆ DescribeTo()

template<typename T>
void testing::internal::MatcherBase< T >::DescribeTo ( ::std::ostream *  os) const
inline

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

267 { impl_->DescribeTo(os); }
Here is the caller graph for this function:

◆ ExplainMatchResultTo()

template<typename T>
void testing::internal::MatcherBase< T >::ExplainMatchResultTo ( T  x,
::std::ostream *  os 
) const
inline

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

275  {
276  StreamMatchResultListener listener(os);
277  MatchAndExplain(x, &listener);
278  }
bool MatchAndExplain(T x, MatchResultListener *listener) const

◆ GetDescriber()

template<typename T>
const MatcherDescriberInterface* testing::internal::MatcherBase< T >::GetDescriber ( ) const
inline

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

283  {
284  return impl_.get();
285  }

◆ MatchAndExplain()

template<typename T>
bool testing::internal::MatcherBase< T >::MatchAndExplain ( T  x,
MatchResultListener listener 
) const
inline

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

256  {
257  return impl_->MatchAndExplain(x, listener);
258  }
Here is the caller graph for this function:

◆ Matches()

template<typename T>
bool testing::internal::MatcherBase< T >::Matches ( T  x) const
inline

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

261  {
262  DummyMatchResultListener dummy;
263  return MatchAndExplain(x, &dummy);
264  }
bool MatchAndExplain(T x, MatchResultListener *listener) const
Here is the caller graph for this function:

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