iterator

iterator

 英

  • 网络迭代器;迭代器模式;迭代子模式

例句

Iterator is so common that it has ceased to be a formal pattern at all; it is just a feature of the language.

因为常见所以根本就算正式模式只是一种语言特性

the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.

下去调用previous返回元素如果列表位于列表起始返回-1。

the computation of an iterator to an element from a pointer or reference to that element should be a constant time operation.

某个元素指针引用得到元素计算要求常量时间操作

While I was at it, I wrote the whole thing as a lazy iterator so you don't need to instantiate a large node-list if you don't need one.

这里所有处理编写一个滞后因此需要时候不必实例化大型节点列表

Execution is restarted from this location the next time the iterator is called.

下次调用从此位置重新开始执行

The Parallelism iterator at the boundary of two such regions is called Segment Repartition.

两个这样区域边界Parallelism称为SegmentRepartition

Then, at the bottom of the file, I use a foreach iterator to walk through the list of traces in the data.

然后文件后面使用foreach遍历数据轨迹列表

In the closure you call your first query and map the results of that query in an iterator to your child node, which is word.

闭包调用第一个查询中将查询结果映射word节点

You're able to use a familiar iterator-like syntax to search through the document to find the data you want.

可以使用一种熟悉类似语法搜索整个文档查找数据

In general, the generic algorithms operate on iterator pairs that denote a range of elements in a container (or other sequence).

通常算法标记容器其他序列元素范围操作

G - This pane is part of a spatial iterator used to show the icon portion of the icon navigation link.

G窗格空间一部分用于显示图标导航链接图标部分

Ordinarily , when we assign to a container element through an iterator, we assign to the element to which the iterator refers.

通常容器元素指向元素

Although the charAt implementation directly returns char primitives, the iterator implementation must box each char into a Character object.

charAt实现直接返回char实现必须每个char装箱一个Character对象

I then use short-hand for loop notion followed by an iterator with a closure.

然后使用简短for循环后面一个带有闭包

This implementation iterates over the specified collection, and adds each object returned by the iterator to this collection, in turn.

指定集合进行遍历依次当前集合添加一个返回对象

Such unique features include iterator blocks, parallel assignment, and oddities like the Range class.

这些独特特性包括iterator并行赋值Range这样奇妙东西

The iterator types define the dereference operator to return the object to which the iterator refers.

类型定义了解引用操作符来返回指向对象

Pane H is actually contained within a spatial iterator, which allows for multiple header titles to be specified in multiple rows.

窗格H实际上包含一个空间允许指定多个Header标题

You can easily modify the Rope iterator to accommodate skipping forward by more than one character at a time.

容易Rope一次向前移动不止一个字符

Removes from the underlying collection the last element returned by the iterator (optional operation).

底层集合删除刚返回元素可选操作)。

This option in particular demonstrates how the event iterator-based API stacks (no pun intended) on top of the cursor-based API.

这种用法可以说明基于事件API如何堆叠基于指针API之上

end Returns an iterator that addresses the location succeeding the last element in a string.

返回最后一个位置iterator地址

Errors in passing an invalid category of iterator to an algorithm are not guaranteed to be caught at compile-time.

算法传递无效类别引起错误无法保证编译捕获

Think of the eachRow method as an iterator on the result of the passed-in query.

eachRow方法当成进来查询生成结果

This method does not advance the iterator to the next argument.

方法不会使程序前进一个参数

The element that the iterator points to can be both written to and read from any number of times.

指向元素可以写入任意多次

Iterator that moves backward through a sequence. These iterators invert the meaning of ++ and --.

向后遍历序列这些颠倒++--含义

To specify an int variable for an iterator and a String variable for element name, use the code in Listing 17.

指定一个int变量元素名称指定一个String变量使用清单17代码

For all intents and purposes, you can use an XMLCursor as a java. util. Iterator, except that you can also use it in a generic fashion.

不管出于何种目的可以XMLCursor作为java.util.Iterator使用只是能够泛型形式使用

Strive for no more than one call after a single cardinality find on a home, or a next on an iterator retrieved from a collection.

找到一个基数或者通过集合检索下一个基数尽量使用超过调用

These algorithms require forward iterators for the input sequence and an output iterator for the destination.

这些算法要求输入序列以及目的地输出

Fundamentally, the for loop involves what is known as an iterator, which is used to move through the collection item by item.

本质上for循环涉及到一个iterator),用于集合逐项移动

A generic iterator function, which can be used to seamlessly iterate over both objects and arrays.

通用方法用于对象和数组

Some of the patterns covered are Singleton, Observer, Template Method, Iterator , and Proxy.

这些模式涵盖模式观察模式模板方法模式模式代理模式

Similarly, if you want to use find, you need only to ensure that the arguments you pass to it are models of Input Iterator.

同样如果使用find只需确保这些参数可以通过InputIterator模型

This listing illustrates an internal iterator (also known as a push iterator because it pushes each element in turn to the code block).

清单展示内部称为push,因为每个元素依次代码)。

Even as objects get added to the collection, the original Iterator can proceed, working through the items in the original collection.

即使对象加入集合原来Iterator可以进行继续遍历原来集合

UnsupportedOperationException - if the remove operation is not supported by this list iterator.

如果列表支持remove操作抛出

Container operation that returns an iterator referring to the element one past the end of the container.

一种容器操作返回指向容器超出末端位置

This iterator adaptor caches the result of dereferencing the underlying iterator.

这个适配器缓存底层引用结果