| queue-class {filehash} | R Documentation |
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:"filehashDB1"name:"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 emptysignature(db = "queue"): adds an element to the
tail ("bottom") of the queuesignature(object = "queue"): prints the name of
the queuesignature(db = "queue"): returns the value of the
"top" (i.e. head) of the queue; an error is signaled if the queue
is emptyRoger D. Peng rpeng@jhsph.edu
showClass("queue")