Lines Matching defs:Container

2405   template <typename Container>
2406 operator Matcher<Container>() const {
2407 return MakeMatcher(new Impl<Container>(size_matcher_));
2410 template <typename Container>
2411 class Impl : public MatcherInterface<Container> {
2414 GTEST_REMOVE_REFERENCE_AND_CONST_(Container)> ContainerView;
2428 virtual bool MatchAndExplain(Container container,
2457 template <typename Container>
2458 operator Matcher<Container>() const {
2459 return MakeMatcher(new Impl<Container>(distance_matcher_));
2462 template <typename Container>
2463 class Impl : public MatcherInterface<Container> {
2466 GTEST_REMOVE_REFERENCE_AND_CONST_(Container)> ContainerView;
2482 virtual bool MatchAndExplain(Container container,
2520 template <typename Container>
2523 typedef internal::StlContainerView<Container> View;
2529 explicit ContainerEqMatcher(const Container& expected)
2533 (void)testing::StaticAssertTypeEq<Container,
2534 GTEST_REMOVE_REFERENCE_AND_CONST_(Container)>();
2799 template <typename Container>
2800 class QuantifierMatcherImpl : public MatcherInterface<Container> {
2802 typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
2817 Container container,
2842 // Implements Contains(element_matcher) for the given argument type Container.
2844 template <typename Container>
2845 class ContainsMatcherImpl : public QuantifierMatcherImpl<Container> {
2849 : QuantifierMatcherImpl<Container>(inner_matcher) {}
2862 virtual bool MatchAndExplain(Container container,
2871 // Implements Each(element_matcher) for the given argument type Container.
2873 template <typename Container>
2874 class EachMatcherImpl : public QuantifierMatcherImpl<Container> {
2878 : QuantifierMatcherImpl<Container>(inner_matcher) {}
2891 virtual bool MatchAndExplain(Container container,
2906 template <typename Container>
2907 operator Matcher<Container>() const {
2908 return MakeMatcher(new ContainsMatcherImpl<Container>(inner_matcher_));
2923 template <typename Container>
2924 operator Matcher<Container>() const {
2925 return MakeMatcher(new EachMatcherImpl<Container>(inner_matcher_));
3107 template <typename Container>
3108 class ElementsAreMatcherImpl : public MatcherInterface<Container> {
3110 typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3161 virtual bool MatchAndExplain(Container container,
3344 template <typename Container>
3346 : public MatcherInterface<Container>,
3349 typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3376 virtual bool MatchAndExplain(Container container,
3456 template <typename Container>
3457 operator Matcher<Container>() const {
3458 typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3466 return MakeMatcher(new UnorderedElementsAreMatcherImpl<Container>(
3481 template <typename Container>
3482 operator Matcher<Container>() const {
3483 typedef GTEST_REMOVE_REFERENCE_AND_CONST_(Container) RawContainer;
3491 return MakeMatcher(new ElementsAreMatcherImpl<Container>(
3510 template <typename Container>
3511 operator Matcher<Container>() const {
3513 new UnorderedElementsAreMatcherImpl<Container>(matchers_.begin(),
3530 template <typename Container>
3531 operator Matcher<Container>() const {
3532 return MakeMatcher(new ElementsAreMatcherImpl<Container>(
3663 template <typename Container>
3664 inline internal::ElementsAreArrayMatcher<typename Container::value_type>
3665 ElementsAreArray(const Container& container) {
3705 template <typename Container>
3707 typename Container::value_type>
3708 UnorderedElementsAreArray(const Container& container) {
4147 template <typename Container>
4149 GTEST_REMOVE_CONST_(Container)> >
4150 ContainerEq(const Container& rhs) {
4152 // which causes Container to be a const type sometimes.
4153 typedef GTEST_REMOVE_CONST_(Container) RawContainer;
4184 template <typename TupleMatcher, typename Container>
4186 GTEST_REMOVE_CONST_(Container)>
4187 Pointwise(const TupleMatcher& tuple_matcher, const Container& rhs) {
4189 // which causes Container to be a const type sometimes (e.g. when
4191 typedef GTEST_REMOVE_CONST_(Container) RawContainer;