Tools.h++ Class Reference

Table Of Contents
find(const RWCollectable* target) const;
Redefined from class RWCollection. The first item that matches target is returned, or nil if no item was found.
RWCollectable*
findReference(const RWCollectable* e) const;
Returns the first item that is identical to the item pointed to by e (that is, that has the address e), or nil if none is
found.
virtual RWCollectable*
first() const;
Redefined from class RWSequenceable. Returns the item at the beginning of the list.
RWCollectable*
get();
Returns and removes the item at the beginning of the list.
virtual unsigned
hash() const;
Inherited from class RWCollectable.
virtual size_t
index(const RWCollectable* c) const;
Redefined from class RWSequenceable. Returns the index of the first item that isEqual to the item pointed to by c. If
there is no such item, returns RW_NPOS.
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
position 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 __RWSLISTCOLLECTABLES.
virtual RWBoolean
isEmpty() const;
Redefined from class RWCollection.
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*