#include <mxmIteratorInterface.h>
Inheritance diagram for mxmIteratorInterface:
Public Member Functions | |
virtual void | resetIterator (void)=0 |
Resets the iterator. | |
virtual mxmObject * | nextItem (void)=0 |
Retrieves the next item for the current iteration sweep. |
You obtain an iterator for a specific mxmContainer by calling its iterator()
method, such as for example mxmList::iterator(). Such an iterator is external to the container, and you can instantiate multiple iterators for a given container if you know what you're doing.
In contrast to the aforementioned external iterators, early modularMX
library versions featured containers with inbuilt iterators. However, these inbuilt iterators turned out to be a fundamental design flaw and have consequently been purged from the library.
[khe]
Kai Hergenroether
|
Retrieves the next item for the current iteration sweep.
Returns Implemented in mxmList::Iterator, and mxmPerlStyleHash::Iterator. |