\section{lib/circogen/nodelist.c File Reference}
\label{nodelist_8c}\index{lib/circogen/nodelist.\-c@{lib/circogen/nodelist.\-c}}
{\ttfamily \#include \char`\"{}nodelist.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}circular.\-h\char`\"{}}\\*
{\ttfamily \#include $<$assert.\-h$>$}\\*
Include dependency graph for nodelist.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{nodelist_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf nodelist\-\_\-t} $\ast$ {\bf mk\-Nodelist} ()
\item 
void {\bf free\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list)
\item 
void {\bf append\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list, {\bf nodelistitem\-\_\-t} $\ast$one, {\bf Agnode\-\_\-t} $\ast$n)
\item 
{\bf nodelist\-\_\-t} $\ast$ {\bf reverse\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list)
\item 
void {\bf realign\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list, {\bf nodelistitem\-\_\-t} $\ast$np)
\item 
{\bf nodelist\-\_\-t} $\ast$ {\bf clone\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list)
\item 
void {\bf insert\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list, {\bf Agnode\-\_\-t} $\ast$cn, {\bf Agnode\-\_\-t} $\ast$neighbor, {\bf int} pos)
\item 
{\bf int} {\bf size\-Nodelist} ({\bf nodelist\-\_\-t} $\ast$list)
\item 
{\bf int} {\bf node\-\_\-position} ({\bf nodelist\-\_\-t} $\ast$list, {\bf Agnode\-\_\-t} $\ast$n)
\item 
void {\bf reverse\-Append} ({\bf nodelist\-\_\-t} $\ast$l1, {\bf nodelist\-\_\-t} $\ast$l2)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{nodelist.\-c@{nodelist.\-c}!append\-Nodelist@{append\-Nodelist}}
\index{append\-Nodelist@{append\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{append\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}void append\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list, }
\item[{{\bf nodelistitem\-\_\-t} $\ast$}]{one, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{nodelist_8c_af53696fee6a4a06bdb5027120399d5bb}


Definition at line 51 of file nodelist.\-c.



References nodelist\-\_\-t\-::first, nodelist\-\_\-t\-::last, nodelistitem\-::next, N\-U\-L\-L, nodelistitem\-::prev, and nodelist\-\_\-t\-::sz.



Referenced by clone\-Nodelist().

\index{nodelist.\-c@{nodelist.\-c}!clone\-Nodelist@{clone\-Nodelist}}
\index{clone\-Nodelist@{clone\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{clone\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}{\bf nodelist\-\_\-t}$\ast$ clone\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list}
\end{DoxyParamCaption}
)}\label{nodelist_8c_acd853b45d02bd83529efd0c69a9c7d32}


Definition at line 174 of file nodelist.\-c.



References append\-Nodelist(), nodelistitem\-::curr, nodelist\-\_\-t\-::first, nodelist\-\_\-t\-::last, mk\-Nodelist(), and nodelistitem\-::next.

\index{nodelist.\-c@{nodelist.\-c}!free\-Nodelist@{free\-Nodelist}}
\index{free\-Nodelist@{free\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{free\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}void free\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list}
\end{DoxyParamCaption}
)}\label{nodelist_8c_a1cdee43a730c772b4ab6db54a842720f}


Definition at line 32 of file nodelist.\-c.



References nodelist\-\_\-t\-::first, and nodelistitem\-::next.



Referenced by free\-Block().

\index{nodelist.\-c@{nodelist.\-c}!insert\-Nodelist@{insert\-Nodelist}}
\index{insert\-Nodelist@{insert\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{insert\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}void insert\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{cn, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{neighbor, }
\item[{{\bf int}}]{pos}
\end{DoxyParamCaption}
)}\label{nodelist_8c_a2d53feccd79695f737eab8c476a0e4e0}


Definition at line 192 of file nodelist.\-c.



References assert, nodelistitem\-::curr, nodelist\-\_\-t\-::first, nodelist\-\_\-t\-::last, nodelistitem\-::next, N\-U\-L\-L, and nodelistitem\-::prev.

\index{nodelist.\-c@{nodelist.\-c}!mk\-Nodelist@{mk\-Nodelist}}
\index{mk\-Nodelist@{mk\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{mk\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}{\bf nodelist\-\_\-t}$\ast$ mk\-Nodelist (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{nodelist_8c_a7f0a4257bab6444fb7c8b20f520d6c9e}


Definition at line 26 of file nodelist.\-c.



References N\-E\-W.



Referenced by clone\-Nodelist().

\index{nodelist.\-c@{nodelist.\-c}!node\-\_\-position@{node\-\_\-position}}
\index{node\-\_\-position@{node\-\_\-position}!nodelist.c@{nodelist.\-c}}
\subsubsection[{node\-\_\-position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} node\-\_\-position (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{nodelist_8c_a50254d119f6f9828bd03bc5fdfeb448e}


Definition at line 310 of file nodelist.\-c.



References agnameof(), nodelistitem\-::curr, nodelist\-\_\-t\-::first, nodelistitem\-::next, P\-O\-S\-I\-T\-I\-O\-N, and streq.

\index{nodelist.\-c@{nodelist.\-c}!realign\-Nodelist@{realign\-Nodelist}}
\index{realign\-Nodelist@{realign\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{realign\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}void realign\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list, }
\item[{{\bf nodelistitem\-\_\-t} $\ast$}]{np}
\end{DoxyParamCaption}
)}\label{nodelist_8c_afd40bdd3fd7c89883680f542bb9918f0}


Definition at line 152 of file nodelist.\-c.



References nodelist\-\_\-t\-::first, nodelist\-\_\-t\-::last, nodelistitem\-::next, N\-U\-L\-L, and nodelistitem\-::prev.



Referenced by layout\-\_\-block().

\index{nodelist.\-c@{nodelist.\-c}!reverse\-Append@{reverse\-Append}}
\index{reverse\-Append@{reverse\-Append}!nodelist.c@{nodelist.\-c}}
\subsubsection[{reverse\-Append}]{\setlength{\rightskip}{0pt plus 5cm}void reverse\-Append (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{l1, }
\item[{{\bf nodelist\-\_\-t} $\ast$}]{l2}
\end{DoxyParamCaption}
)}\label{nodelist_8c_abe85435a03e4de7cef5713a1225cc846}


Definition at line 349 of file nodelist.\-c.



References reverse\-Nodelist().

\index{nodelist.\-c@{nodelist.\-c}!reverse\-Nodelist@{reverse\-Nodelist}}
\index{reverse\-Nodelist@{reverse\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{reverse\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}{\bf nodelist\-\_\-t}$\ast$ reverse\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list}
\end{DoxyParamCaption}
)}\label{nodelist_8c_aed7845437f47a2488ad8a86bdad138f2}


Definition at line 131 of file nodelist.\-c.



References nodelist\-\_\-t\-::first, nodelist\-\_\-t\-::last, nodelistitem\-::next, and nodelistitem\-::prev.



Referenced by reverse\-Append().

\index{nodelist.\-c@{nodelist.\-c}!size\-Nodelist@{size\-Nodelist}}
\index{size\-Nodelist@{size\-Nodelist}!nodelist.c@{nodelist.\-c}}
\subsubsection[{size\-Nodelist}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} size\-Nodelist (
\begin{DoxyParamCaption}
\item[{{\bf nodelist\-\_\-t} $\ast$}]{list}
\end{DoxyParamCaption}
)}\label{nodelist_8c_a9ec0461e1a102e8e2a98e3a1f857ae1e}


Definition at line 255 of file nodelist.\-c.



References nodelist\-\_\-t\-::first, nodelistitem\-::next, N\-U\-L\-L, and nodelist\-\_\-t\-::sz.



Referenced by layout\-\_\-block().

