清单3中显示了一个迭代器示例。
将下列代码添加到迭代器循环的底部
第2部分将深入讨论事件迭代器api。
Part 2 will take a more in-depth look at the event iterator API.
创建一个迭代器,以便通过集合进行迭代。
由于迭代器比较容易理解,让我们先来看它。
Let's consider iterators first, since they are simpler to understand.
手动更新循环迭代器不好的做法?
如何构建对象有两个迭代器吗?
不同类型的容器的迭代器是不同的。
主要问题是,每次都要创建迭代器的一个新副本。
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.
这个例子类似于迭代器模式。
迭代器范围这个概念是标准库的基础。
The concept of an iterator range is fundamental to the standard library.
基本上,迭代器是含有. next方法的对象。
首先,我会告诉你的实际迭代器的代码。
这里是我们创建新的一类迭代器的方法。
So, here are instructions for creating our new type of iterators.
获得迭代器的范围大小。
我做的方式,我要告诉你反向迭代器这一点。
I've done this in the manner I have to show you reverse iterators.
只要有一个以上的迭代器,所有数据都要保存。
All data is stored as long as there is more than one iterator.
本系列的第二部分将详细讨论这种基于事件迭代器的API。
Part 2 of this series will provide a detailed description of the event iterator-based API.
VisualBasic的迭代器,看上去更像一个匿名函数。
Visual Basic's Iterators, look more like an anonymous function.
但我想你真的想一想,这是一个像素由像素迭代器都带一次。
But I think what you really want, which is a pixel-by-pixel all-bands-at-once iterator.
对于每种序列/迭代器类型,只要费一番功夫,总能够获得其中的特定条目。
With enough contortions, you can get an item for every type of sequence/iterator.
下面清单3 中包含的脚本是一个计数器迭代脚本。
The script contained in Listing 3 below is a counter iteration script.
迭代计划编辑器为管理四种不同的信息提供了支持。
The iteration plan editor provides support to manage three different kinds of information.
迭代计划编辑器为管理四种不同的信息提供了支持。
The iteration plan editor provides support to manage three different kinds of information.
应用推荐