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 30
|
\par
\section{Data Structure}
\label{section:DV:dataStructure}
\par
\par
The {\tt DV} structure has three 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 owned} {\tt double}'s
has been allocated by this object and can be free'd by the object.
When {\tt owned == 0} but {\tt size > 0 }, this object points to
entries that have been allocated elsewhere, and these entries will
not be free'd by this object.
\item
{\tt double *vec} :
pointer to the base address of the {\it double} vector
\end{itemize}
The {\tt size}, {\tt maxsize}, {\tt nowned} and {\tt vec} fields
need never be accessed directly ---
see the
{\tt DV\_size()},
{\tt DV\_maxsize()},
{\tt DV\_owned()},
{\tt DV\_entries()},
{\tt DV\_sizeAndEntries()} methods.
|