Class "queue"
A queue implementation using a filehash
database
Objects can be created by calls of the form new("queue", ...)
or
by calling createQ
. Existing queues can be initialized with
initQ
.
queue
:Object of class "filehashDB1"
name
:Object of class "character"
: the name of
the queue (default is the file name in which the queue data are
stored)
signature(db = "queue")
: returns
TRUE
/FALSE
depending on whether there are elements
in the queue.
signature(db = "queue")
: returns the value of the
"top" (i.e. head) of the queue and subsequently removes that
element from the queue; an error is signaled if the queue is empty
signature(db = "queue")
: adds an element to the
tail ("bottom") of the queue
signature(object = "queue")
: prints the name of
the queue
signature(db = "queue")
: returns the value of the
"top" (i.e. head) of the queue; an error is signaled if the queue
is empty
Roger D. Peng rpeng@jhsph.edu
showClass("queue")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.