Tools.h++ Manual
21-40 104011 Tandem Computers Incorporated
21
virtual void clear();
Redefined from class
RWCollection
. Removes all key-value pairs from the
collection.
virtual void clearAndDestroy();
Redefined from class
RWCollection
. Removes all key-value pairs in the
collection, and deletes both 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;
Redefined from class
RWCollection
.
virtual RWCollectable* find(const RWCollectable* key)
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).