Tools.h++ Manual
104011 Tandem Computers Incorporated 21-101
21
RWDlistCollectables
RWDlistCollectables
||
RWSequenceable RWDlist
||
RWCollection RWSlist
|
RWCollectable
Synopsis
#include <rw/dlistcol.h>
RWDlistCollectables a;
Description Class
RWDlistCollectables
represents a group of ordered items, not
accessible by an external key. Duplicates are allowed. The ordering of
elements is determined externally, generally by the order of insertion and
removal. An object stored by
RWDlistCollectables
must inherit abstract
base class
RWCollectable
.
Class
RWDlistCollectables
is implemented as a doubly-linked list, which
allows for efficient insertion and removal, as well as for movement in either
direction.
Public constructors
RWDlistCollectables();
Constructs an empty doubly-linked list.
RWDlistCollectables (const RWCollectable* a);
Constructs a linked-list with a single item
a
.
Public member operators
RWBoolean operator==(const
RWDlistCollectables& d) const;
Returns
TRUE
if self and
d
have the same number of items and if for every item
in self, the corresponding item in the same position in
d
isEqual to it.