[ fromfile: iterators.xml id: iterators ]
An iterator is an object that provides indirect access to each element in a container.
It is specifically designed to be used in a loop.
Qt supports the following styles of iteration:
Qt style foreach
loops, similar to Perl and Python
Java 1.2 style Iterator
, which always points between elements
Standard Library style ContainerType::iterator
Hand-made while
or for
loops that use the getters of the container
QDirIterator, for iterating through entries in a directory structure
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |