Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWConstIterator

Module:  Essential Tools Module   Group:  RWCollectable Classes

Local Index

Members

Synopsis

#include <rw/iterator.h>
typedef RWConstIterator Iterator;  //Smalltalk typedef: deprecated.

Description

Class RWConstIterator is an abstract base class for const iterators used by the Smalltalk-like collection classes. The const iterators do not change any information in the data structure upon which they iterate.

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 const RWCollectable*
findNext(const RWCollectable* target) = 0;
virtual const RWCollectable*
key() const = 0;
virtual const RWCollectable*
operator()() = 0;
virtual void
reset() = 0; 


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, 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.