Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWGVector(val)
Synopsis
Description
Persistence
Example
Public Constructors
Public Member Operators
Public Member Functions
Synopsis
#include <rw/gvector.h>
declare(RWGVector,val)
implement(RWGVector,val)
RWGVector(val) a; // A Vector of val's.
Description
Class RWGVector(val) represents a group of ordered elements, accessible by an index.
Duplicates are allowed. This class is implemented as an array. Objects of type RWGVector(val)
are declared with macros defined in the standard C++ header file <generic.h>.
Note that it is a value-based collection: items are copied in and out of the collection.
The class val must have:
a default constructor;
well-defined copy semantics (val::val(const val&) or equiv.);
well-defined assignment semantics (val::operator=(const val&) or equivalent).
For each type of RWGVector, you must include one (and only one) call to the macro implement,
somewhere in your code.