Tools.h++ Manual
21-4 104011 Tandem Computers Incorporated
21
Public member operators
void operator=(const RWBag& b);
Assignment operator. A shallow copy of 
b 
will be made.
RWBoolean operator==(const RWBag& b)
const;
Returns 
TRUE 
if self and bag 
b 
have the same number of total entries and if for 
every key in self there is a corresponding key in 
b 
which isEqual and which 
has the same number of entries.
Public member functions
virtual void apply(RWapplyCollectable ap,
void*)
Redefined from class 
RWCollection
. This function has been redefined to 
apply the user-supplied function pointed to by 
ap 
to each member of the 
collection in a (generally) unpredictable order. If an item has been inserted 
more than once (i.e., more than one item isEqual), then 
apply() 
will be called 
that many times. The user-supplied function should not do anything that could 
change the hash value of the items.
virtual RWspace binaryStoreSize() const;
Inherited from class 
RWCollection
.
virtual void clear();
Redefined from class 
RWCollection
. 
virtual void clearAndDestroy();
Inherited from class 
RWCollection
.
virtual int compareTo(const RWCollectable* 
a) const;
Inherited from class 
RWCollectable
. 
virtual RWBoolean contains(const RWCollectable* 
target) const;
Inherited from class 
RWCollection
.
virtual size_t entries() const;
Redefined from class 
RWCollection
.
virtual RWCollectable* find(const RWCollectable* 
target) const;
Redefined from class 
RWCollection
. The first item that was inserted into the 
Bag and which equals 
target 
is returned or nil if no item is found. Hashing is 
used to narrow the search.










