Tools.h++ Class Reference

Table Of Contents
typedef RWBoolean (*yourTester)(const type*, const void*);
has been used for this tester function.
Persistence
None
Public Constructors
RWGQueue(type)();
Construct an empty queue.
RWGQueue(type)(type* a);
Construct a queue with one entry a.
RWGQueue(type)(const RWGQueue(type)& q);
Copy constructor. A shallow copy of q is made.
Assignment Operator
void
operator=(const RWGQueue(type)& q);
Assignment operator. A shallow copy of q is made.
Public Member Functions
type*
append(type* a);
Adds a to the end of the queue and returns it. Returns nil if the insertion was
unsuccessful.
void
clear();
Removes all items from the queue.
RWBoolean
contains(yourTester t, const void* d) const;
Returns TRUE if the queue contains an item for which the user-defined function pointed
to by t finds a match with d.
RWBoolean
containsReference(const type* e) const;
Returns TRUE if the queue contains an item with the address e.