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

#include <gmock-matchers.h>

Inheritance diagram for testing::internal::MatcherBase< T >:
testing::Matcher< const ::std::vector< LhsValue > & > testing::Matcher< const ::std::vector< LhsValue > & > testing::Matcher< const ::std::vector< LhsValue > & > testing::Matcher< const ArgTuple & > testing::Matcher< const ArgTuple & > testing::Matcher< const ArgTuple & > testing::Matcher< const ArgumentTuple & > testing::Matcher< const ArgumentTuple & > testing::Matcher< const ArgumentTuple & > testing::Matcher< const Element & > testing::Matcher< const Element & > testing::Matcher< const Element & > testing::Matcher< const FieldType & > testing::Matcher< const FieldType & > testing::Matcher< const FieldType & > testing::Matcher< const FirstType & > testing::Matcher< const FirstType & > testing::Matcher< const FirstType & > testing::Matcher< const KeyType & > testing::Matcher< const KeyType & > testing::Matcher< const KeyType & > testing::Matcher< const Pointee & > testing::Matcher< const Pointee & > testing::Matcher< const Pointee & > testing::Matcher< const SecondType & > testing::Matcher< const SecondType & > testing::Matcher< const SecondType & > testing::Matcher< DistanceType > testing::Matcher< DistanceType > testing::Matcher< DistanceType > testing::Matcher< InnerMatcherArg > testing::Matcher< InnerMatcherArg > testing::Matcher< InnerMatcherArg > testing::Matcher< RefToConstProperty > testing::Matcher< RefToConstProperty > testing::Matcher< RefToConstProperty > testing::Matcher< ResultType > testing::Matcher< ResultType > testing::Matcher< ResultType > testing::Matcher< SizeType > testing::Matcher< SizeType > testing::Matcher< SizeType > testing::Matcher< testing::internal::To & > testing::Matcher< testing::internal::To & > testing::Matcher< testing::internal::To & > testing::Matcher< To > testing::Matcher< To > testing::Matcher< To > testing::Matcher< U > testing::Matcher< U > testing::Matcher< U > testing::Matcher< T > testing::Matcher< T > testing::Matcher< 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
 
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
 
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 ()
 
 MatcherBase ()
 
 MatcherBase (const MatcherInterface< T > *impl)
 
virtual ~MatcherBase ()
 
 MatcherBase ()
 
 MatcherBase (const MatcherInterface< T > *impl)
 
virtual ~MatcherBase ()
 

Private Attributes

::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
 

Detailed Description

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

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

Constructor & Destructor Documentation

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

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

288 {}
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) {}
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
template<typename T>
virtual testing::internal::MatcherBase< T >::~MatcherBase ( )
inlineprotectedvirtual

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

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

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

288 {}
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) {}
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
template<typename T>
virtual testing::internal::MatcherBase< T >::~MatcherBase ( )
inlineprotectedvirtual

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

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

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

288 {}
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) {}
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
template<typename T>
virtual testing::internal::MatcherBase< T >::~MatcherBase ( )
inlineprotectedvirtual

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

294 {}

Member Function Documentation

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

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

Referenced by testing::gmock_matchers_test::DescribeNegation(), and testing::gmock_matchers_test::GreaterThanMatcher::MatchAndExplain().

270  {
271  impl_->DescribeNegationTo(os);
272  }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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); }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
template<typename T>
void testing::internal::MatcherBase< T >::DescribeTo ( ::std::ostream *  os) const
inline
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); }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
Definition: InvokeTest.cpp:58
bool MatchAndExplain(T x, MatchResultListener *listener) const
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  }
Definition: InvokeTest.cpp:58
bool MatchAndExplain(T x, MatchResultListener *listener) const
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  }
Definition: InvokeTest.cpp:58
bool MatchAndExplain(T x, MatchResultListener *listener) const
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  }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
Definition: InvokeTest.cpp:58
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
Definition: InvokeTest.cpp:58
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
template<typename T>
bool testing::internal::MatcherBase< T >::MatchAndExplain ( T  x,
MatchResultListener listener 
) const
inline

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

Referenced by testing::SafeMatcherCastImpl< T >::Cast(), testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo(), testing::internal::MatchPrintAndExplain(), and testing::gmock_matchers_test::TEST().

256  {
257  return impl_->MatchAndExplain(x, listener);
258  }
Definition: InvokeTest.cpp:58
::testing::internal::linked_ptr< const MatcherInterface< T > > impl_
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  }
Definition: InvokeTest.cpp:58
bool MatchAndExplain(T x, MatchResultListener *listener) const
void dummy()
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  }
Definition: InvokeTest.cpp:58
bool MatchAndExplain(T x, MatchResultListener *listener) const
void dummy()
template<typename T>
bool testing::internal::MatcherBase< T >::Matches ( T  x) const
inline

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

Referenced by testing::gmock_matchers_test::AllOfMatches(), testing::gmock_matchers_test::AnyOfMatches(), testing::gmock_matchers_test::AStruct::AStruct(), testing::SafeMatcherCastImpl< T >::Cast(), testing::gmock_matchers_test::ConvertibleFromAny::ConvertibleFromAny(), testing::gmock_matchers_test::Derived::Derived(), testing::gmock_matchers_test::ReferencesBarOrIsZeroImpl::DescribeNegationTo(), testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo(), testing::gmock_matchers_test::IntReferenceWrapper::IntReferenceWrapper(), testing::gmock_matchers_test::Type< T >::IsTypeOf(), testing::gmock_matchers_test::DerivedClass::k(), testing::gmock_matchers_test::PolymorphicIsEvenImpl::MatchAndExplain(), testing::gmock_matchers_test::MATCHER_P(), testing::internal::MatchPrintAndExplain(), testing::gmock_matchers_test::ConvertibleToBool::operator bool(), testing::gmock_matchers_test::IsGreaterThan::operator()(), testing::gmock_matchers_test::Functor::operator()(), testing::gmock_matchers_test::PolymorphicFunctor::operator()(), testing::gmock_matchers_test::ReferencingFunctor::operator()(), testing::gmock_matchers_test::ConstPropagatingPtr< T >::operator*(), testing::gmock_matchers_test::NotCopyable::operator>=(), testing::gmock_matchers_test::TEST(), TEST(), testing::gmock_matchers_test::TEST_F(), testing::gmock_matchers_test::FloatingPointTest< RawType >::TestMatches(), testing::gmock_matchers_test::FloatingPointNearTest< RawType >::TestNearMatches(), testing::gmock_matchers_test::Unprintable::Unprintable(), and testing::gmock_matchers_test::IntValue::value().

261  {
262  DummyMatchResultListener dummy;
263  return MatchAndExplain(x, &dummy);
264  }
Definition: InvokeTest.cpp:58
bool MatchAndExplain(T x, MatchResultListener *listener) const
void dummy()

Member Data Documentation

template<typename T>
testing::internal::linked_ptr< const MatcherInterface< T > > testing::internal::MatcherBase< T >::impl_
private

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


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