proxygen
testing::MatchResultListener Class Referenceabstract

#include <gmock-matchers.h>

Inheritance diagram for testing::MatchResultListener:
testing::internal::DummyMatchResultListener testing::internal::DummyMatchResultListener testing::internal::DummyMatchResultListener testing::internal::StreamMatchResultListener testing::internal::StreamMatchResultListener testing::internal::StreamMatchResultListener testing::StringMatchResultListener testing::StringMatchResultListener testing::StringMatchResultListener

Public Member Functions

 MatchResultListener (::std::ostream *os)
 
virtual ~MatchResultListener ()=0
 
template<typename T >
MatchResultListeneroperator<< (const T &x)
 
::std::ostream * stream ()
 
bool IsInterested () const
 
 MatchResultListener (::std::ostream *os)
 
virtual ~MatchResultListener ()=0
 
template<typename T >
MatchResultListeneroperator<< (const T &x)
 
::std::ostream * stream ()
 
bool IsInterested () const
 
 MatchResultListener (::std::ostream *os)
 
virtual ~MatchResultListener ()=0
 
template<typename T >
MatchResultListeneroperator<< (const T &x)
 
::std::ostream * stream ()
 
bool IsInterested () const
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (MatchResultListener)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (MatchResultListener)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (MatchResultListener)
 

Private Attributes

::std::ostream *const stream_
 

Detailed Description

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

Constructor & Destructor Documentation

testing::MatchResultListener::MatchResultListener ( ::std::ostream *  os)
inlineexplicit

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

References ~MatchResultListener().

85 : stream_(os) {}
::std::ostream *const stream_
testing::MatchResultListener::~MatchResultListener ( )
inlinepure virtual

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

Referenced by IsInterested(), and MatchResultListener().

112  {
113 }
testing::MatchResultListener::MatchResultListener ( ::std::ostream *  os)
inlineexplicit

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

References ~MatchResultListener().

85 : stream_(os) {}
::std::ostream *const stream_
virtual testing::MatchResultListener::~MatchResultListener ( )
pure virtual
testing::MatchResultListener::MatchResultListener ( ::std::ostream *  os)
inlineexplicit

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

References ~MatchResultListener().

85 : stream_(os) {}
::std::ostream *const stream_
virtual testing::MatchResultListener::~MatchResultListener ( )
pure virtual

Member Function Documentation

testing::MatchResultListener::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( MatchResultListener  )
private
testing::MatchResultListener::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( MatchResultListener  )
private
bool testing::MatchResultListener::IsInterested ( ) const
inline

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_(), stream_, and ~MatchResultListener().

104 { return stream_ != NULL; }
::std::ostream *const stream_
bool testing::MatchResultListener::IsInterested ( ) const
inline

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_(), stream_, and ~MatchResultListener().

104 { return stream_ != NULL; }
::std::ostream *const stream_
template<typename T >
MatchResultListener& testing::MatchResultListener::operator<< ( const T x)
inline

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

References stream_, and x.

91  {
92  if (stream_ != NULL)
93  *stream_ << x;
94  return *this;
95  }
const int x
::std::ostream *const stream_
template<typename T >
MatchResultListener& testing::MatchResultListener::operator<< ( const T x)
inline

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

References stream_, and x.

91  {
92  if (stream_ != NULL)
93  *stream_ << x;
94  return *this;
95  }
const int x
::std::ostream *const stream_
template<typename T >
MatchResultListener& testing::MatchResultListener::operator<< ( const T x)
inline

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

References stream_, and x.

91  {
92  if (stream_ != NULL)
93  *stream_ << x;
94  return *this;
95  }
const int x
::std::ostream *const stream_
::std::ostream* testing::MatchResultListener::stream ( )
inline

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

References stream_.

98 { return stream_; }
::std::ostream *const stream_
::std::ostream* testing::MatchResultListener::stream ( )
inline

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

References stream_.

98 { return stream_; }
::std::ostream *const stream_

Member Data Documentation

std::ostream *const testing::MatchResultListener::stream_
private

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

Referenced by IsInterested(), operator<<(), and stream().


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