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.

這個適配器緩存底層引用結果