Home | History | Annotate | Download | only in internal

Lines Matching defs:Iterator

37 #include <iterator>
73 // Used only for the purposes of iterator comparison
76 // Advances iterator to point to the next element
78 // for not calling Advance() on an iterator equal to
81 // Clones the iterator object. Used for implementing copy semantics
84 // Dereferences the current iterator and provides (read-only) access
86 // Current() on an iterator equal to BaseGenerator()->End().
89 // Determines whether the given iterator and other point to the same
97 // and implements the const forward iterator concept.
161 typedef ParamIterator<T> iterator;
171 iterator begin() const { return iterator(impl_->Begin()); }
172 iterator end() const { return iterator(impl_->End()); }
191 return new Iterator(this, begin_, 0, step_);
194 return new Iterator(this, end_, end_index_, step_);
198 class Iterator : public ParamIteratorInterface<T> {
200 Iterator(const ParamGeneratorInterface<T>* base, T value, int index,
203 virtual ~Iterator() {}
213 return new Iterator(*this);
218 // iterator is of the same type and we can downcast.
223 CheckedDowncastToActualType<const Iterator>(&other)->index_;
228 Iterator(const Iterator& other)
234 void operator=(const Iterator& other);
240 }; // class RangeGenerator::Iterator
257 // The index for the end() iterator. All the elements in the generated
258 // sequence are indexed (0-based) to aid iterator comparison.
276 return new Iterator(this, container_.begin());
279 return new Iterator(this, container_.end());
285 class Iterator : public ParamIteratorInterface<T> {
287 Iterator(const ParamGeneratorInterface<T>* base,
288 typename ContainerType::const_iterator iterator)
289 : base_(base), iterator_(iterator) {}
290 virtual ~Iterator() {}
300 return new Iterator(*this);
308 // responsible for not calling Current() on an out-of-range iterator.
316 // iterator is of the same type and we can downcast.
321 CheckedDowncastToActualType<const Iterator>(&other)->iterator_;
325 Iterator(const Iterator& other)
335 // pointer in the wrapping iterator's operator->().
338 // which is bound by the lifespan of the iterator itself.
340 }; // class ValuesInIteratorRangeGenerator::Iterator
488 for (typename TestInfoContainer::iterator test_it = tests_.begin();
491 for (typename InstantiationContainer::iterator gen_it =
503 for (typename ParamGenerator<ParamType>::iterator param_it =
560 for (TestCaseInfoContainer::iterator it = test_case_infos_.begin();
574 for (TestCaseInfoContainer::iterator it = test_case_infos_.begin();
600 for (TestCaseInfoContainer::iterator it = test_case_infos_.begin();