Tools.h++ Manual
21-16 104011 Tandem Computers Incorporated
21
virtual RWCollectable* insert(RWCollectable* c);
Redefined from class 
RWCollection
. Inserts the item 
c 
into the collection and 
returns it. Returns nil if the insertion was unsuccessful. The item 
c 
is inserted 
according to the value returned by 
compareTo()
.
virtual RWClassID isA() const;
Redefined from class 
RWCollectable 
to return 
__RWBINARYTREE
.
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 
compare equal to the item pointed to by 
target
.
virtual RWCollectable* remove(const RWCollectable*
target);
Redefined from class 
RWCollection
. Removes the first item that compares 
equal to the object pointed to by 
target 
and returns it. Returns nil if no item 
was found.
virtual void removeAndDestroy(const 
RWCollectable* target);
Inherited from class 
RWCollection
.
virtual void restoreGuts(RWvistream&);
virtual void restoreGuts(RWFile&);
Inherited from class 
RWCollection
.
virtual void saveGuts(RWvostream&) const;
virtual void saveGuts(RWFile&) const;
Redefined from class 
RWCollection 
to store objects by level, rather than in 
order. This results in the tree maintaining its morphology.










