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

#include <gmock-matchers.h>

Inheritance diagram for testing::internal::MatcherInterfaceAdapter< T >:
Collaboration diagram for testing::internal::MatcherInterfaceAdapter< T >:

Public Member Functions

 MatcherInterfaceAdapter (const MatcherInterface< T > *impl)
 
virtual ~MatcherInterfaceAdapter ()
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual bool MatchAndExplain (const T &x, MatchResultListener *listener) const
 
- Public Member Functions inherited from testing::MatcherInterface< const T & >
virtual bool MatchAndExplain (T x, MatchResultListener *listener) const=0
 
- Public Member Functions inherited from testing::MatcherDescriberInterface
virtual ~MatcherDescriberInterface ()
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ MatcherInterfaceAdapter()

template<typename T >
testing::internal::MatcherInterfaceAdapter< T >::MatcherInterfaceAdapter ( const MatcherInterface< T > * impl)
inlineexplicit

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

189 : impl_(impl) {}

◆ ~MatcherInterfaceAdapter()

template<typename T >
virtual testing::internal::MatcherInterfaceAdapter< T >::~MatcherInterfaceAdapter ( )
inlinevirtual

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

190{ delete impl_; }

Member Function Documentation

◆ DescribeNegationTo()

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

Reimplemented from testing::MatcherDescriberInterface.

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

194 {
195 impl_->DescribeNegationTo(os);
196 }
os_t os

◆ DescribeTo()

template<typename T >
virtual void testing::internal::MatcherInterfaceAdapter< T >::DescribeTo ( ::std::ostream * os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

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

192{ impl_->DescribeTo(os); }

◆ MatchAndExplain()

template<typename T >
virtual bool testing::internal::MatcherInterfaceAdapter< T >::MatchAndExplain ( const T & x,
MatchResultListener * listener ) const
inlinevirtual

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

199 {
200 return impl_->MatchAndExplain(x, listener);
201 }

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