Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWIdentityDictionary

Module:  Essential Tools Module   Group:  RWCollectable Classes


RWIdentityDictionaryRWHashDictionaryRWSet... ... RWHashTableRWCollectionRWCollectable

Local Index

Members

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 = RW_DEFAULT_CAPACITY);

Public Operator

bool 
operator<=(const RWIdentityDictionary& t) const;

Public Member Functions

The user interface to this class is identical to class RWHashDictionary and is not reproduced here. The only difference between the classes is that keys are found on the basis of identity rather than equality, and that the virtual function isA() returns __RWIDENTITYDICTIONARY, the ClassId for RWIdentityDictionary.



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.