Home
last modified time | relevance | path

Searched refs:iterators (Results 1 – 25 of 152) sorted by relevance

1234567

/external/cldr/tools/java/org/unicode/cldr/util/
DDelegatingIterator.java8 private Iterator<T>[] iterators; field in DelegatingIterator
12 public DelegatingIterator(Iterator<T>... iterators) { in DelegatingIterator() argument
13 this.iterators = iterators; in DelegatingIterator()
17 while (item < iterators.length) { in hasNext()
18 boolean result = iterators[item].hasNext(); in hasNext()
28 while (item < iterators.length) { in next()
30 return iterators[item].next(); in next()
62 Iterator<T>[] iterators = new Iterator[iterables.length]; in iterator() local
64 iterators[i] = iterables[i].iterator(); in iterator()
66 return new DelegatingIterator<T>(iterators); in iterator()
DWith.java36 List<Iterator<V>> iterators = new ArrayList<Iterator<V>>(); field in With
64 while (current < iterators.size()) { in hasNext()
65 if (iterators.get(current).hasNext()) { in hasNext()
75 return iterators.get(current).next(); in next()
209 public static <V> With<V> in(Iterator<V>... iterators) { in in() argument
210 return new With<V>().and(iterators); in in()
265 public With<V> and(Iterator<V>... iterators) { in and() argument
266 for (Iterator<V> iterator : iterators) { in and()
267 this.iterators.add(iterator); in and()
280 this.iterators.add(iterable.iterator()); in and()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DIterables.java12 private List<Iterator<T>> iterators = new ArrayList<Iterator<T>>(); field in Iterables
20 iterators.add(iteratorsIn); in and()
80 if (position >= iterators.size()) { in hasNext()
84 current = iterators.get(position); in hasNext()
/external/python/cpython3/Doc/library/
Demail.iterators.rst1 :mod:`email.iterators`: Iterators
4 .. module:: email.iterators
7 **Source code:** :source:`Lib/email/iterators.py`
13 :mod:`email.iterators` module provides some useful higher level iterations over
54 from email.iterators import _structure
/external/libcxx/test/support/
Ddebug_mode_helper.h288 CHECKPOINT("copy invalidates iterators");
308 CHECKPOINT("copy move invalidates iterators");
356 CHECKPOINT("testing swap invalidates iterators");
/external/tensorflow/tensorflow/python/distribute/
Dinput_lib.py125 def __init__(self, input_workers, iterators): argument
130 self._iterators = iterators
261 iterators = []
274 iterators.append(iterator)
276 super(InputFunctionIterator, self).__init__(input_workers, iterators)
312 iterators = []
322 iterators.append(iterator)
326 super(DatasetIterator, self).__init__(input_workers, iterators)
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dshuffle_dataset_serialization_test.py130 iterators = [ds.make_one_shot_iterator(), ds.make_one_shot_iterator()]
131 get_next_ops = [it.get_next() for it in iterators]
134 for it in iterators
/external/apache-commons-bcel/src/test/java/org/apache/bcel/
DBCELBenchmark.java33 import org.apache.commons.collections4.iterators.EnumerationIterator;
34 import org.apache.commons.collections4.iterators.FilterIterator;
35 import org.apache.commons.collections4.iterators.IteratorIterable;
/external/python/cpython2/Doc/library/
Demail.iterators.rst1 :mod:`email.iterators`: Iterators
4 .. module:: email.iterators
10 :mod:`email.iterators` module provides some useful higher level iterations over
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSTLExtras.h362 std::tuple<Iters...> iterators; variable
366 return value_type(*std::get<Ns>(iterators)...); in deres()
369 template <size_t... Ns> decltype(iterators) tup_inc(index_sequence<Ns...>) { in decltype() argument
370 return std::tuple<Iters...>(std::next(std::get<Ns>(iterators))...); in decltype()
376 void operator++() { iterators = tup_inc(index_sequence_for<Iters...>{}); }
379 return std::get<0>(iterators) != std::get<0>(other.iterators);
381 zip_first(Iters &&... ts) : iterators(std::forward<Iters>(ts)...) {} in zip_first()
387 return all_of(std::initializer_list<bool>{std::get<Ns>(this->iterators) != in test()
388 std::get<Ns>(other.iterators)...}, in test()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSTLExtras.h460 std::tuple<Iters...> iterators;
464 return value_type(*std::get<Ns>(iterators)...);
468 decltype(iterators) tup_inc(index_sequence<Ns...>) const {
469 return std::tuple<Iters...>(std::next(std::get<Ns>(iterators))...);
473 decltype(iterators) tup_dec(index_sequence<Ns...>) const {
474 return std::tuple<Iters...>(std::prev(std::get<Ns>(iterators))...);
478 zip_common(Iters &&... ts) : iterators(std::forward<Iters>(ts)...) {}
487 iterators = tup_inc(index_sequence_for<Iters...>{});
494 iterators = tup_dec(index_sequence_for<Iters...>{});
504 return std::get<0>(this->iterators) == std::get<0>(other.iterators);
[all …]
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DEdits.java.patch5 …* The "fine changes" and "coarse changes" iterators will step through only the change edits when t…
6 …link Edits.Iterator#next()} methods are called. They are identical to the non-change iterators when
/external/u-boot/scripts/coccinelle/iterators/
Ditnull.cocci1 /// Many iterators have the property that the first argument is always bound
3 //# False positives arise for some iterators that do not have this property,
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-param-util-generated.h.pump148 // Advance should not be called on beyond-of-range iterators
149 // so no component iterators must be beyond end of range, either.
171 << "The program attempted to compare iterators "
175 // We must report iterators equal if they both point beyond their
202 // component iterators has reached the end of its range.
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-param-util-generated.h.pump150 // Advance should not be called on beyond-of-range iterators
151 // so no component iterators must be beyond end of range, either.
173 << "The program attempted to compare iterators "
177 // We must report iterators equal if they both point beyond their
204 // component iterators has reached the end of its range.
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-param-util-generated.h.pump150 // Advance should not be called on beyond-of-range iterators
151 // so no component iterators must be beyond end of range, either.
173 << "The program attempted to compare iterators "
177 // We must report iterators equal if they both point beyond their
204 // component iterators has reached the end of its range.
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dreader_dataset_ops_test_base.py170 def _interleave(self, iterators, cycle_length): argument
171 pending_iterators = iterators
314 def _interleave(self, iterators, cycle_length): argument
315 pending_iterators = iterators
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dshuffle_test.py225 iterators = [dataset_ops.make_initializable_iterator(dataset)
228 iterators = [dataset_ops.make_one_shot_iterator(dataset)
233 for iterator in iterators:
/external/tensorflow/tensorflow/python/data/experimental/ops/
Diterator_ops.py186 iterators = ops.get_collection(iterator_ops.GLOBAL_ITERATORS)
187 saveables = [_Saveable(i) for i in iterators]
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-param-util-generated.h.pump165 // Advance should not be called on beyond-of-range iterators
166 // so no component iterators must be beyond end of range, either.
188 << "The program attempted to compare iterators "
192 // We must report iterators equal if they both point beyond their
219 // component iterators has reached the end of its range.
/external/libcxx/docs/DesignDocs/
DDebugMode.rst28 which provides additional assertions about the validity of iterators used by
73 "iterator debugging" which checks the validity of iterators used by the program.
/external/guava/guava/src/com/google/common/collect/
DIterators.java1255 Iterable<? extends Iterator<? extends T>> iterators,
1257 checkNotNull(iterators, "iterators");
1260 return new MergingIterator<T>(iterators, comparator);
1275 public MergingIterator(Iterable<? extends Iterator<? extends T>> iterators,
1289 for (Iterator<? extends T> iterator : iterators) {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterators.java1220 Iterable<? extends Iterator<? extends T>> iterators,
1222 checkNotNull(iterators, "iterators");
1225 return new MergingIterator<T>(iterators, comparator);
1240 public MergingIterator(Iterable<? extends Iterator<? extends T>> iterators,
1254 for (Iterator<? extends T> iterator : iterators) {
/external/python/cpython3/Doc/howto/
Dfunctional.rst20 skip to the next section on :ref:`functional-howto-iterators`.
176 .. _functional-howto-iterators:
182 foundation for writing functional-style programs: iterators.
238 Sequence unpacking also supports iterators: if you know an iterator will return
249 and ``"not in"`` operators also support iterators: ``X in iterator`` is true if
267 We've already seen how lists and tuples support iterators. In fact, any Python
296 dictionaries have methods that return other iterators. If you want to iterate
356 useful if you're working with iterators that return an infinite stream or a very
434 iterators. Regular functions compute a value and return it, but generators
620 Let's look in more detail at built-in functions often used with iterators.
[all …]
/external/libaom/libaom/third_party/vector/
DREADME.libaom10 the entire C++ std::vector API, including iterators.

1234567