File: dataStructure.tex

package info (click to toggle)
spooles 2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,012 kB
  • sloc: ansic: 146,834; csh: 3,615; makefile: 2,040; perl: 74
file content (29 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\par
\section{Data Structure}
\label{section:IV:dataStructure}
\par
\par
The {\tt IV} structure has four fields.
\begin{itemize}
\item
{\tt int size} : present size of the vector.
\item
{\tt int maxsize} : maximum size of the vector.
\item
{\tt int owned} : owner flag for the data.
When {\tt owned = 1}, storage for {\tt maxsize} {\tt int}'s
has been allocated by this object and can be free'd by the object.
When {\tt nowned = 0} but {\tt maxsize > 0}, this object points to
entries that have been allocated elsewhere, and these entries will
not be free'd by this object.
\item
{\tt int *vec} : pointer to the base address of the {\it int} vector
\end{itemize}
The {\tt size}, {\tt maxsize}, {\tt owned} and {\tt vec} fields 
need never be accessed directly --- 
see the 
{\tt IV\_size()},
{\tt IV\_maxsize()},
{\tt IV\_owned()},
{\tt IV\_entries()},
{\tt IV\_sizeAndEntries()} methods.