Tools.h++ Class Reference

Table Of Contents
Program output:
Table contains 4 entries.
It does contain the key February 22, 1983
Public Constructors
RWHashTable(size_t N = RWCollection::DEFAULT_CAPACITY);
Construct an empty hash table with N buckets.
RWHashTable(const RWHashTable& t);
Copy constructor. Create a new hash table as a shallow copy of the table t. The new table
will have the same number of buckets as the old table. Hence, the members need not be
and will not be rehashed.
Public Operators
void
operator=(const RWHashTable& t);
Assignment operator. Sets self as a shallow copy of t. Afterwards, the two tables will
have the same number of buckets. Hence, the members need not be and will not be
rehashed.
RWBoolean
operator==(const RWHashTable& t) const;
Returns TRUE if self and t have the same number of elements and if for every key in self
there is a corresponding key in t which isEqual.
RWBoolean
operator<=(const RWHashTable& t) const;
Returns TRUE if self is a subset of t, that is, every element of self has a counterpart in t
which isEqual. Note: If you inherit from RWHashTable in the presence of the Standard
C++ Library, we recommend that you override this operator and explicitly forward the
call. Overload resolution in C++ will choose the Standard Library provided global
operators over inherited class members. These global definitions are not appropriate for
set-like partial orderings.
RWBoolean
operator!=(const RWHashTable&) const;
Returns the negation of operator==(), above.