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 (19 lines) | stat: -rw-r--r-- 844 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
\par
\section{Data Structure}
\par
The {\tt ETree} object has six fields.
\begin{itemize}
\item {\tt int nfront} : number of fronts in the tree
\item {\tt int nvtx} : number of vertices in the tree
\item {\tt Tree *tree} : pointer to a {\tt Tree} structure
\item {\tt IV  *nodwghtsIV} : pointer to an {\tt IV} object to hold
front weights, size {\tt nfront}
\item {\tt IV  *bndwghtsIV} : pointer to an {\tt IV} object to hold
the weights of the fronts' boundaries, size {\tt nfront}
\item {\tt IV  *vtxToFrontIV} : pointer to an {\tt IV} object to hold
the map from vertices to fronts, size {\tt nfront}
\end{itemize}
A correctly initialized and nontrivial {\tt ETree} object 
will have positive {\tt nfront} and {\tt nvtx} values,
a valid {\tt tree} field and non-{\tt NULL}
{\tt nodwghtsIV}, {\tt bndwghtsIV} and {\tt vtxToFrontIV} pointers.