iterator


Also found in: Dictionary, Thesaurus, Wikipedia.

iterator

(programming)
An object or routine for accessing items from a list, array or stream one at a time.

By extension, the term can be used for an object or routine for accesing items from any data structure that can be viewed as a list. For example, a traverser is an iterator for tree-shaped data structures.
Mentioned in ?
References in periodicals archive ?
If [E.sub.min] > [T.sub.ppe] and iterator > [M.sub.iter], the loop will go back to step 2; otherwise, the loop will be terminated.
Esse termo escolhido para denominar as acoes, re-vela, re-fere-se, designa o carater de criacao dinamica, coletiva, de encontro e de inteira experimentacao, sem metodo, sem caminho tracado previamente, construindo a composicao no presente ('presentacao') entre os componentes e abrindo-se a todos aqueles que queiram se envolver (iteratores).
Cell Durbin-Watson statistics, "big" arrays C pointer C array[i] C array[x[i]] C++ C++ pointer array[i] -00 0.1 0.2 0.0 0.3 0.1 -01 1.9 1.9 1.9 1.7 1.7 -02 1.9 1.9 1.9 1.7 1.7 -03 1.9 2.0 1.9 2.0 2.0 -03 -flto 1.9 2.0 1.9 2.0 2.0 -03 -fmudflap 0.1 0.1 1.6 -fmudflapir -03 -fmudflap 0.1 0.1 0.7 C++ C++ vector C++ vector C++ vector[i] array[x[i]] std::fill iterator -00 0.0 0.1 0.0 0.0 -01 1.4 2.0 1.9 2.0 -02 1.3 2.0 2.0 1.9 -03 1.4 2.1 2.0 0.6 -03 -flto 1.4 2.1 2.0 1.9 -03 -fmudflap -fmudflapir -03 -fmudflap C++ C++ C++ vector.at(i) vector[x[i]] vector.at(x[i]) -00 0.0 0.0 0.0 -01 1.9 1.3 1.2 -02 2.0 1.1 1.2 -03 2.0 1.2 1.2 -03 -flto 2.0 1.0 1.1 -03 -fmudflap -fmudflapir -03 -fmudflap Table 6 gives the ratios of the respective cell means for the "big" and "small" arrays.
In addition, StAX has two integrated APIs with different levels of abstraction: the cursed-based API, which is a lower-level API, focused on efficiency and simplicity of use, that works like a stream of events, and the iterator based API that offers a higher level of abstraction allowing pipelining, and representing the events through objects.
should_prune indicates that the iterator should prune the elements further down the current search branch after the current protocol graph.
(3) advancing the iterator to the very next item (once all items have been passed, the iterator becomes invalid).
Consider the map iterator over lists mentioned in the introduction.
Creational Patterns Structural Patterns Behavioral Patterns Abstract Factory Adapter Chain of Responsibility Builder Bridge Command Factory Method Composite Interpreter Prototype Decorator Iterator Singleton Facade Mediator Flyweight Memento Proxy Observer State Strategy Template Method Visitor
The programmer defines an iterator function that processes each velocity and elevation value in a chunk.