Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide


Module:  Essential Tools Module   Group:  RWCollectable

Does not inherit

Local Index



#include <rw/iterator.h>
typedef RWIterator Iterator;  // "Smalltalk" typedef


Class RWIterator is an abstract base class for iterators used by the Smalltalk-like collection classes. The class contains virtual functions for positioning and resetting the iterator. They are all pure virtual functions, meaning that deriving classes must supply a definition. The descriptions below are intended to be generic -- all inheriting iterators generally follow the described pattern.



Public Virtual Functions

virtual RWCollectable*
findNext(const RWCollectable* target) = 0;
virtual RWCollectable*
key() const = 0;
virtual RWCollectable*
operator()() = 0;
virtual void
reset() = 0;

Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.