Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::MatcherBase< T > Class Template Reference

#include <gmock-matchers.h>

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

Public Member Functions

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

Protected Member Functions

 MatcherBase ()
 
 MatcherBase (const MatcherInterface< GTEST_REFERENCE_TO_CONST_(T)> *impl)
 
template<typename U >
 MatcherBase (const MatcherInterface< U > *impl, typename internal::EnableIf< !internal::IsSame< U, GTEST_REFERENCE_TO_CONST_(U)>::value >::type *=NULL)
 
virtual ~MatcherBase ()
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ MatcherBase() [1/3]

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

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

318{}

◆ MatcherBase() [2/3]

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

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

323 : impl_(impl) {}

◆ MatcherBase() [3/3]

template<typename T >
template<typename U >
testing::internal::MatcherBase< T >::MatcherBase ( const MatcherInterface< U > * impl,
typename internal::EnableIf< !internal::IsSame< U, GTEST_REFERENCE_TO_CONST_(U)>::value >::type * = NULL )
inlineexplicitprotected

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

331 : impl_(new internal::MatcherInterfaceAdapter<U>(impl)) {}

◆ ~MatcherBase()

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

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

333{}

Member Function Documentation

◆ DescribeNegationTo()

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

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

299 {
300 impl_->DescribeNegationTo(os);
301 }
os_t os
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 296 of file gmock-matchers.h.

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

◆ ExplainMatchResultTo()

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

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

305 {
306 StreamMatchResultListener listener(os);
307 MatchAndExplain(x, &listener);
308 }
bool MatchAndExplain(GTEST_REFERENCE_TO_CONST_(T) x, MatchResultListener *listener) const
Here is the call graph for this function:

◆ GetDescriber()

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

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

313 {
314 return impl_.get();
315 }

◆ MatchAndExplain()

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

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

285 {
286 return impl_->MatchAndExplain(x, listener);
287 }
Here is the caller graph for this function:

◆ Matches()

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

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

290 {
291 DummyMatchResultListener dummy;
292 return MatchAndExplain(x, &dummy);
293 }
constexpr enabler dummy
An instance to use in EnableIf.
Definition CLI11.hpp:856
Here is the call graph for this function:

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