File: QueueInterface.h

package info (click to toggle)
staden 2.0.0%2Bb11-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 21,556 kB
  • sloc: ansic: 240,603; tcl: 65,360; cpp: 12,854; makefile: 11,201; sh: 2,952; fortran: 2,033; perl: 63; awk: 46
file content (20 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "SeqQueueTypes.h"     /* imports the data type definitions of */
                               /* ItemType and Queue */

   /* defined operations */

extern void InitializeQueue(Queue *Q);
   /* Initialize the queue Q to be the empty queue */

extern int Empty(Queue *Q);
   /* Returns TRUE == 1 if and only if the queue Q is empty */

extern int Full(Queue *Q);
   /* Returns TRUE == 1 if and only if the queue Q is full */

extern void Insert(ItemType R, Queue *Q);
   /* If Q is not full, insert a new item R onto the rear of Q */

extern void Remove(Queue *Q, ItemType *F);
   /* If Q is non-empty, remove the frontmost item of Q and put it in F */