\hypertarget{descriptions_8ic}{
\section{descriptions.ic File Reference}
\label{descriptions_8ic}\index{descriptions.ic@{descriptions.ic}}
}
Static inline functions that calculate some simple component properties.  


{\tt \#include \char`\"{}AG\_\-descriptions\_\-s.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
static size\_\-t \hyperlink{descriptions_8ic_7f08f0d60230b8fb0ac6fd3471bc8e0c}{sizeofCpt} (const \hyperlink{structCptDescription}{CptDescription} $\ast$cd)
\begin{CompactList}\small\item\em Returns the volume of the component. \item\end{CompactList}\item 
static void \hyperlink{descriptions_8ic_d3a2b973ba119bec19ac274279bcc6b6}{clearCpt} (void $\ast$cpt, const \hyperlink{structCptDescription}{CptDescription} $\ast$cd)
\begin{CompactList}\small\item\em Clears all the bits of the data block, assuming that it is described by the \hyperlink{structCptDescription}{CptDescription}. \item\end{CompactList}\item 
static void \hyperlink{descriptions_8ic_7dd4f593dd62ea00a4ae758f2c54e5c1}{copyCpt} (void $\ast$cpt, const void $\ast$source, const \hyperlink{structCptDescription}{CptDescription} $\ast$cd)
\begin{CompactList}\small\item\em Copy from {\em source\/} to {\em dest\/}. \item\end{CompactList}\item 
static int \hyperlink{descriptions_8ic_b6c53a6fa94f30d9afdddeebe928465a}{compareCpt} (const void $\ast$cpt, const void $\ast$that, const \hyperlink{structCptDescription}{CptDescription} $\ast$cd)
\begin{CompactList}\small\item\em Compare two components. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Static inline functions that calculate some simple component properties. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu} \end{Desc}


\subsection{Function Documentation}
\hypertarget{descriptions_8ic_d3a2b973ba119bec19ac274279bcc6b6}{
\index{descriptions.ic@{descriptions.ic}!clearCpt@{clearCpt}}
\index{clearCpt@{clearCpt}!descriptions.ic@{descriptions.ic}}
\subsubsection[{clearCpt}]{\setlength{\rightskip}{0pt plus 5cm}void clearCpt (void $\ast$ {\em cpt}, \/  const {\bf CptDescription} $\ast$ {\em cd})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{descriptions_8ic_d3a2b973ba119bec19ac274279bcc6b6}


Clears all the bits of the data block, assuming that it is described by the \hyperlink{structCptDescription}{CptDescription}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpt}]Pointer to start of the component data \item[{\em cd}]Description of the component registers \end{description}
\end{Desc}


References sizeofCpt().\hypertarget{descriptions_8ic_b6c53a6fa94f30d9afdddeebe928465a}{
\index{descriptions.ic@{descriptions.ic}!compareCpt@{compareCpt}}
\index{compareCpt@{compareCpt}!descriptions.ic@{descriptions.ic}}
\subsubsection[{compareCpt}]{\setlength{\rightskip}{0pt plus 5cm}int compareCpt (const void $\ast$ {\em this}, \/  const void $\ast$ {\em that}, \/  const {\bf CptDescription} $\ast$ {\em cd})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{descriptions_8ic_b6c53a6fa94f30d9afdddeebe928465a}


Compare two components. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em this}]Pointer to one of the components being compared \item[{\em that}]Pointer to the other component be compared \item[{\em cd}]Description of the component registers \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0}]if identical \item[{\em non-zero}]if different \end{description}
\end{Desc}


References sizeofCpt().\hypertarget{descriptions_8ic_7dd4f593dd62ea00a4ae758f2c54e5c1}{
\index{descriptions.ic@{descriptions.ic}!copyCpt@{copyCpt}}
\index{copyCpt@{copyCpt}!descriptions.ic@{descriptions.ic}}
\subsubsection[{copyCpt}]{\setlength{\rightskip}{0pt plus 5cm}void copyCpt (void $\ast$ {\em dest}, \/  const void $\ast$ {\em source}, \/  const {\bf CptDescription} $\ast$ {\em cd})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{descriptions_8ic_7dd4f593dd62ea00a4ae758f2c54e5c1}


Copy from {\em source\/} to {\em dest\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dest}]Destination to copy to \item[{\em source}]Place to copy from \item[{\em cd}]Description of the component registers \end{description}
\end{Desc}


References sizeofCpt().\hypertarget{descriptions_8ic_7f08f0d60230b8fb0ac6fd3471bc8e0c}{
\index{descriptions.ic@{descriptions.ic}!sizeofCpt@{sizeofCpt}}
\index{sizeofCpt@{sizeofCpt}!descriptions.ic@{descriptions.ic}}
\subsubsection[{sizeofCpt}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t sizeofCpt (const {\bf CptDescription} $\ast$ {\em cd})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{descriptions_8ic_7f08f0d60230b8fb0ac6fd3471bc8e0c}


Returns the volume of the component. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cd}]Description of the component registers \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Size of data volume required to hold the component \end{Desc}


References CptDescription::nregs, and CptDescription::width.

Referenced by clearCpt(), compareCpt(), copyCpt(), and LATC\_\-record().