Tools.h++ Class Reference

Table Of Contents
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;
Redefined from class RWCollection.
virtual RWCollectable*
find(const RWCollectable* target) const;
Redefined from class RWCollection. Returns the key in the collection which compares equal to the
object pointed to by target, or nil if no key is found.
RWCollectable*
findKeyAndValue(const RWCollectable* target,
RWCollectable*& v) const;
Returns the key in the collection which compares equal to the object pointed to by target, or nil if no
key was found. The value is put in v. You are responsible for defining v before calling this function.
RWCollectable*
findValue(const RWCollectable* target) const;
Returns the value associated with the key which compares equal to the object pointed to by target, or
nil if no key was found.
RWCollectable*
findValue(const RWCollectable* target,
RWCollectable* newValue);
Returns the value associated with the key which compares equal to the object pointed to by target, or
nil if no key was found. Replaces the value with newValue (if a key was found).
virtual unsigned
hash() const;
Inherited from class RWCollectable.
unsigned
height() const;
Inherited from class RWBTree.
RWCollectable*
insertKeyAndValue(RWCollectable* key,RWCollectable* value);
Adds a key-value pair to the collection and returns the key if successful, nil if the key is already in the
collection.
virtual RWClassID
isA() const;
Redefined from class RWCollectable to return __RWBTREEDICTIONARY.
virtual RWBoolean