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

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (ElementsAreMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (ElementsAreMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (ElementsAreMatcher)
 

Private Attributes

const MatcherTuple matchers_
 

Detailed Description

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

3479 : matchers_(args) {}

Member Function Documentation

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

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

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

3482  {
3483  typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3484  typedef typename internal::StlContainerView<RawContainer>::type View;
3485  typedef typename View::value_type Element;
3486  typedef ::std::vector<Matcher<const Element&> > MatcherVec;
3487  MatcherVec matchers;
3488  matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3489  TransformTupleValues(CastAndAppendTransform<const Element&>(), matchers_,
3490  ::std::back_inserter(matchers));
3491  return MakeMatcher(new ElementsAreMatcherImpl<Container>(
3492  matchers.begin(), matchers.end()));
3493  }
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::ElementsAreMatcher< MatcherTuple >::operator Matcher< Container > ( ) const
inline

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

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

3482  {
3483  typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3484  typedef typename internal::StlContainerView<RawContainer>::type View;
3485  typedef typename View::value_type Element;
3486  typedef ::std::vector<Matcher<const Element&> > MatcherVec;
3487  MatcherVec matchers;
3488  matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3489  TransformTupleValues(CastAndAppendTransform<const Element&>(), matchers_,
3490  ::std::back_inserter(matchers));
3491  return MakeMatcher(new ElementsAreMatcherImpl<Container>(
3492  matchers.begin(), matchers.end()));
3493  }
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::ElementsAreMatcher< MatcherTuple >::operator Matcher< Container > ( ) const
inline

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

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

3482  {
3483  typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3484  typedef typename internal::StlContainerView<RawContainer>::type View;
3485  typedef typename View::value_type Element;
3486  typedef ::std::vector<Matcher<const Element&> > MatcherVec;
3487  MatcherVec matchers;
3488  matchers.reserve(::testing::tuple_size<MatcherTuple>::value);
3489  TransformTupleValues(CastAndAppendTransform<const Element&>(), matchers_,
3490  ::std::back_inserter(matchers));
3491  return MakeMatcher(new ElementsAreMatcherImpl<Container>(
3492  matchers.begin(), matchers.end()));
3493  }
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::ElementsAreMatcher< MatcherTuple >::matchers_
private

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


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