StringListclass is one of several list classes in the Ptolemy kernel. A basic operation on list classes is to sequentially access their members one at a time. This is accomplished using an iterator class, companion to the list class. For the
StringListclass, the iterator is called
StringListIter. Its methods are summarized in table 3-9
const char* string;
while ((string = item++) != 0) cout << string << "\n";
myList is assumed to be a
StringList previously set up.