Tools.h++ Class Reference

Table Of Contents
RWOrdered
RWBinaryTree
asSortedCollection() const;
Converts the RWHashDictionary to an RWBag, RWSet, RWOrdered, or an
RWBinaryTree. Note that since a dictionary contains pairs of keys and values, the result
of this call will be a container holding RWCollectableAssociations. Note also that the
return value is a copy of the data. This can be very expensive for large collections.
Consider using operator+=() to insert each RWCollectableAssociation from this
dictionary into a collection of your choice.
virtual RWspace
binaryStoreSize() const;
Inherited from class RWCollection.
virtual void
clear();
Redefined from class RWCollection. Removes all key-value pairs in the collection.
virtual void
clearAndDestroy();
Redefined from class RWCollection. Removes all key-value pairs in the collection, and
deletes the key and the value.
virtual int
compareTo(const RWCollectable* a) const;
Inherited from class RWCollectable.
virtual RWBoolean
contains(const RWCollectable* target) const;
Inherited from class RWCollection.
virtual size_t
entries() const;
Inherited from class RWSet.
virtual RWCollectable*
find(const RWCollectable* target) const;
Redefined from class RWCollection. Returns the key which isEqual to the object pointed
to by target, or nil if no key was found.
RWCollectable*
findKeyAndValue(const RWCollectable* target,
RWCollectable*& v) const;
Returns the key which isEqual to the item pointed to by target, or nil if no key was found.