Electroneum
testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer > Class Template Reference

#include <gmock-matchers.h>

Classes

class  Impl
 

Public Types

typedef internal::StlContainerView< RhsContainer > RhsView
 
typedef RhsView::type RhsStlContainer
 
typedef RhsStlContainer::value_type RhsValue
 

Public Member Functions

 PointwiseMatcher (const TupleMatcher &tuple_matcher, const RhsContainer &rhs)
 
template<typename LhsContainer >
 operator Matcher< LhsContainer > () const
 

Detailed Description

template<typename TupleMatcher, typename RhsContainer>
class testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >

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

Member Typedef Documentation

◆ RhsStlContainer

template<typename TupleMatcher, typename RhsContainer>
typedef RhsView::type testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::RhsStlContainer

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

◆ RhsValue

template<typename TupleMatcher, typename RhsContainer>
typedef RhsStlContainer::value_type testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::RhsValue

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

◆ RhsView

template<typename TupleMatcher, typename RhsContainer>
typedef internal::StlContainerView<RhsContainer> testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::RhsView

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

Constructor & Destructor Documentation

◆ PointwiseMatcher()

template<typename TupleMatcher, typename RhsContainer>
testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::PointwiseMatcher ( const TupleMatcher &  tuple_matcher,
const RhsContainer &  rhs 
)
inline

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

2702  : tuple_matcher_(tuple_matcher), rhs_(RhsView::Copy(rhs)) {
2703  // Makes sure the user doesn't instantiate this class template
2704  // with a const or reference type.
2705  (void)testing::StaticAssertTypeEq<RhsContainer,
2706  GTEST_REMOVE_REFERENCE_AND_CONST_(RhsContainer)>();
2707  }
static type Copy(const RawContainer &container)
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
bool StaticAssertTypeEq()
Definition: gtest.h:2150
Here is the call graph for this function:

Member Function Documentation

◆ operator Matcher< LhsContainer >()

template<typename TupleMatcher, typename RhsContainer>
template<typename LhsContainer >
testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::operator Matcher< LhsContainer > ( ) const
inline

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

2710  {
2711  return MakeMatcher(new Impl<LhsContainer>(tuple_matcher_, rhs_));
2712  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
Here is the call graph for this function:

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