Tools.h++ Class Reference

Table Of Contents
Removes all items from the collection.
void
clearAndDestroy();
Removes all items from the collection and deletes them.
RWBoolean
contains(const T* p) const;
Returns TRUE if the collection contains an item which is equal to the item pointed to
by p. Returns FALSE otherwise. Equality is measured by the class-defined equality
operator for type T.
size_t
entries() const;
Returns the number of items currently in the collection.
T*
find(const T* target) const;
Returns a pointer to the object which is equal to the object pointed to by target, or
nil if no such object can be found. Equality is measured by the class-defined
equality operator for type T.
void
insert(T* a);
Adds the object pointed to by a to the collection.
RWBoolean
isEmpty() const;