Electroneum
testing::internal::UnorderedElementsAreMatcher< MatcherTuple > Class Template Reference

#include <gmock-matchers.h>

Public Member Functions

 UnorderedElementsAreMatcher (const MatcherTuple &args)
 
template<typename Container >
 operator Matcher< Container > () const
 

Detailed Description

template<typename MatcherTuple>
class testing::internal::UnorderedElementsAreMatcher< MatcherTuple >

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

Constructor & Destructor Documentation

◆ UnorderedElementsAreMatcher()

template<typename MatcherTuple >
testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::UnorderedElementsAreMatcher ( const MatcherTuple args)
inlineexplicit

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

3454  : matchers_(args) {}

Member Function Documentation

◆ operator Matcher< Container >()

template<typename MatcherTuple >
template<typename Container >
testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::operator Matcher< Container > ( ) const
inline

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

3457  {
3458  typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3459  typedef typename internal::StlContainerView<RawContainer>::type View;
3460  typedef typename View::value_type Element;
3461  typedef ::std::vector<Matcher<const Element&> > MatcherVec;
3462  MatcherVec matchers;
3463  matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3464  TransformTupleValues(CastAndAppendTransform<const Element&>(), matchers_,
3465  ::std::back_inserter(matchers));
3466  return MakeMatcher(new UnorderedElementsAreMatcherImpl<Container>(
3467  matchers.begin(), matchers.end()));
3468  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
OutIter TransformTupleValues(Func f, const Tuple &t, OutIter out)
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
Here is the call graph for this function:

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