Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

RWIterator

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

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

Description

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.

Persistence

None

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 documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.