Tools.h++ Manual
104011 Tandem Computers Incorporated 21-169
21
Public member functions
virtual RWCollectable* append(RWCollectable*);
Redefined from
RWSequenceable
. Inserts the item at the end of the collection
and returns it. Returns nil if the insertion was unsuccessful.
virtual void apply(RWapplyCollectable ap,
void*)
Redefined from class
RWCollection
. This function has been redefined to
apply the user-defined function pointed to by
ap
to each member of the
collection, in order, from first to last.
virtual RWCollectable*& at(size_t i);
virtual const RWCollectable* at(size_t i) const;
Redefined from class
RWSequenceable
. The index
i
must be between 0 and
the number of items in the collection less one, or an exception of type
RWBoundsErr
will be thrown.
Note – For a linked-list, these functions must traverse all the links, making
them not particularly efficient.
virtual RWspace binaryStoreSize() const;
Inherited from class
RWCollection
.
virtual void clear();
Redefined from class
RWCollection
.
virtual void clearAndDestroy();
Inherited from class
RWCollection
.
virtual int compareTo(const RWCollectable*
a) const;
Inherited from class
RWCollectable
.
virtual RWBoolean contains(const RWCollectable*
target) const;
Inherited from class
RWCollection
.
RWBoolean containsReference(const
RWCollectable* e) const;
Returns true if the list contains an item that is identical to the item pointed to by
e
(that is, that has the address
e
).
virtual size_t entries() const;
Redefined from class
RWCollection
.