Tools.h++ Manual
21-118 104011 Tandem Computers Incorporated
21
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. 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 isEqual to the item 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 isEqual to the item 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
.
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
__RWHASHDICTIONARY
.
virtual RWBoolean isEmpty() const;
Inherited from class
RWSet
.
virtual RWBoolean isEqual(const RWCollectable* a)
const;
Inherited from class
RWCollectable
.