Tools.h++ Class Reference

Table Of Contents
virtual RWBoolean
isEmpty() const;
Redefined from class RWCollection.
virtual RWBoolean
isEqual(const RWCollectable* a) const;
Inherited from class RWCollectable.
virtual size_t
occurrencesOf(const RWCollectable* target) const;
Redefined from class RWCollection. Returns the number of items that are equal to the
item pointed to by target.
virtual RWCollectable*
remove(const RWCollectable* target);
Redefined from class RWCollection. Removes and returns the item that isEqual to the
item pointed to by target. Returns nil if no item was found.
virtual void
removeAndDestroy(const RWCollectable* target);
Redefined from class RWCollection. Removes the item that isEqual to the item pointed to
by target. Destroys the item as well if it is the last occurrence in the collection.
void
resize(size_t n = 0);
Resizes the internal hash table to have n buckets. The overhead for this function is the
hashing of every element in the collection. If n is zero, then an appropriate size will be
picked automatically.
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;
Inherited from class RWCollection.
RWStringID
stringID();
(acts virtual) Inherited from class RWCollectable.