proxygen
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
 
 UnorderedElementsAreMatcher (const MatcherTuple &args)
 
template<typename Container >
 operator Matcher< Container > () const
 
 UnorderedElementsAreMatcher (const MatcherTuple &args)
 
template<typename Container >
 operator Matcher< Container > () const
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (UnorderedElementsAreMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (UnorderedElementsAreMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (UnorderedElementsAreMatcher)
 

Private Attributes

const MatcherTuple matchers_
 

Detailed Description

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

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

Constructor & Destructor Documentation

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

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

3454  : matchers_(args) {}
template<typename MatcherTuple>
testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::UnorderedElementsAreMatcher ( const MatcherTuple args)
inlineexplicit

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

3454  : matchers_(args) {}
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

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

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

References GTEST_REMOVE_REFERENCE_AND_CONST_, testing::MakeMatcher(), testing::internal::TransformTupleValues(), and value.

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  }
PskType type
STL namespace.
auto begin(TestAdlIterable &instance)
Definition: ForeachTest.cpp:56
void BENCHFUN() reserve(int iters, int size)
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
Definition: Traits.h:588
static const char *const value
Definition: Conv.cpp:50
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
OutIter TransformTupleValues(Func f, const Tuple &t, OutIter out)
const
Definition: upload.py:398
template<typename MatcherTuple>
template<typename Container >
testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::operator Matcher< Container > ( ) const
inline

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

References GTEST_DISALLOW_ASSIGN_, GTEST_REMOVE_REFERENCE_AND_CONST_, testing::MakeMatcher(), testing::internal::TransformTupleValues(), and value.

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  }
PskType type
STL namespace.
auto begin(TestAdlIterable &instance)
Definition: ForeachTest.cpp:56
void BENCHFUN() reserve(int iters, int size)
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
Definition: Traits.h:588
static const char *const value
Definition: Conv.cpp:50
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
OutIter TransformTupleValues(Func f, const Tuple &t, OutIter out)
const
Definition: upload.py:398
template<typename MatcherTuple>
template<typename Container >
testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::operator Matcher< Container > ( ) const
inline

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

References GTEST_DISALLOW_ASSIGN_, GTEST_REMOVE_REFERENCE_AND_CONST_, testing::MakeMatcher(), testing::internal::TransformTupleValues(), and value.

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  }
PskType type
STL namespace.
auto begin(TestAdlIterable &instance)
Definition: ForeachTest.cpp:56
void BENCHFUN() reserve(int iters, int size)
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
Definition: Traits.h:588
static const char *const value
Definition: Conv.cpp:50
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T)
OutIter TransformTupleValues(Func f, const Tuple &t, OutIter out)
const
Definition: upload.py:398

Member Data Documentation

template<typename MatcherTuple>
const MatcherTuple testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::matchers_
private

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


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