Tools.h++ Manual

104011 Tandem Computers Incorporated 21-171
21
virtual RWCollectable* last() const;
Redefined from class
RWSequenceable
. Returns the value at the end of the
collection.
virtual size_t occurrencesOf(const
RWCollectable* target) const;
Redefined from class
RWCollection
. Returns the number of items that
isEqual to the item pointed to by
target
.
size_t occurrencesOfReference(const
RWCollectable* e) const;
Returns the number of items that are identical to the item pointed to by
e
(that
is, that have the address
e
).
virtual RWCollectable* prepend(RWCollectable*);
Redefined from class
RWSequenceable
. Adds the item to the beginning of the
collection and returns it. Returns nil if the insertion was unsuccessful.
virtual RWCollectable* remove(const RWCollectable*
target);
Redefined from class
RWCollection
. Removes and returns the first item that
isEqual to the item pointed to by
target
. Returns nil if there is no such item.
virtual void removeAndDestroy(const
RWCollectable* target);
Inherited from class
RWCollection
.
RWCollectable* removeReference(const
RWCollectable* e);
Removes and returns the first item that is identical to the item pointed to by
e
(that is, that has the address
e
). Returns nil if there is no such item.
virtual void restoreGuts(RWvistream&);
virtual void restoreGuts(RWFile&);
virtual void saveGuts(RWvostream&) const;
virtual void saveGuts(RWFile&) const;
Inherited from class
RWCollection
.