Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 > Class Template Reference

#include <gmock-generated-matchers.h>

Inheritance diagram for testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >:
Collaboration diagram for testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >:

Public Types

typedef internal::TupleFields< RawArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::type SelectedArgs
 
typedef Matcher< const SelectedArgs & > MonomorphicInnerMatcher
 

Public Member Functions

typedef GTEST_REMOVE_REFERENCE_AND_CONST_ (ArgsTuple) RawArgsTuple
 
template<typename InnerMatcher >
 ArgsMatcherImpl (const InnerMatcher &inner_matcher)
 
virtual bool MatchAndExplain (ArgsTuple args, MatchResultListener *listener) const
 
virtual void DescribeTo (::std::ostream *os) const
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
- Public Member Functions inherited from testing::MatcherInterface< ArgsTuple >
- Public Member Functions inherited from testing::MatcherDescriberInterface
virtual ~MatcherDescriberInterface ()
 

Detailed Description

template<class ArgsTuple, int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
class testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >

Definition at line 211 of file gmock-generated-matchers.h.

Member Typedef Documentation

◆ MonomorphicInnerMatcher

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
Matcher<const SelectedArgs&> testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::MonomorphicInnerMatcher

Definition at line 217 of file gmock-generated-matchers.h.

◆ SelectedArgs

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
internal::TupleFields<RawArgsTuple,k0,k1,k2,k3,k4,k5,k6,k7,k8,k9>::type testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::SelectedArgs

Definition at line 216 of file gmock-generated-matchers.h.

Constructor & Destructor Documentation

◆ ArgsMatcherImpl()

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
template<typename InnerMatcher >
testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::ArgsMatcherImpl ( const InnerMatcher & inner_matcher)
inlineexplicit

Definition at line 220 of file gmock-generated-matchers.h.

221 : inner_matcher_(SafeMatcherCast<const SelectedArgs&>(inner_matcher)) {}
Matcher< T > SafeMatcherCast(const M &polymorphic_matcher)

Member Function Documentation

◆ DescribeNegationTo()

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
virtual void testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::DescribeNegationTo ( ::std::ostream * os) const
inlinevirtual

Reimplemented from testing::MatcherDescriberInterface.

Definition at line 245 of file gmock-generated-matchers.h.

245 {
246 *os << "are a tuple ";
247 PrintIndices(os);
248 inner_matcher_.DescribeNegationTo(os);
249 }
void DescribeNegationTo(::std::ostream *os) const
os_t os
Here is the call graph for this function:

◆ DescribeTo()

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
virtual void testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::DescribeTo ( ::std::ostream * os) const
inlinevirtual

Implements testing::MatcherDescriberInterface.

Definition at line 239 of file gmock-generated-matchers.h.

239 {
240 *os << "are a tuple ";
241 PrintIndices(os);
242 inner_matcher_.DescribeTo(os);
243 }
void DescribeTo(::std::ostream *os) const
Here is the call graph for this function:

◆ GTEST_REMOVE_REFERENCE_AND_CONST_()

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
typedef testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::GTEST_REMOVE_REFERENCE_AND_CONST_ ( ArgsTuple )

◆ MatchAndExplain()

template<class ArgsTuple , int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, int k9 = -1>
virtual bool testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::MatchAndExplain ( ArgsTuple args,
MatchResultListener * listener ) const
inlinevirtual

Implements testing::MatcherInterface< ArgsTuple >.

Definition at line 223 of file gmock-generated-matchers.h.

224 {
225 const SelectedArgs& selected_args = GetSelectedArgs(args);
226 if (!listener->IsInterested())
227 return inner_matcher_.Matches(selected_args);
228
229 PrintIndices(listener->stream());
230 *listener << "are " << PrintToString(selected_args);
231
232 StringMatchResultListener inner_listener;
233 const bool match = inner_matcher_.MatchAndExplain(selected_args,
234 &inner_listener);
235 PrintIfNotEmpty(inner_listener.str(), listener->stream());
236 return match;
237 }
internal::TupleFields< RawArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::type SelectedArgs
bool MatchAndExplain(GTEST_REFERENCE_TO_CONST_(T) x, MatchResultListener *listener) const
bool Matches(GTEST_REFERENCE_TO_CONST_(T) x) const
void PrintIfNotEmpty(const std::string &explanation, ::std::ostream *os)
::std::string PrintToString(const T &value)
Here is the call graph for this function:

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