Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWGDlist(type)
Synopsis
Description
Persistence
Example
Public Constructors
Assignment Operator
Public Member Functions
Synopsis
#include <rw/gdlist.h>
declare(RWGDlist, type)
RWGDlist(type) a;
Description
Class RWGDlist(type) represents a group of ordered elements of type type, not accessible by an
external key. Duplicates are allowed. This class is implemented as a doubly-linked list. Objects
of type RWGDlist(type) are declared with macros defined in the standard C++ header file
<generic.h>.
In order to find a particular item within the collection, a user-provided global "tester" function
is required to test for a "match," definable in any consistent way. This function should have
prototype:
RWBoolean yourTesterFunction(const type* c, const void* d);
The argument c is a candidate within the collection to be tested for a match. The argument d is
for your convenience and will be passed to yourTesterFunction(). The function should return
TRUE if a "match" is found between c and d.
In order to simplify the documentation below, an imaginary typedef