Tools.h++ Manual
21-146 104011 Tandem Computers Incorporated
21
RWCollectable*& operator()(size_t i);
Returns the
i
'th 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 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
.