Tools.h++ Class Reference

Table Of Contents
removeAndDestroy(const RWCollectable* target);
Redefined from class RWCollection. Removes and deletes the key and value pair where
the key isEqual to the item pointed to by target. Note that both the key and the value are
deleted. Does nothing if the key is not found.
RWCollectable*
removeKeyAndValue(const RWCollectable* target,
RWCollectable*& v);
Removes the key and value pair where the key isEqual to the item pointed to by target.
Returns the key, or nil if no match was found. The value part of the removed pair is put in
v. You are responsible for defining v before calling this function.
void
resize(size_t n = 0);
Inherited from class RWSet.
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;
Inherited from class RWCollection.
virtual RWCollection*
select(RWtestCollectable testfunc, void* x) const;
Evaluates the function pointed to by tst for the key of each item in the
RWHashDictionary. It inserts keys and values for which the function returns TRUE into
a new RWHashDictionary allocated off the heap and returns a pointer to this new
collection. Because the new dictionary is allocated off the heap, you are responsible for
deleting it when done. This is a virtual function which hides the non-virtual function
inherited from RWCollection.
virtual RWCollection*
select(RWtestCollectablePair testfunc, void* x) const;
Evaluates the function pointed to by tst for both the key and the value of each item in the
RWHashDictionary. It inserts keys and values for which the function returns TRUE into
a new RWHashDictionary allocated off the heap and returns a pointer to this new
collection. Because the new dictionary is allocated off the heap, you are responsible for
deleting it when done. This is a virtual function which hides the non-virtual function
inherited from RWCollection.
RWStringID