queue
Section: OATH Reference Manual (3O)
Updated: 26 August 1991
Index
Return to Main Contents
NAME
queue (queueA, queueG) - a bag that allows removal of the "front" member
SYNOPSIS
#include <oath/queue.h>
DESCRIPTION
The queue is a bag that allows removal and access of the "front" member.
Which obj in the queue is considered to be "front" is defined by the
subtype of queue (e.g. fifoQueue, lifoQueue, etc.). The objs within a
queue need not be maintained in any order.
DERIVATION
queue : bag : obj
queue is an abstract type.
STATIC OPERATIONS
- queueA queueA:: isa (objA)
-
queueA::isa(O) returns O if it is truly a queue; otherwise it returns Nil.
MEMBER OPERATIONS
- objA queueA:: front ()
-
Q.front() returns the obj at the "front" of queue Q.
- objA queueA:: operator * ()
-
*Q is the same as Q.front().
- objA queueA:: remove ()
-
Q.remove() removes the obj at the "front" of queue Q and returns it.
- queueA queueA:: extract ()
-
Q.extract() removes the obj at the "front" of queue Q and returns Q.
- queueA queueA:: extractX (objA&)
-
Q.extractX(O) removes the obj at the "front" of queue Q, sets O to access
the removed obj, and returns Q.
- objA queueA:: operator >> (objA&)
-
Q >> O is the same as Q.extract(O).
INTERNAL OPERATIONS
- virtual const objG* queueG:: front () const
-
G->front() returns the obj at the front of queue G.
- virtual const objG* queueG:: remove ()
-
G->remove() removes and returns the obj at the front of queue G.
SEE ALSO
OATH(3O), bag(3O)
AUTHOR
Brian M. Kennedy (Computer Science Center, Texas Instruments Incorporated)
BUGS
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- DERIVATION
-
- STATIC OPERATIONS
-
- MEMBER OPERATIONS
-
- INTERNAL OPERATIONS
-
- SEE ALSO
-
- AUTHOR
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 20:37:49 GMT, July 24, 2024