Tools.h++ Class Reference

Table Of Contents
Persistence
Polymorphic
Public Constructors
RWSet (size_t n = RWDEFAULT_CAPACITY);
Constructs an empty set with n hashing buckets.
RWSet (const RWSet & h);
Copy constructor. Makes a shallow copy of the collection h.
virtual ~RWSet();
Calls clear().
Public Member Operators
void
operator=(const RWSet& h);
Assignment operator. Makes a shallow copy of the collection h.
RWBoolean
operator==(const RWSet& h);
Returns TRUE if self and h have the same number of elements and if for every key in self
there is a corresponding key in h which isEqual.
RWBoolean
operator!=(const RWSet& h);
Returns the negation of operator==(), above.
RWBoolean
operator<=(const RWSet& h);
Returns TRUE if self is a subset of h, that is, every element of self has a counterpart in h
which isEqual. Note: If you inherit from RWSet in the presence of the C++ Standard
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 RWSet& h);
Returns TRUE if self is a proper subset of h, that is, every element of self has a counterpart
in h which isEqual, but where the two sets are not identical.
RWSet&
operator*=(const RWSet& h);