\section{lib/fdpgen/grid.c File Reference}
\label{grid_8c}\index{lib/fdpgen/grid.\-c@{lib/fdpgen/grid.\-c}}
{\ttfamily \#include $<$fdp.\-h$>$}\\*
{\ttfamily \#include $<$grid.\-h$>$}\\*
{\ttfamily \#include $<$macros.\-h$>$}\\*
Include dependency graph for grid.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{grid_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf \-\_\-block}
\item 
struct {\bf \-\_\-grid}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E}~1
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct {\bf \-\_\-block} {\bf block\-\_\-t}
\item 
typedef {\bf int}($\ast$ {\bf walkfn\-\_\-t} )({\bf Dt\-\_\-t} $\ast$, void $\ast$, void $\ast$)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Grid} $\ast$ {\bf mk\-Grid} ({\bf int} cell\-Hint)
\item 
void {\bf adjust\-Grid} ({\bf Grid} $\ast$g, {\bf int} nnodes)
\item 
void {\bf clear\-Grid} ({\bf Grid} $\ast$g)
\item 
void {\bf del\-Grid} ({\bf Grid} $\ast$g)
\item 
void {\bf add\-Grid} ({\bf Grid} $\ast$g, {\bf int} i, {\bf int} j, {\bf Agnode\-\_\-t} $\ast$n)
\item 
void {\bf walk\-Grid} ({\bf Grid} $\ast$g, {\bf int}($\ast$walkf)({\bf Dt\-\_\-t} $\ast$, {\bf cell} $\ast$, {\bf Grid} $\ast$))
\item 
{\bf cell} $\ast$ {\bf find\-Grid} ({\bf Grid} $\ast$g, {\bf int} i, {\bf int} j)
\item 
{\bf int} {\bf g\-Length} ({\bf cell} $\ast$p)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{grid.\-c@{grid.\-c}!F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E@{F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E}}
\index{F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E@{F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E}!grid.c@{grid.\-c}}
\subsubsection[{F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\-D\-P\-\_\-\-P\-R\-I\-V\-A\-T\-E~1}\label{grid_8c_a3fd46566e591740ecced40b59803d56c}


Definition at line 25 of file grid.\-c.



\subsection{Typedef Documentation}
\index{grid.\-c@{grid.\-c}!block\-\_\-t@{block\-\_\-t}}
\index{block\-\_\-t@{block\-\_\-t}!grid.c@{grid.\-c}}
\subsubsection[{block\-\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf \-\_\-block}  {\bf block\-\_\-t}}\label{grid_8c_a988491e90a17db7854e947230afed61c}
\index{grid.\-c@{grid.\-c}!walkfn\-\_\-t@{walkfn\-\_\-t}}
\index{walkfn\-\_\-t@{walkfn\-\_\-t}!grid.c@{grid.\-c}}
\subsubsection[{walkfn\-\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf int}($\ast$ walkfn\-\_\-t)({\bf Dt\-\_\-t} $\ast$, void $\ast$, void $\ast$)}\label{grid_8c_a58a41336f810056d8e646e3608cb392c}


Definition at line 235 of file grid.\-c.



\subsection{Function Documentation}
\index{grid.\-c@{grid.\-c}!add\-Grid@{add\-Grid}}
\index{add\-Grid@{add\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{add\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void add\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{g, }
\item[{{\bf int}}]{i, }
\item[{{\bf int}}]{j, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{grid_8c_ae34e8c92611fc3dcc8d4434295cf8364}


Definition at line 221 of file grid.\-c.



References agnameof(), \-\_\-grid\-::data, dtinsert, gridpt\-::i, gridpt\-::j, cell\-::nodes, cell\-::p, and Verbose.

\index{grid.\-c@{grid.\-c}!adjust\-Grid@{adjust\-Grid}}
\index{adjust\-Grid@{adjust\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{adjust\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void adjust\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{g, }
\item[{{\bf int}}]{nnodes}
\end{DoxyParamCaption}
)}\label{grid_8c_a34a127998827f15290f5e638559080db}


Definition at line 182 of file grid.\-c.



References \-\_\-grid\-::list\-Mem, \-\_\-grid\-::list\-Size, M\-A\-X, and N\-\_\-\-G\-N\-E\-W.



Referenced by fdp\-\_\-t\-Layout().

\index{grid.\-c@{grid.\-c}!clear\-Grid@{clear\-Grid}}
\index{clear\-Grid@{clear\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{clear\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void clear\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{grid_8c_aedab1182b7771f9cbdcf39c0f0517e51}


Definition at line 199 of file grid.\-c.



References \-\_\-grid\-::cell\-Cur, \-\_\-grid\-::cell\-Mem, \-\_\-grid\-::data, dtclear, \-\_\-grid\-::list\-Cur, and \-\_\-grid\-::list\-Mem.

\index{grid.\-c@{grid.\-c}!del\-Grid@{del\-Grid}}
\index{del\-Grid@{del\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{del\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void del\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{grid_8c_a53d7d4802a2d98cc8d1a02dbb8c2eb9f}


Definition at line 210 of file grid.\-c.



References \-\_\-grid\-::cell\-Mem, \-\_\-grid\-::data, dtclose(), free\-Block(), and \-\_\-grid\-::list\-Mem.



Referenced by fdp\-\_\-t\-Layout().

\index{grid.\-c@{grid.\-c}!find\-Grid@{find\-Grid}}
\index{find\-Grid@{find\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{find\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}{\bf cell}$\ast$ find\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{g, }
\item[{{\bf int}}]{i, }
\item[{{\bf int}}]{j}
\end{DoxyParamCaption}
)}\label{grid_8c_ae8da1ac46a99d4a7a63c288ee37fea14}


Definition at line 252 of file grid.\-c.



References \-\_\-grid\-::data, dtsearch, gridpt\-::i, gridpt\-::j, and cell\-::p.

\index{grid.\-c@{grid.\-c}!g\-Length@{g\-Length}}
\index{g\-Length@{g\-Length}!grid.c@{grid.\-c}}
\subsubsection[{g\-Length}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} g\-Length (
\begin{DoxyParamCaption}
\item[{{\bf cell} $\ast$}]{p}
\end{DoxyParamCaption}
)}\label{grid_8c_a4177cbdd2c4e201f9e496e1742ec52ef}


Definition at line 264 of file grid.\-c.



References \-\_\-node\-\_\-list\-::next, and cell\-::nodes.

\index{grid.\-c@{grid.\-c}!mk\-Grid@{mk\-Grid}}
\index{mk\-Grid@{mk\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{mk\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Grid}$\ast$ mk\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{cell\-Hint}
\end{DoxyParamCaption}
)}\label{grid_8c_a2fd40f3acdfac8a5dd657514c02f9051}


Definition at line 163 of file grid.\-c.



References \-\_\-grid\-::cell\-Mem, \-\_\-grid\-::data, dtopen(), Dtoset, G\-N\-E\-W, \-\_\-grid\-::list\-Mem, and \-\_\-grid\-::list\-Size.



Referenced by fdp\-\_\-t\-Layout().

\index{grid.\-c@{grid.\-c}!walk\-Grid@{walk\-Grid}}
\index{walk\-Grid@{walk\-Grid}!grid.c@{grid.\-c}}
\subsubsection[{walk\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void walk\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{g, }
\item[{{\bf int}($\ast$)({\bf Dt\-\_\-t} $\ast$, {\bf cell} $\ast$, {\bf Grid} $\ast$)}]{walkf}
\end{DoxyParamCaption}
)}\label{grid_8c_a6ccc36d33111bc37969a1e340374acde}


Definition at line 243 of file grid.\-c.



References \-\_\-grid\-::data, and dtwalk().

