\section{abitset.C File Reference}
\label{abitset_C}\index{abitset.C@{abitset.C}}
{\tt \#include $<$iostream.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$signal.h$>$}\par
{\tt \#include "utils.h"}\par
{\tt \#include "ajiobin.h"}\par
{\tt \#include "abitset.h"}\par


Include dependency graph for abitset.C:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=205pt]{abitset_C_incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\bf uint} {\bf b2c0} ({\bf uint} i)
\item 
{\bf uint} {\bf b2c1} ({\bf uint} i)
\item 
char {\bf b2i} ({\bf uint} i)
\item 
ostream\& {\bf operator$<$$<$} (ostream \&os, const {\bf ABit\-Set} \&abs)
\item 
ostream\& {\bf Output\-Binary} (ostream \&os, const {\bf ABit\-Set} \&bs)
\item 
istream\& {\bf Input\-Binary} (istream \&is, {\bf ABit\-Set} \&bs)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
const char {\bf all\_\-set} [8] = \{255,1,3,7,15,31,63,127\}
\end{CompactItemize}


\subsection{Function Documentation}
\index{abitset.C@{abitset.C}!InputBinary@{InputBinary}}
\index{InputBinary@{InputBinary}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}istream \& Input\-Binary (istream \& {\em is}, {\bf ABit\-Set} \& {\em bs})}\label{abitset_C_a6}




Definition at line 448 of file abitset.C.

Referenced by Input\-Binary(), and operator$>$=().\footnotesize\begin{verbatim}00449 {
00450         if (!is)
00451                 return is;
00452 
00453         uint    n;
00454         InputBinary(is,n);
00455 
00456         delete[] bs.data;
00457         bs.num = n;
00458         bs.data = new char[b2c1(n)];
00459         if (!bs.data)
00460                 raise(SIGQUIT);
00461 
00462         is.read(bs.data, b2c1(bs.num));
00463         return is;
00464 \end{verbatim}\normalsize 
\index{abitset.C@{abitset.C}!OutputBinary@{OutputBinary}}
\index{OutputBinary@{OutputBinary}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ostream \& Output\-Binary (ostream \& {\em os}, const {\bf ABit\-Set} \& {\em bs})}\label{abitset_C_a5}




Definition at line 436 of file abitset.C.

Referenced by Output\-Binary(), and operator$<$=().\footnotesize\begin{verbatim}00437 {
00438         if (!os)
00439                 return os;
00440         OutputBinary(os,bs.num);
00441         if (!os)
00442                 return os;
00443         os.write(bs.data, b2c1(bs.num));
00444         return os;
00445 \end{verbatim}\normalsize 
\index{abitset.C@{abitset.C}!b2c0@{b2c0}}
\index{b2c0@{b2c0}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} b2c0 ({\bf uint} {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{abitset_C_a1}




Definition at line 13 of file abitset.C.

Referenced by ABit\-Set::Clear(), ABit\-Set::Invert(), ABit\-Set::Set(), and ABit\-Set::operator[$\,$]().\footnotesize\begin{verbatim}00014 {
00015         return i/8;
00016 \end{verbatim}\normalsize 
\index{abitset.C@{abitset.C}!b2c1@{b2c1}}
\index{b2c1@{b2c1}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} b2c1 ({\bf uint} {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{abitset_C_a2}




Definition at line 18 of file abitset.C.

Referenced by ABit\-Set::ABit\-Set(), ABit\-Set::Clear\-All(), ABit\-Set::Compare(), ABit\-Set::Count(), ABit\-Set::Decrement(), ABit\-Set::Increment(), Input\-Binary(), ABit\-Set::Invert\-All(), ABit\-Set::Is\-All\-Clear(), ABit\-Set::Is\-All\-Set(), Output\-Binary(), ABit\-Set::Set\-All(), ABit\-Set::operator \&=(), ABit\-Set::operator-=(), ABit\-Set::operator=(), ABit\-Set::operator$^\wedge$=(), and ABit\-Set::operator$|$=().\footnotesize\begin{verbatim}00019 {
00020         return (i+7)/8;
00021 \end{verbatim}\normalsize 
\index{abitset.C@{abitset.C}!b2i@{b2i}}
\index{b2i@{b2i}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char b2i ({\bf uint} {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{abitset_C_a3}




Definition at line 23 of file abitset.C.

Referenced by ABit\-Set::Invert(), ABit\-Set::Set(), and ABit\-Set::operator[$\,$]().\footnotesize\begin{verbatim}00024 {
00025         return 1 << (i%8);
00026 \end{verbatim}\normalsize 
\index{abitset.C@{abitset.C}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ostream \& operator$<$$<$ (ostream \& {\em os}, const {\bf ABit\-Set} \& {\em abs})}\label{abitset_C_a4}




Definition at line 367 of file abitset.C.\footnotesize\begin{verbatim}00368 {
00369         os << '<';
00370         for (uint i=0; i<abs.num; ++i)
00371                 os << (abs[i] ? '1' : '0');
00372         os << '>';
00373         return os;
00374 \end{verbatim}\normalsize 


\subsection{Variable Documentation}
\index{abitset.C@{abitset.C}!all_set@{all\_\-set}}
\index{all_set@{all\_\-set}!abitset.C@{abitset.C}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char all\_\-set[8] = \{255,1,3,7,15,31,63,127\}\hspace{0.3cm}{\tt  [static]}}\label{abitset_C_a0}




Definition at line 10 of file abitset.C.