Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
Return to the Appendix home page.
©Copyright 1996 Rogue Wave Software
RWTValHashDictionary<K,V>
Alternate template: Standard C++ Library not required
Synopsis
Please Note!
Description
Persistence
Example
Public Constructors
Public Operators
Public Member Functions
Synopsis
#include <rw/tvhdict.h>
unsigned hashFun(const K&);
RWTValHashDictionary<K,V> dictionary(hashFun);
Please Note!
If you do not have the Standard C++ Library, use the interface described here. Otherwise, use the
interface to RWTValHashMap described in the Class Reference.
Description
RWTValHashDictionary<K,V> is a dictionary of keys of type K and values of type V, implemented using a
hash table. While duplicates of values are allowed, duplicates of keys are not.
It is a value based collection: keys and values are copied in and out of the hash buckets.
Parameters K and V represent the type of the key and the type of the value, respectively, to be inserted into
the table. These can be either classes or fundamental types. Classes K and V must have:
well-defined copy semantics (T::T(const T&) or equivalent);