Tools.h++ Class Reference

Table Of Contents
Public Member Operators
RWBoolean
operator==(const RWOrdered& od) const;
Returns TRUE if for every item in self, the corresponding item in od at the same index isEqual. The
two collections must also have the same number of members.
RWCollectable*&
operator[](size_t i);
Returns the ith element in the collection. If i is out of range, an exception of type RWBoundsErr will
occur. The results of this function can be used as an lvalue.
RWCollectable*&
operator()(size_t i);
Returns the ith element in the collection. Bounds checking is enabled by defining the preprocessor
directive RWBOUNDS_CHECK before including the header file ordcltn.h. In this case, if i is out of
range, an exception of type RWBoundsErr will occur. The results of this function can be used as an
lvalue.
Public Member Functions
virtual RWCollectable*
append(RWCollectable*);
Redefined from class RWSequenceable. Adds the item to the end of the collection and returns it.
Returns nil if the insertion was unsuccessful.
virtual void
apply(RWapplyCollectable ap, void* x);
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 order, from first to last.
virtual RWCollectable*&
at(size_t i);
virtual const RWCollectable*
at(size_t i) const;
Redefined from class RWSequenceable.
virtual RWspace
binaryStoreSize() const;
Inherited from class RWCollection.
virtual void
clear();
Redefined from class RWCollection.
virtual void
clearAndDestroy();
Inherited from class RWCollection.
virtual int