proxygen
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer > Class Template Reference
Inheritance diagram for testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >:
testing::MatcherInterface< Pointer > testing::MatcherInterface< Pointer > testing::MatcherInterface< Pointer > testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface

Public Types

typedef PointeeOf< GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(Pointer))>::type Pointee
 
typedef PointeeOf< GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(Pointer))>::type Pointee
 
typedef PointeeOf< GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(Pointer))>::type Pointee
 

Public Member Functions

 Impl (const InnerMatcher &matcher)
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (Pointer pointer, MatchResultListener *listener) const
 
 Impl (const InnerMatcher &matcher)
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (Pointer pointer, MatchResultListener *listener) const
 
 Impl (const InnerMatcher &matcher)
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (Pointer pointer, 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

const Matcher< const Pointee & > matcher_
 

Detailed Description

template<typename InnerMatcher>
template<typename Pointer>
class testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >

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

Member Typedef Documentation

template<typename InnerMatcher >
template<typename Pointer >
typedef PointeeOf<GTEST_REMOVE_CONST_( GTEST_REMOVE_REFERENCE_(Pointer))>::type testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::Pointee

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

template<typename InnerMatcher >
template<typename Pointer >
typedef PointeeOf<GTEST_REMOVE_CONST_( GTEST_REMOVE_REFERENCE_(Pointer))>::type testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::Pointee

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

template<typename InnerMatcher >
template<typename Pointer >
typedef PointeeOf<GTEST_REMOVE_CONST_( GTEST_REMOVE_REFERENCE_(Pointer))>::type testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::Pointee

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

Constructor & Destructor Documentation

template<typename InnerMatcher >
template<typename Pointer >
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::Impl ( const InnerMatcher &  matcher)
inlineexplicit

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

2069  : matcher_(MatcherCast<const Pointee&>(matcher)) {}
const Matcher< const Pointee & > matcher_
template<typename InnerMatcher >
template<typename Pointer >
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::Impl ( const InnerMatcher &  matcher)
inlineexplicit

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

2069  : matcher_(MatcherCast<const Pointee&>(matcher)) {}
const Matcher< const Pointee & > matcher_
template<typename InnerMatcher >
template<typename Pointer >
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::Impl ( const InnerMatcher &  matcher)
inlineexplicit

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

2069  : matcher_(MatcherCast<const Pointee&>(matcher)) {}
const Matcher< const Pointee & > matcher_

Member Function Documentation

template<typename InnerMatcher >
template<typename Pointer >
virtual void testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::DescribeNegationTo ( ::std::ostream *  os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

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

2076  {
2077  *os << "does not point to a value that ";
2078  matcher_.DescribeTo(os);
2079  }
const Matcher< const Pointee & > matcher_
void DescribeTo(::std::ostream *os) const
template<typename InnerMatcher >
template<typename Pointer >
virtual void testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::DescribeNegationTo ( ::std::ostream *  os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

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

2076  {
2077  *os << "does not point to a value that ";
2078  matcher_.DescribeTo(os);
2079  }
const Matcher< const Pointee & > matcher_
void DescribeTo(::std::ostream *os) const
template<typename InnerMatcher >
template<typename Pointer >
virtual void testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::DescribeNegationTo ( ::std::ostream *  os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

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

2076  {
2077  *os << "does not point to a value that ";
2078  matcher_.DescribeTo(os);
2079  }
const Matcher< const Pointee & > matcher_
void DescribeTo(::std::ostream *os) const
template<typename InnerMatcher >
template<typename Pointer >
virtual void testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::DescribeTo ( ::std::ostream *  os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

2071  {
2072  *os << "points to a value that ";
2073  matcher_.DescribeTo(os);
2074  }
const Matcher< const Pointee & > matcher_
void DescribeTo(::std::ostream *os) const
template<typename InnerMatcher >
template<typename Pointer >
virtual void testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::DescribeTo ( ::std::ostream *  os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

2071  {
2072  *os << "points to a value that ";
2073  matcher_.DescribeTo(os);
2074  }
const Matcher< const Pointee & > matcher_
void DescribeTo(::std::ostream *os) const
template<typename InnerMatcher >
template<typename Pointer >
virtual void testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::DescribeTo ( ::std::ostream *  os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

2071  {
2072  *os << "points to a value that ";
2073  matcher_.DescribeTo(os);
2074  }
const Matcher< const Pointee & > matcher_
void DescribeTo(::std::ostream *os) const
template<typename InnerMatcher >
template<typename Pointer >
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::GTEST_DISALLOW_ASSIGN_ ( Impl< Pointer >  )
private
template<typename InnerMatcher >
template<typename Pointer >
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::GTEST_DISALLOW_ASSIGN_ ( Impl< Pointer >  )
private
template<typename InnerMatcher >
template<typename Pointer >
testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::GTEST_DISALLOW_ASSIGN_ ( Impl< Pointer >  )
private
template<typename InnerMatcher >
template<typename Pointer >
virtual bool testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::MatchAndExplain ( Pointer  pointer,
MatchResultListener listener 
) const
inlinevirtual

Implements testing::MatcherInterface< Pointer >.

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

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

2082  {
2083  if (GetRawPointer(pointer) == NULL)
2084  return false;
2085 
2086  *listener << "which points to ";
2087  return MatchPrintAndExplain(*pointer, matcher_, listener);
2088  }
const Matcher< const Pointee & > matcher_
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
const Pointer::element_type * GetRawPointer(const Pointer &p)
template<typename InnerMatcher >
template<typename Pointer >
virtual bool testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::MatchAndExplain ( Pointer  pointer,
MatchResultListener listener 
) const
inlinevirtual

Implements testing::MatcherInterface< Pointer >.

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

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

2082  {
2083  if (GetRawPointer(pointer) == NULL)
2084  return false;
2085 
2086  *listener << "which points to ";
2087  return MatchPrintAndExplain(*pointer, matcher_, listener);
2088  }
const Matcher< const Pointee & > matcher_
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
const Pointer::element_type * GetRawPointer(const Pointer &p)
template<typename InnerMatcher >
template<typename Pointer >
virtual bool testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::MatchAndExplain ( Pointer  pointer,
MatchResultListener listener 
) const
inlinevirtual

Implements testing::MatcherInterface< Pointer >.

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

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

2082  {
2083  if (GetRawPointer(pointer) == NULL)
2084  return false;
2085 
2086  *listener << "which points to ";
2087  return MatchPrintAndExplain(*pointer, matcher_, listener);
2088  }
const Matcher< const Pointee & > matcher_
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
const Pointer::element_type * GetRawPointer(const Pointer &p)

Member Data Documentation

template<typename InnerMatcher >
template<typename Pointer >
const Matcher< const Pointee & > testing::internal::PointeeMatcher< InnerMatcher >::Impl< Pointer >::matcher_
private

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


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