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* a) const;
Returns TRUE if the collection contains an item that is equal to the object pointed
to by a, FALSE otherwise. A linear search is done. Equality is measured by the
class-defined equality operator for type T.
T* const *
data() const;
Returns a pointer to the raw data of the vector. The contents should not be changed.
Should be used with care.
size_t
entries() const;
Returns the number of items currently in the collection.
T*
find(const T* target) const;
Returns a pointer to the first object encountered 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.
T*&
first();