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

#include <gmock-matchers.h>

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ ElementsAreMatcher()

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

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

3844: matchers_(args) {}

Member Function Documentation

◆ operator Matcher< Container >()

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

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

3847 {
3849 !IsHashTable<GTEST_REMOVE_REFERENCE_AND_CONST_(Container)>::value ||
3850 ::testing::tuple_size<MatcherTuple>::value < 2,
3851 use_UnorderedElementsAre_with_hash_tables);
3852
3853 typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3855 typedef typename View::value_type Element;
3856 typedef ::std::vector<Matcher<const Element&> > MatcherVec;
3857 MatcherVec matchers;
3858 matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3859 TransformTupleValues(CastAndAppendTransform<const Element&>(), matchers_,
3860 ::std::back_inserter(matchers));
3861 return MakeMatcher(new ElementsAreMatcherImpl<Container>(
3862 matchers.begin(), matchers.end()));
3863 }
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
#define GTEST_COMPILE_ASSERT_(expr, msg)
OutIter TransformTupleValues(Func f, const Tuple &t, OutIter out)
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
#define value
Definition pkcs11.h:157
Here is the call graph for this function:

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