File: dataStructure.tex

package info (click to toggle)
spooles 2.2-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,760 kB
  • sloc: ansic: 146,836; sh: 7,571; csh: 3,615; makefile: 1,970; perl: 74
file content (18 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\par
\section{Data Structure}
\label{section:Ideq:dataStructure}
\par
The {\tt Ideq} object has four fields.
\begin{itemize}
\item 
{\tt int maxsize} : maximum size of the dequeue.
\item 
{\tt int head}    : head of the list.
\item 
{\tt int tail}    : tail of the list.
\item 
{\tt IV iv} : an {\tt IV} object to hold the list vector.
\end{itemize}
A correctly initialized and nontrivial {\tt Ideq} object 
will have {\tt maxsize > 0}.
When the dequeue is empty, {\tt head = tail = -1}.