\section{chain.h File Reference}
\label{chain_8h}\index{chain.h@{chain.h}}
{\tt \#include \char`\"{}sadie\_\-byte.h\char`\"{}}\par
{\tt \#include \char`\"{}mosaic.h\char`\"{}}\par
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct {\bf CHAIN}
\item 
struct {\bf chain\_\-node}
\item 
struct {\bf list\_\-node}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf NORMAL}\ 0
\item 
\#define {\bf ADDED}\ 1
\item 
\#define {\bf REMOVED}\ 2
\item 
\#define {\bf TERM\_\-CODE}\ 9
\item 
\#define {\bf TERM\_\-VALID}\ 0
\item 
\#define {\bf CHAIN\_\-HEADER\_\-SIZE}\ 512
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef {\bf chain\_\-node} {\bf CHAIN\_\-NODE}
\item 
typedef {\bf list\_\-node} {\bf LIST\_\-NODE}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf RELMEM\_\-CHAIN} ({\bf CHAIN} $\ast$)
\item 
void {\bf CHAIN2DISK} ({\bf CHAIN} $\ast$, char $\ast$)
\item 
void {\bf SCALE\_\-CHAIN} ({\bf CHAIN} $\ast$, int, {\bf CHAIN} $\ast$$\ast$)
\item 
void {\bf DISK2CHAIN} (char $\ast$, {\bf CHAIN} $\ast$$\ast$)
\item 
void {\bf CHAIN\_\-COMPUTE\_\-COORDINATES} (int, int, unsigned char, int $\ast$, int $\ast$)
\item 
void {\bf CHAIN\_\-COMPUTE\_\-CODE} (int, int, int, int, unsigned char $\ast$)
\item 
void {\bf CHAIN\_\-RINGWIDTHS} ({\bf IMAGE\_\-BYTE} $\ast$, {\bf MOSAIC\_\-INDEX} $\ast$, {\bf CHAIN} $\ast$, {\bf IMAGE\_\-BYTE} $\ast$$\ast$, int $\ast$, double $\ast$$\ast$)
\item 
void {\bf SYNTHESIZE\_\-INSERT\_\-RING} ({\bf CHAIN} $\ast$, int, int, int)
\end{CompactItemize}


\subsection{Define Documentation}
\index{chain.h@{chain.h}!ADDED@{ADDED}}
\index{ADDED@{ADDED}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ADDED\ 1}\label{chain_8h_a1}




Definition at line 13 of file chain.h.

Referenced by Sadie\_\-TREES\_\-Display\-Part\-Rings\-Cmd, Sadie\_\-TREES\_\-Display\-Rings\-Cmd, Sadie\_\-TREES\_\-Query\-Ring\-Type\-Cmd, Sadie\_\-TREES\_\-Remove\-Ring\-Cmd, Sadie\_\-TREES\_\-Un\-Remove\-Ring\-Cmd, and SYNTHESIZE\_\-INSERT\_\-RING.\index{chain.h@{chain.h}!CHAIN_HEADER_SIZE@{CHAIN\_\-HEADER\_\-SIZE}}
\index{CHAIN_HEADER_SIZE@{CHAIN\_\-HEADER\_\-SIZE}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define CHAIN\_\-HEADER\_\-SIZE\ 512}\label{chain_8h_a5}




Definition at line 18 of file chain.h.

Referenced by CHAIN2DISK, DISK2CHAIN, and SCALE\_\-CHAIN.\index{chain.h@{chain.h}!NORMAL@{NORMAL}}
\index{NORMAL@{NORMAL}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define NORMAL\ 0}\label{chain_8h_a0}




Definition at line 12 of file chain.h.

Referenced by Sadie\_\-TREES\_\-Display\-Part\-Rings\-Cmd, Sadie\_\-TREES\_\-Display\-Rings\-Cmd, Sadie\_\-TREES\_\-Ext\_\-Track\-Rings\-Cmd, Sadie\_\-TREES\_\-Query\-Ring\-Type\-Cmd, Sadie\_\-TREES\_\-Remove\-Ring\-Cmd, and Sadie\_\-TREES\_\-Un\-Remove\-Ring\-Cmd.\index{chain.h@{chain.h}!REMOVED@{REMOVED}}
\index{REMOVED@{REMOVED}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define REMOVED\ 2}\label{chain_8h_a2}




Definition at line 14 of file chain.h.

Referenced by Sadie\_\-TREES\_\-Display\-Part\-Rings\-Cmd, Sadie\_\-TREES\_\-Display\-Rings\-Cmd, Sadie\_\-TREES\_\-Query\-Ring\-Type\-Cmd, Sadie\_\-TREES\_\-Remove\-Ring\-Cmd, and Sadie\_\-TREES\_\-Un\-Remove\-Ring\-Cmd.\index{chain.h@{chain.h}!TERM_CODE@{TERM\_\-CODE}}
\index{TERM_CODE@{TERM\_\-CODE}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TERM\_\-CODE\ 9}\label{chain_8h_a3}




Definition at line 16 of file chain.h.

Referenced by CHAIN2DISK, and DISK2CHAIN.\index{chain.h@{chain.h}!TERM_VALID@{TERM\_\-VALID}}
\index{TERM_VALID@{TERM\_\-VALID}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TERM\_\-VALID\ 0}\label{chain_8h_a4}




Definition at line 17 of file chain.h.

Referenced by CHAIN2DISK.

\subsection{Typedef Documentation}
\index{chain.h@{chain.h}!CHAIN_NODE@{CHAIN\_\-NODE}}
\index{CHAIN_NODE@{CHAIN\_\-NODE}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf chain\_\-node}                        CHAIN\_\-NODE}\label{chain_8h_a6}


\index{chain.h@{chain.h}!LIST_NODE@{LIST\_\-NODE}}
\index{LIST_NODE@{LIST\_\-NODE}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf list\_\-node}                        LIST\_\-NODE}\label{chain_8h_a7}




\subsection{Function Documentation}
\index{chain.h@{chain.h}!CHAIN2DISK@{CHAIN2DISK}}
\index{CHAIN2DISK@{CHAIN2DISK}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CHAIN2DISK ({\bf CHAIN} $\ast$, char $\ast$)}\label{chain_8h_a9}




Definition at line 6 of file chain2disk.c.\index{chain.h@{chain.h}!CHAIN_COMPUTE_CODE@{CHAIN\_\-COMPUTE\_\-CODE}}
\index{CHAIN_COMPUTE_CODE@{CHAIN\_\-COMPUTE\_\-CODE}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CHAIN\_\-COMPUTE\_\-CODE (int, int, int, int, unsigned char $\ast$)}\label{chain_8h_a13}




Definition at line 103 of file chain\_\-code.c.\index{chain.h@{chain.h}!CHAIN_COMPUTE_COORDINATES@{CHAIN\_\-COMPUTE\_\-COORDINATES}}
\index{CHAIN_COMPUTE_COORDINATES@{CHAIN\_\-COMPUTE\_\-COORDINATES}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CHAIN\_\-COMPUTE\_\-COORDINATES (int, int, unsigned {\em char}, int $\ast$, int $\ast$)}\label{chain_8h_a12}




Definition at line 39 of file chain\_\-code.c.

References list\_\-node::ring\_\-type.\index{chain.h@{chain.h}!CHAIN_RINGWIDTHS@{CHAIN\_\-RINGWIDTHS}}
\index{CHAIN_RINGWIDTHS@{CHAIN\_\-RINGWIDTHS}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CHAIN\_\-RINGWIDTHS ({\bf IMAGE\_\-BYTE} $\ast$, {\bf MOSAIC\_\-INDEX} $\ast$, {\bf CHAIN} $\ast$, {\bf IMAGE\_\-BYTE} $\ast$$\ast$, int $\ast$, double $\ast$$\ast$)}\label{chain_8h_a14}




Referenced by Sadie\_\-TREES\_\-Chain\_\-Ring\-Widths\-Cmd.\index{chain.h@{chain.h}!DISK2CHAIN@{DISK2CHAIN}}
\index{DISK2CHAIN@{DISK2CHAIN}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DISK2CHAIN (char $\ast$, {\bf CHAIN} $\ast$$\ast$)}\label{chain_8h_a11}




Definition at line 6 of file disk2chain.c.\index{chain.h@{chain.h}!RELMEM_CHAIN@{RELMEM\_\-CHAIN}}
\index{RELMEM_CHAIN@{RELMEM\_\-CHAIN}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void RELMEM\_\-CHAIN ({\bf CHAIN} $\ast$)}\label{chain_8h_a8}




Definition at line 20 of file chain\_\-code.c.\index{chain.h@{chain.h}!SCALE_CHAIN@{SCALE\_\-CHAIN}}
\index{SCALE_CHAIN@{SCALE\_\-CHAIN}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void SCALE\_\-CHAIN ({\bf CHAIN} $\ast$, int, {\bf CHAIN} $\ast$$\ast$)}\label{chain_8h_a10}




Definition at line 6 of file scale\_\-chain.c.\index{chain.h@{chain.h}!SYNTHESIZE_INSERT_RING@{SYNTHESIZE\_\-INSERT\_\-RING}}
\index{SYNTHESIZE_INSERT_RING@{SYNTHESIZE\_\-INSERT\_\-RING}!chain.h@{chain.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void SYNTHESIZE\_\-INSERT\_\-RING ({\bf CHAIN} $\ast$, int, int, int)}\label{chain_8h_a15}




Definition at line 6 of file insertring.c.