\hypertarget{a00433}{
\section{mln::value::sign Class Reference}
\label{dd/d07/a00433}\index{mln::value::sign@{mln::value::sign}}
}


The sign class represents the value type composed by the set (-\/1, 0, 1) sign value type is a subset of the int value type.  




{\ttfamily \#include $<$sign.hh$>$}



Inherits Integer$<$ sign $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef int \hyperlink{a00433_a5b917c700f1fa75ca390de551f632361}{enc}
\begin{DoxyCompactList}\small\item\em FIXME Are these typedefs correct? \item\end{DoxyCompactList}\item 
typedef int \hyperlink{a00433_aca88997410b514839248dc6248c266f9}{equiv}
\begin{DoxyCompactList}\small\item\em Define the equivalent type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00433_a0e53c9f2dc9ecb56ea2b3b62eeefe8f6}{operator int} () const 
\begin{DoxyCompactList}\small\item\em Conversion to an integer. \item\end{DoxyCompactList}\item 
\hyperlink{a00433}{sign} \& \hyperlink{a00433_adedb72725e629bf4d02b51cfafed483a}{operator=} (int i)
\begin{DoxyCompactList}\small\item\em Assignment from an integer. \item\end{DoxyCompactList}\item 
\hyperlink{a00433_af08d6b8571efbddff6f3cc85a6970f78}{sign} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
\hyperlink{a00433_a8051c6c5ac6d5eda7f05b87f638f39c7}{sign} (int i)
\begin{DoxyCompactList}\small\item\em Constructor from an integer. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00433_aab5422f345df69bd4cf2b3cf978c2945}{sign} (const \hyperlink{a00280}{mln::literal::zero\_\-t} \&)
\begin{DoxyCompactList}\small\item\em Constructors/assignments with literals. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const \hyperlink{a00433}{sign} \hyperlink{a00433_ab59390e358a20622e188b61915f752c9}{one} = 1
\begin{DoxyCompactList}\small\item\em Unit value. \item\end{DoxyCompactList}\item 
static const \hyperlink{a00433}{sign} \hyperlink{a00433_ad130ac877bf8a783285c9b80c1e8fee7}{zero} = 0
\begin{DoxyCompactList}\small\item\em Zero value. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The sign class represents the value type composed by the set (-\/1, 0, 1) sign value type is a subset of the int value type. 

Definition at line 49 of file value/sign.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00433_a5b917c700f1fa75ca390de551f632361}{
\index{mln::value::sign@{mln::value::sign}!enc@{enc}}
\index{enc@{enc}!mln::value::sign@{mln::value::sign}}
\subsubsection[{enc}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf mln::value::sign::enc}}}
\label{dd/d07/a00433_a5b917c700f1fa75ca390de551f632361}


FIXME Are these typedefs correct? 

Define the encoding type 

Definition at line 55 of file value/sign.hh.

\hypertarget{a00433_aca88997410b514839248dc6248c266f9}{
\index{mln::value::sign@{mln::value::sign}!equiv@{equiv}}
\index{equiv@{equiv}!mln::value::sign@{mln::value::sign}}
\subsubsection[{equiv}]{\setlength{\rightskip}{0pt plus 5cm}typedef int {\bf mln::value::sign::equiv}}}
\label{dd/d07/a00433_aca88997410b514839248dc6248c266f9}


Define the equivalent type. 



Definition at line 58 of file value/sign.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00433_af08d6b8571efbddff6f3cc85a6970f78}{
\index{mln::value::sign@{mln::value::sign}!sign@{sign}}
\index{sign@{sign}!mln::value::sign@{mln::value::sign}}
\subsubsection[{sign}]{\setlength{\rightskip}{0pt plus 5cm}mln::value::sign::sign (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d07/a00433_af08d6b8571efbddff6f3cc85a6970f78}


Constructor without argument. 



Definition at line 119 of file value/sign.hh.

\hypertarget{a00433_a8051c6c5ac6d5eda7f05b87f638f39c7}{
\index{mln::value::sign@{mln::value::sign}!sign@{sign}}
\index{sign@{sign}!mln::value::sign@{mln::value::sign}}
\subsubsection[{sign}]{\setlength{\rightskip}{0pt plus 5cm}mln::value::sign::sign (
\begin{DoxyParamCaption}
\item[{int}]{ i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d07/a00433_a8051c6c5ac6d5eda7f05b87f638f39c7}


Constructor from an integer. 



Definition at line 137 of file value/sign.hh.

\hypertarget{a00433_aab5422f345df69bd4cf2b3cf978c2945}{
\index{mln::value::sign@{mln::value::sign}!sign@{sign}}
\index{sign@{sign}!mln::value::sign@{mln::value::sign}}
\subsubsection[{sign}]{\setlength{\rightskip}{0pt plus 5cm}mln::value::sign::sign (
\begin{DoxyParamCaption}
\item[{const {\bf mln::literal::zero\_\-t} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d07/a00433_aab5422f345df69bd4cf2b3cf978c2945}


Constructors/assignments with literals. 



Definition at line 155 of file value/sign.hh.



\subsection{Member Function Documentation}
\hypertarget{a00433_a0e53c9f2dc9ecb56ea2b3b62eeefe8f6}{
\index{mln::value::sign@{mln::value::sign}!operator int@{operator int}}
\index{operator int@{operator int}!mln::value::sign@{mln::value::sign}}
\subsubsection[{operator int}]{\setlength{\rightskip}{0pt plus 5cm}mln::value::sign::operator int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d07/a00433_a0e53c9f2dc9ecb56ea2b3b62eeefe8f6}


Conversion to an integer. 



Definition at line 124 of file value/sign.hh.

\hypertarget{a00433_adedb72725e629bf4d02b51cfafed483a}{
\index{mln::value::sign@{mln::value::sign}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::sign@{mln::value::sign}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf sign} \& mln::value::sign::operator= (
\begin{DoxyParamCaption}
\item[{int}]{ i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d07/a00433_adedb72725e629bf4d02b51cfafed483a}


Assignment from an integer. 



Definition at line 146 of file value/sign.hh.



\subsection{Member Data Documentation}
\hypertarget{a00433_ab59390e358a20622e188b61915f752c9}{
\index{mln::value::sign@{mln::value::sign}!one@{one}}
\index{one@{one}!mln::value::sign@{mln::value::sign}}
\subsubsection[{one}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf sign} {\bf mln::value::sign::one} = 1\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dd/d07/a00433_ab59390e358a20622e188b61915f752c9}


Unit value. 



Definition at line 88 of file value/sign.hh.

\hypertarget{a00433_ad130ac877bf8a783285c9b80c1e8fee7}{
\index{mln::value::sign@{mln::value::sign}!zero@{zero}}
\index{zero@{zero}!mln::value::sign@{mln::value::sign}}
\subsubsection[{zero}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf sign} {\bf mln::value::sign::zero} = 0\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{dd/d07/a00433_ad130ac877bf8a783285c9b80c1e8fee7}


Zero value. 



Definition at line 85 of file value/sign.hh.

