\section{lib/circogen/stack.h File Reference}
\label{circogen_2stack_8h}\index{lib/circogen/stack.\-h@{lib/circogen/stack.\-h}}
{\ttfamily \#include $<$render.\-h$>$}\\*
Include dependency graph for stack.\-h\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{circogen_2stack_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=145pt]{circogen_2stack_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf nstack\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf S\-T\-A\-C\-K\-\_\-\-H}
\item 
\#define {\bf top}(sp)~((sp)-\/$>$top)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf nstack\-\_\-t} $\ast$ {\bf mk\-Stack} (void)
\item 
void {\bf stack\-Push} ({\bf nstack\-\_\-t} $\ast${\bf s}, {\bf Agnode\-\_\-t} $\ast$n)
\item 
{\bf Agnode\-\_\-t} $\ast$ {\bf stack\-Pop} ({\bf nstack\-\_\-t} $\ast${\bf s})
\item 
{\bf int} {\bf stack\-Size} ({\bf nstack\-\_\-t} $\ast${\bf s})
\item 
{\bf int} {\bf stack\-Check} ({\bf nstack\-\_\-t} $\ast${\bf s}, {\bf Agnode\-\_\-t} $\ast$n)
\item 
void {\bf free\-Stack} ({\bf nstack\-\_\-t} $\ast${\bf s})
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{circogen/stack.\-h@{circogen/stack.\-h}!S\-T\-A\-C\-K\-\_\-\-H@{S\-T\-A\-C\-K\-\_\-\-H}}
\index{S\-T\-A\-C\-K\-\_\-\-H@{S\-T\-A\-C\-K\-\_\-\-H}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{S\-T\-A\-C\-K\-\_\-\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define S\-T\-A\-C\-K\-\_\-\-H}\label{circogen_2stack_8h_aec2864553519b450501f110ca0c3e3b7}


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

\index{circogen/stack.\-h@{circogen/stack.\-h}!top@{top}}
\index{top@{top}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{top}]{\setlength{\rightskip}{0pt plus 5cm}\#define top(
\begin{DoxyParamCaption}
\item[{}]{sp}
\end{DoxyParamCaption}
)~((sp)-\/$>$top)}\label{circogen_2stack_8h_a737e20ac474e2981a04bdfa96432e40b}


Definition at line 35 of file stack.\-h.



Referenced by stack\-Check(), stack\-Pop(), and voronoi().



\subsection{Function Documentation}
\index{circogen/stack.\-h@{circogen/stack.\-h}!free\-Stack@{free\-Stack}}
\index{free\-Stack@{free\-Stack}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{free\-Stack}]{\setlength{\rightskip}{0pt plus 5cm}void free\-Stack (
\begin{DoxyParamCaption}
\item[{{\bf nstack\-\_\-t} $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{circogen_2stack_8h_a4cbe473dc6009daadec32864c4af8e6c}


Definition at line 30 of file stack.\-c.



Referenced by closest\-\_\-pairs2graph().

\index{circogen/stack.\-h@{circogen/stack.\-h}!mk\-Stack@{mk\-Stack}}
\index{mk\-Stack@{mk\-Stack}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{mk\-Stack}]{\setlength{\rightskip}{0pt plus 5cm}{\bf nstack\-\_\-t}$\ast$ mk\-Stack (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{circogen_2stack_8h_a5aeaec0b6bbf2a2875af760af93b2045}


Definition at line 19 of file stack.\-c.



References N\-E\-W, N\-U\-L\-L, nstack\-\_\-t\-::sz, and nstack\-\_\-t\-::top.

\index{circogen/stack.\-h@{circogen/stack.\-h}!stack\-Check@{stack\-Check}}
\index{stack\-Check@{stack\-Check}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{stack\-Check}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} stack\-Check (
\begin{DoxyParamCaption}
\item[{{\bf nstack\-\_\-t} $\ast$}]{s, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{circogen_2stack_8h_a00ee4db16c7eeca176bc1798134691bb}


Definition at line 67 of file stack.\-c.



References node(), N\-U\-L\-L, O\-N\-S\-T\-A\-C\-K, nstack\-\_\-t\-::top, and top.

\index{circogen/stack.\-h@{circogen/stack.\-h}!stack\-Pop@{stack\-Pop}}
\index{stack\-Pop@{stack\-Pop}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{stack\-Pop}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Agnode\-\_\-t}$\ast$ stack\-Pop (
\begin{DoxyParamCaption}
\item[{{\bf nstack\-\_\-t} $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{circogen_2stack_8h_aef693c7765a09552a3a8157daa2fec1a}


Definition at line 43 of file stack.\-c.



References assert, N\-E\-X\-T, nstack\-\_\-t\-::sz, nstack\-\_\-t\-::top, top, and U\-N\-S\-E\-T\-\_\-\-O\-N\-S\-T\-A\-C\-K.

\index{circogen/stack.\-h@{circogen/stack.\-h}!stack\-Push@{stack\-Push}}
\index{stack\-Push@{stack\-Push}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{stack\-Push}]{\setlength{\rightskip}{0pt plus 5cm}void stack\-Push (
\begin{DoxyParamCaption}
\item[{{\bf nstack\-\_\-t} $\ast$}]{s, }
\item[{{\bf Agnode\-\_\-t} $\ast$}]{n}
\end{DoxyParamCaption}
)}\label{circogen_2stack_8h_a429650728ecafed66555506b22ce5b65}


Definition at line 35 of file stack.\-c.



References N\-E\-X\-T, S\-E\-T\-\_\-\-O\-N\-S\-T\-A\-C\-K, nstack\-\_\-t\-::sz, and nstack\-\_\-t\-::top.

\index{circogen/stack.\-h@{circogen/stack.\-h}!stack\-Size@{stack\-Size}}
\index{stack\-Size@{stack\-Size}!circogen/stack.h@{circogen/stack.\-h}}
\subsubsection[{stack\-Size}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} stack\-Size (
\begin{DoxyParamCaption}
\item[{{\bf nstack\-\_\-t} $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{circogen_2stack_8h_a82c0227a75b0c3fe31ba2921afc132f8}


Definition at line 59 of file stack.\-c.



References nstack\-\_\-t\-::sz.

