Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
Return to the Appendix home page.
©Copyright 1996 Rogue Wave Software
RWTPtrOrderedVector<T>
Alternate template: Standard C++ Library not required
Synopsis
Please Note!
Description
Persistence
Example
Public Constructors
Public Operators
Public Member Functions
Related Global Operators
Synopsis
#include <rw/tpordvec.h>
RWTPtrOrderedVector<T> ordvec;
Please Note!
If you do not have the Standard C++ Library, use the interface described here. Otherwise, use the interface to
RWTPtrOrderedVector described in the Class Reference.
Description
RWTPtrOrderedVector<T> is a pointer-based ordered collection. That is, the items in the collection have a meaningful ordered
relationship with respect to one another and can be accessed by an index number. The order is set by the order of insertion.
Duplicates are allowed. The class is implemented as a vector, allowing efficient insertion and retrieval from the end of the collection,
but somewhat slower from the beginning of the collection.
The class T must have:
well-defined equality semantics (T::operator==(const T&)).
Persistence
Isomorphic
Example
#include <rw/tpordvec.h>
#include <rw/rstream.h>
main() {