Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWIdentityDictionary
RWIdentityDictionary RWHashDictionary RWSet RWHashTable ...
...
RWCollection RWCollectable
Synopsis
Description
Persistence
Public Constructor
Public Operator
Public Member Functions
Synopsis
#include <rw/idendict.h>
// Smalltalk typedef:
typedef RWIdentityDictionary IdentityDictionary;
RWIdentityDictionary a;
Description
The class RWIdentityDictionary is implemented as a hash table, for the storage and retrieval of key-value pairs. Class
RWIdentityDictionary is similar to class RWHashDictionary except that items are found by requiring that they be
identical (i.e., have the same address) as the key, rather than being equal (i.e., test true for isEqual()).
Both keys and values must inherit from the abstract base class RWCollectable.
The iterator for this class is RWHashDictionaryIterator.
Persistence
None
Public Constructor
RWIdentityDictionary(size_t n = RWDEFAULT_CAPACITY);
Construct an empty identity dictionary with n hashing buckets.
Public Operator
RWBoolean
operator<=(const RWIdentityDictionary& t) const;
Returns TRUE if self is a subset of t, that is, every element of self has a counterpart in t which isEqual. This