\section{lib/fdpgen/grid.h File Reference}
\label{grid_8h}\index{lib/fdpgen/grid.\-h@{lib/fdpgen/grid.\-h}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include $<$render.\-h$>$}\\*
{\ttfamily \#include $<$cdt.\-h$>$}\\*
Include dependency graph for grid.\-h\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{grid_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=248pt]{grid_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf \-\_\-node\-\_\-list}
\item 
struct {\bf gridpt}
\item 
struct {\bf cell}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf G\-R\-I\-D\-\_\-\-H}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct {\bf \-\_\-grid} {\bf Grid}
\item 
typedef struct {\bf \-\_\-node\-\_\-list} {\bf node\-\_\-list}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Grid} $\ast$ {\bf mk\-Grid} ({\bf int})
\item 
void {\bf adjust\-Grid} ({\bf Grid} $\ast$g, {\bf int} nnodes)
\item 
void {\bf clear\-Grid} ({\bf Grid} $\ast$)
\item 
void {\bf add\-Grid} ({\bf Grid} $\ast$, {\bf int}, {\bf int}, {\bf Agnode\-\_\-t} $\ast$)
\item 
void {\bf walk\-Grid} ({\bf Grid} $\ast$, {\bf int}($\ast$)({\bf Dt\-\_\-t} $\ast$, {\bf cell} $\ast$, {\bf Grid} $\ast$))
\item 
{\bf cell} $\ast$ {\bf find\-Grid} ({\bf Grid} $\ast$, {\bf int}, {\bf int})
\item 
void {\bf del\-Grid} ({\bf Grid} $\ast$)
\item 
{\bf int} {\bf g\-Length} ({\bf cell} $\ast$p)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{grid.\-h@{grid.\-h}!G\-R\-I\-D\-\_\-\-H@{G\-R\-I\-D\-\_\-\-H}}
\index{G\-R\-I\-D\-\_\-\-H@{G\-R\-I\-D\-\_\-\-H}!grid.h@{grid.\-h}}
\subsubsection[{G\-R\-I\-D\-\_\-\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define G\-R\-I\-D\-\_\-\-H}\label{grid_8h_adcb80e765677817322ab019e3a10f540}


Definition at line 19 of file grid.\-h.



\subsection{Typedef Documentation}
\index{grid.\-h@{grid.\-h}!Grid@{Grid}}
\index{Grid@{Grid}!grid.h@{grid.\-h}}
\subsubsection[{Grid}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf \-\_\-grid} {\bf Grid}}\label{grid_8h_a99c8e7c4eacf8db097f12afebdbd9f98}


Definition at line 26 of file grid.\-h.

\index{grid.\-h@{grid.\-h}!node\-\_\-list@{node\-\_\-list}}
\index{node\-\_\-list@{node\-\_\-list}!grid.h@{grid.\-h}}
\subsubsection[{node\-\_\-list}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf \-\_\-node\-\_\-list}  {\bf node\-\_\-list}}\label{grid_8h_a41bf66c6fb0411f2b675f2ddb560b803}


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


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.\-h@{grid.\-h}!adjust\-Grid@{adjust\-Grid}}
\index{adjust\-Grid@{adjust\-Grid}!grid.h@{grid.\-h}}
\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_8h_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.\-h@{grid.\-h}!clear\-Grid@{clear\-Grid}}
\index{clear\-Grid@{clear\-Grid}!grid.h@{grid.\-h}}
\subsubsection[{clear\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void clear\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{}
\end{DoxyParamCaption}
)}\label{grid_8h_a779a3c119c1c1239ecefcadb77e8c180}


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.\-h@{grid.\-h}!del\-Grid@{del\-Grid}}
\index{del\-Grid@{del\-Grid}!grid.h@{grid.\-h}}
\subsubsection[{del\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void del\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{}
\end{DoxyParamCaption}
)}\label{grid_8h_abf91059e7ee4a375979b65e3b4575e8e}


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.\-h@{grid.\-h}!find\-Grid@{find\-Grid}}
\index{find\-Grid@{find\-Grid}!grid.h@{grid.\-h}}
\subsubsection[{find\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}{\bf cell}$\ast$ find\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{, }
\item[{{\bf int}}]{, }
\item[{{\bf int}}]{}
\end{DoxyParamCaption}
)}\label{grid_8h_aa67ca814ff69ac6e7a0a01515e25b3b8}


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



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

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


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



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

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


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.\-h@{grid.\-h}!walk\-Grid@{walk\-Grid}}
\index{walk\-Grid@{walk\-Grid}!grid.h@{grid.\-h}}
\subsubsection[{walk\-Grid}]{\setlength{\rightskip}{0pt plus 5cm}void walk\-Grid (
\begin{DoxyParamCaption}
\item[{{\bf Grid} $\ast$}]{, }
\item[{{\bf int}($\ast$)({\bf Dt\-\_\-t} $\ast$, {\bf cell} $\ast$, {\bf Grid} $\ast$)}]{}
\end{DoxyParamCaption}
)}\label{grid_8h_a93d6395d8bfe3bf8ebc5dce0ecb60b06}


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



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

