创建了一个用于循环的迭代器。
图3显示了迭代器模式的类图。
清单3中显示了一个迭代器示例。
将下列代码添加到迭代器循环的底部
第2部分将深入讨论事件迭代器api。
Part 2 will take a more in-depth look at the event iterator API.
创建迭代器以遍历ddo。
创建一个迭代器,以便通过集合进行迭代。
可以手工或者作为迭代器来利用这个生成器。
You can utilize the generator either manually or as an iterator.
后续的调用会将迭代器前后移动指定的距离。
Subsequent invocations move the iterator backward or forward by the required distance.
由于迭代器比较容易理解,让我们先来看它。
Let's consider iterators first, since they are simpler to understand.
在php中,这意味着对象可以当做迭代器。
In PHP parlance, this means that the object can be treated as an iterator.
主要问题是,每次都要创建迭代器的一个新副本。
The main problem is that we create a new copy of the iterator every time.
迭代器。提供了一种统一的访问标准容器的方法。
Iterators, which provide a uniform way to operate over standard containers.
所以,我将从Groovy中迭代器的概述开始。
So I'll start you out with an overview of iterator methods in Groovy.
基本上,迭代器是含有. next方法的对象。
匹配与未匹配行都被送入upsert迭代器中。
Both the matched and non-matched rows are fed into the upsert iterator.
答案是这个逆序函数的参数是迭代器,概括的指针。
The answer is that the arguments to reverse are iterators, which are a generalization of Pointers.
在创建集合和迭代器的事务之外支持集合和迭代器。
Support for collections and iterators outside of the transactions in which they were created.
低级跟踪捕捉语句统计数据、语句文本和语句迭代器。
Low-level tracing captures statement statistics, statement text and statement iterators.
通过下面的方式,使用迭代器遍历整个容器。
第4章开始构建一个迭代器框架,它是本书其余部分的基础。
Chapter 4 starts building the iterator framework that underlies the rest of the book.
迭代器模式将提供一种通过对象集合或对象数组封装迭代的方法。
The iterator pattern provides a way to encapsulate looping through a collection or array of objects.
如果你了解算法,迭代器,容器,那么你基本上知道STL的一切。
If you understand algorithms, iterators, and containers, then you understand almost everything there is to know about the STL.
对 itertools.tee() 的预调用保留了原始迭代器。
The pre-call to itertools.tee() preserves the original iterator.
G—此窗格是空间迭代器的一部分,用于显示图标导航链接的图标部分。
G - This pane is part of a spatial iterator used to show the icon portion of the icon navigation link.
人们也可以预先自定义一些迭代器,在函数的整个作用域内创建并使用。
One could also foresee custom iterators being created and used entirely within the scope of a function.
事件迭代器API的主要接口是XMLEventReader。
The main interface of the event iterator-based API is XMLEventReader.
您可以使用一种熟悉的类似迭代器的语法来搜索整个文档以查找所需的数据。
You're able to use a familiar iterator-like syntax to search through the document to find the data you want.
对于每种序列/迭代器类型,只要费一番功夫,总能够获得其中的特定条目。
With enough contortions, you can get an item for every type of sequence/iterator.
窗格名称后的数字指明空间迭代器的值,从最外面的空间迭代器开始逐渐向里。
The digits following the pane name indicate the spatial iterator value, starting from the outermost spatial iterator working inward.
应用推荐