Tools.h++ Manual

104011 Tandem Computers Incorporated 21-147
21
virtual RWCollectable* find(const RWCollectable*
target) const;
Redefined from class
RWCollection
. Returns the first item that isEqual to the
item pointed to by
target
, or nil if no item was found.
virtual RWCollectable* first() const;
Redefined from class
RWSequenceable
. Returns the first item in the
collection.
virtual unsigned hash() const;
Inherited from class
RWCollectable
.
virtual size_t index(const RWCollectable*)
const;
Refined from class
RWSequenceable
.
virtual RWCollectable* insert(RWCollectable* c);
Redefined from class
RWCollection
. Adds the item to the end of the
collection and returns it. Returns nil if the insertion was unsuccessful.
void insertAt(size_t indx,
RWCollectable* e);
Redefined from class
RWSequenceable
. Adds a new item to the collection at
position
indx
. The item previously at positition
i
is moved to
i+1
, etc. The
index
indx
must be between
0
and the number of items in the collection, or
an exception of type
RWBoundsErr
will be thrown.
virtual RWClassID isA() const;
Redefined from class
RWCollectable
to return
__RWORDERED
.
virtual RWBoolean isEmpty() const;
Redefined from class
RWCollection
.
virtual RWBoolean isEqual(const RWCollectable* a)
const;
Inherited from class
RWCollectable
.
virtual RWCollectable* last() const;
Refined from class
RWSequenceable
. Returns the last item in the collection.
virtual size_t occurrencesOf(const
RWCollectable* target) const;
Redefined from class
RWCollection
. Returns the number of items that
compare isEqual to the item pointed to by
target
.