Tools.h++ Class Reference

Table Of Contents
Returns a copy of the value at index i. The index i must be between zero and the length of
the vector less one or an exception of type TOOL_LONGINDEX will occur.
void
set(long i, const T& v);
Sets the value at the index i to v. The index i must be between zero and the length of the
vector less one or an exception of type TOOL_LONGINDEX will occur.
RWTVirtualSlice<T>
slice(long start, long length);
Returns a reference to a slice of self. The value start is the starting index of the slice, the
value length its extent. The results can be used as an lvalue.
void
reshape(long newLength);
Change the length of the vector to newLength. If this results in the vector being
lengthened then the value of the new elements is undefined.
RWVirtualPageHeap*
heap() const;
Returns a pointer to the heap from which the vector is getting its pages.