Tools.h++ Class Reference

Table Of Contents
Returns a reference to the ith element of self. Index i must be between 0 and one less then
the number of entries in self, otherwise the function throws an exception of type
RWBoundsErr.
iterator
begin();
const_iterator
begin() const;
Returns an iterator positioned at the first element of self.
void
clear();
Clears the collection by removing all items from self. Each item will have its destructor
called.
bool
contains(const T& a) const;
Returns true if there exists an element t in self such that the expression(t == a) is true,
otherwise returns false.
bool
contains(bool (*fn)(const T&,void*), void* d) const;
Returns true if there exists an element t in self such that the expression ((*fn)(t,d)) is true,
otherwise returns false. fn points to a user-defined tester function which must have
prototype:
bool yourTester(const T& a, void* d);
Client data may be passed through parameter d.
iterator
end();
const_iterator
end() const;
Returns a past-the-end valued iterator of self.
size_type
entries() const;
Returns the number of elements in self.
bool
find(const_reference a,reference k) const;
If there exists an element t in self such that the expression (t == a) is true, assigns t to k
and returns true. Otherwise, returns false and leaves the value of k unchanged.
bool
find