Tools.h++ Manual
104011 Tandem Computers Incorporated 21-183
21
const 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
sortvec.h
. In this case, if
i
is out of range, an exception of type
RWBoundsErr
will be thrown. This function cannot be used as an lvalue.
Public member functions
virtual void apply(RWapplyCollectable ap,
void* x);
Inherited from class
RWOrdered
.
virtual const RWCollectable* at(size_t i) const;
Inherited from class
RWOrdered
.
virtual RWspace binaryStoreSize() const;
Inherited from class
RWCollection
.
virtual void clear();
Inherited from class
RWOrdered
.
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;
Inherited from class
RWOrdered
.
virtual RWCollectable* find(const RWCollectable*
target) const;
Inherited from class
RWOrdered
.
Note –
RWOrdered::find()
uses the virtual function
index()
to perform its
search. Hence, a binary search will be used.
virtual RWCollectable* first() const;
Inherited from class
RWOrdered
.