バナーをクリックすれば目次に戻ります

Copyright 1999 Rogue Wave Software
Copyright 1999 Sun Microsystems, Inc.


RWSetIterator

RWSetIterator RWHashTableIterator RWIterator

形式

#include <rw/rwset.h>
RWSet h;
RWSetIterator it(h) ;

説明

このクラスはクラス RWSet の反復子で、RWSet のすべての要素に順次アクセスできます。RWSet は順序付けられていないので、要素は特定の順序でアクセスされないので注意してください。

作成直後の "現在の項目" は未定義で、operator() または他の有効な操作によってユーザーが定義する必要があります。

反復子がコレクションの最後を越えると無効になります。

持続性

なし

公開コンストラクタ

RWSetIterator(RWSet&);

RWSet の反復子を作成します。作成直後の反復子の位置は不定です。

公開メンバー演算子

virtual RWCollectable*
operator()();

クラス RWHashTableIterator から継承した演算子。

公開メンバー関数

virtual RWCollectable*
findNext(const RWCollectable* target);

クラス RWHashTableIterator から継承した関数。

virtual RWCollectable*
key() const;

クラス RWHashTableIterator から継承した関数。

RWCollectable*
remove();

クラス RWHashTableIterator から継承した関数。

RWCollectable*
removeNext(const RWCollectable*);

クラス RWHashTableIterator から継承した関数。

virtual void
reset();

RWHashTableIterator から継承した関数。