proxygen
testing::internal::ResultOfMatcher< Callable >::Impl< T > Class Template Reference
Inheritance diagram for testing::internal::ResultOfMatcher< Callable >::Impl< T >:
testing::MatcherInterface< T > testing::MatcherInterface< T > testing::MatcherInterface< T > testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface

Public Member Functions

 Impl (CallableStorageType callable, const Matcher< ResultType > &matcher)
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (T obj, MatchResultListener *listener) const
 
 Impl (CallableStorageType callable, const Matcher< ResultType > &matcher)
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (T obj, MatchResultListener *listener) const
 
 Impl (CallableStorageType callable, const Matcher< ResultType > &matcher)
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (T obj, MatchResultListener *listener) const
 
- Public Member Functions inherited from testing::MatcherDescriberInterface
virtual ~MatcherDescriberInterface ()
 
virtual ~MatcherDescriberInterface ()
 
virtual ~MatcherDescriberInterface ()
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (Impl)
 
 GTEST_DISALLOW_ASSIGN_ (Impl)
 
 GTEST_DISALLOW_ASSIGN_ (Impl)
 

Private Attributes

CallableStorageType callable_
 
const Matcher< ResultTypematcher_
 

Detailed Description

template<typename Callable>
template<typename T>
class testing::internal::ResultOfMatcher< Callable >::Impl< T >

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

Constructor & Destructor Documentation

template<typename Callable>
template<typename T >
testing::internal::ResultOfMatcher< Callable >::Impl< T >::Impl ( CallableStorageType  callable,
const Matcher< ResultType > &  matcher 
)
inline

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

2358  : callable_(callable), matcher_(matcher) {}
const Matcher< ResultType > matcher_
template<typename Callable>
template<typename T >
testing::internal::ResultOfMatcher< Callable >::Impl< T >::Impl ( CallableStorageType  callable,
const Matcher< ResultType > &  matcher 
)
inline

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

2358  : callable_(callable), matcher_(matcher) {}
const Matcher< ResultType > matcher_
template<typename Callable>
template<typename T >
testing::internal::ResultOfMatcher< Callable >::Impl< T >::Impl ( CallableStorageType  callable,
const Matcher< ResultType > &  matcher 
)
inline

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

2358  : callable_(callable), matcher_(matcher) {}
const Matcher< ResultType > matcher_

Member Function Documentation

template<typename Callable>
template<typename T >
virtual void testing::internal::ResultOfMatcher< Callable >::Impl< T >::DescribeNegationTo ( ::std::ostream *  os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

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

2365  {
2366  *os << "is mapped by the given callable to a value that ";
2368  }
const Matcher< ResultType > matcher_
void DescribeNegationTo(::std::ostream *os) const
template<typename Callable>
template<typename T >
virtual void testing::internal::ResultOfMatcher< Callable >::Impl< T >::DescribeNegationTo ( ::std::ostream *  os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

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

2365  {
2366  *os << "is mapped by the given callable to a value that ";
2368  }
const Matcher< ResultType > matcher_
void DescribeNegationTo(::std::ostream *os) const
template<typename Callable>
template<typename T >
virtual void testing::internal::ResultOfMatcher< Callable >::Impl< T >::DescribeNegationTo ( ::std::ostream *  os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

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

2365  {
2366  *os << "is mapped by the given callable to a value that ";
2368  }
const Matcher< ResultType > matcher_
void DescribeNegationTo(::std::ostream *os) const
template<typename Callable>
template<typename T >
virtual void testing::internal::ResultOfMatcher< Callable >::Impl< T >::DescribeTo ( ::std::ostream *  os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

2360  {
2361  *os << "is mapped by the given callable to a value that ";
2362  matcher_.DescribeTo(os);
2363  }
const Matcher< ResultType > matcher_
void DescribeTo(::std::ostream *os) const
template<typename Callable>
template<typename T >
virtual void testing::internal::ResultOfMatcher< Callable >::Impl< T >::DescribeTo ( ::std::ostream *  os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

2360  {
2361  *os << "is mapped by the given callable to a value that ";
2362  matcher_.DescribeTo(os);
2363  }
const Matcher< ResultType > matcher_
void DescribeTo(::std::ostream *os) const
template<typename Callable>
template<typename T >
virtual void testing::internal::ResultOfMatcher< Callable >::Impl< T >::DescribeTo ( ::std::ostream *  os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

2360  {
2361  *os << "is mapped by the given callable to a value that ";
2362  matcher_.DescribeTo(os);
2363  }
const Matcher< ResultType > matcher_
void DescribeTo(::std::ostream *os) const
template<typename Callable>
template<typename T >
testing::internal::ResultOfMatcher< Callable >::Impl< T >::GTEST_DISALLOW_ASSIGN_ ( Impl< T )
private
template<typename Callable>
template<typename T >
testing::internal::ResultOfMatcher< Callable >::Impl< T >::GTEST_DISALLOW_ASSIGN_ ( Impl< T )
private
template<typename Callable>
template<typename T >
testing::internal::ResultOfMatcher< Callable >::Impl< T >::GTEST_DISALLOW_ASSIGN_ ( Impl< T )
private
template<typename Callable>
template<typename T >
virtual bool testing::internal::ResultOfMatcher< Callable >::Impl< T >::MatchAndExplain ( T  obj,
MatchResultListener listener 
) const
inlinevirtual

Implements testing::MatcherInterface< T >.

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

References testing::internal::MatchPrintAndExplain().

2370  {
2371  *listener << "which is mapped by the given callable to ";
2372  // Cannot pass the return value (for example, int) to
2373  // MatchPrintAndExplain, which takes a non-const reference as argument.
2374  ResultType result =
2375  CallableTraits<Callable>::template Invoke<T>(callable_, obj);
2376  return MatchPrintAndExplain(result, matcher_, listener);
2377  }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
const Matcher< ResultType > matcher_
CallableTraits< Callable >::ResultType ResultType
template<typename Callable>
template<typename T >
virtual bool testing::internal::ResultOfMatcher< Callable >::Impl< T >::MatchAndExplain ( T  obj,
MatchResultListener listener 
) const
inlinevirtual

Implements testing::MatcherInterface< T >.

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

References GTEST_DISALLOW_ASSIGN_, and testing::internal::MatchPrintAndExplain().

2370  {
2371  *listener << "which is mapped by the given callable to ";
2372  // Cannot pass the return value (for example, int) to
2373  // MatchPrintAndExplain, which takes a non-const reference as argument.
2374  ResultType result =
2375  CallableTraits<Callable>::template Invoke<T>(callable_, obj);
2376  return MatchPrintAndExplain(result, matcher_, listener);
2377  }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
const Matcher< ResultType > matcher_
CallableTraits< Callable >::ResultType ResultType
template<typename Callable>
template<typename T >
virtual bool testing::internal::ResultOfMatcher< Callable >::Impl< T >::MatchAndExplain ( T  obj,
MatchResultListener listener 
) const
inlinevirtual

Implements testing::MatcherInterface< T >.

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

References GTEST_DISALLOW_ASSIGN_, and testing::internal::MatchPrintAndExplain().

2370  {
2371  *listener << "which is mapped by the given callable to ";
2372  // Cannot pass the return value (for example, int) to
2373  // MatchPrintAndExplain, which takes a non-const reference as argument.
2374  ResultType result =
2375  CallableTraits<Callable>::template Invoke<T>(callable_, obj);
2376  return MatchPrintAndExplain(result, matcher_, listener);
2377  }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
const Matcher< ResultType > matcher_
CallableTraits< Callable >::ResultType ResultType

Member Data Documentation

template<typename Callable>
template<typename T >
CallableStorageType testing::internal::ResultOfMatcher< Callable >::Impl< T >::callable_
mutableprivate

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

template<typename Callable>
template<typename T >
const Matcher< ResultType > testing::internal::ResultOfMatcher< Callable >::Impl< T >::matcher_
private

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


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