Tools.h++ Manual

104011 Tandem Computers Incorporated 23-17
23
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
.
size_t entries() const;
Returns the number of items in the queue.
type
* first() const;
Returns the first item in the queue, or nil if the queue is empty.
type
* get();
Returns and removes the first item in the queue. Returns nil if the queue is
empty.
RWBoolean isEmpty() const;
Returns
TRUE
if the queue is empty, otherwise
FALSE
.
type
* insert(
type
* a);
Calls
append(
type
*)
with
a
as the argument.
type
* last();
Returns the last (most recently inserted) item in the queue, or nil if the queue is
empty.