\hypertarget{a00423}{
\section{mln::value::int\_\-s$<$ n $>$ Struct Template Reference}
\label{d1/d05/a00423}\index{mln::value::int\_\-s@{mln::value::int\_\-s}}
}


Signed integer value class.  




{\ttfamily \#include $<$int\_\-s.hh$>$}



Inheritance diagram for mln::value::int\_\-s$<$ n $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=258pt]{d4/dd6/a04031}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00423_aed1322a01c4523ccbd1dce32237bfe80}{int\_\-s} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
\hyperlink{a00423_a91b258058b896908ea7ac53998eddd48}{int\_\-s} (int i)
\begin{DoxyCompactList}\small\item\em Constructor from an integer. \item\end{DoxyCompactList}\item 
\hyperlink{a00423_aaa3f776b9a0e9f9bf59b45d3847a4c94}{operator int} () const 
\begin{DoxyCompactList}\small\item\em Conversion to an integer. \item\end{DoxyCompactList}\item 
\hyperlink{a00423}{int\_\-s}$<$ n $>$ \& \hyperlink{a00423_a11bcc904930eaa6c6276236428c74a91}{operator=} (int i)
\begin{DoxyCompactList}\small\item\em Assignment from an integer. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00423_a9c55c39bf5892172aafbe51aa246d485}{int\_\-s} (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{a00423}{int\_\-s}$<$ n $>$ \hyperlink{a00423_a824237384e3e42e66ee591e00de02c92}{one} = 1
\begin{DoxyCompactList}\small\item\em Unit value. \item\end{DoxyCompactList}\item 
static const \hyperlink{a00423}{int\_\-s}$<$ n $>$ \hyperlink{a00423_aab2da8da25b8d3f1ce3255f48d3a41b8}{zero} = 0
\begin{DoxyCompactList}\small\item\em Zero value. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$unsigned n$>$ struct mln::value::int\_\-s$<$ n $>$}

Signed integer value class. The parameter is {\ttfamily n} the number of encoding bits. 

Definition at line 115 of file int\_\-s.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00423_aed1322a01c4523ccbd1dce32237bfe80}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!int\_\-s@{int\_\-s}}
\index{int\_\-s@{int\_\-s}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{int\_\-s}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::int\_\-s}$<$ n $>$::{\bf int\_\-s} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d05/a00423_aed1322a01c4523ccbd1dce32237bfe80}


Constructor without argument. 



Definition at line 179 of file int\_\-s.hh.

\hypertarget{a00423_a91b258058b896908ea7ac53998eddd48}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!int\_\-s@{int\_\-s}}
\index{int\_\-s@{int\_\-s}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{int\_\-s}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::int\_\-s}$<$ n $>$::{\bf int\_\-s} (
\begin{DoxyParamCaption}
\item[{int}]{ i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d05/a00423_a91b258058b896908ea7ac53998eddd48}


Constructor from an integer. 



Definition at line 192 of file int\_\-s.hh.

\hypertarget{a00423_a9c55c39bf5892172aafbe51aa246d485}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!int\_\-s@{int\_\-s}}
\index{int\_\-s@{int\_\-s}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{int\_\-s}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::int\_\-s}$<$ n $>$::{\bf int\_\-s} (
\begin{DoxyParamCaption}
\item[{const {\bf mln::literal::zero\_\-t} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d05/a00423_a9c55c39bf5892172aafbe51aa246d485}


Constructors/assignments with literals. 



Definition at line 222 of file int\_\-s.hh.



\subsection{Member Function Documentation}
\hypertarget{a00423_aaa3f776b9a0e9f9bf59b45d3847a4c94}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!operator int@{operator int}}
\index{operator int@{operator int}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{operator int}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::int\_\-s}$<$ n $>$::operator int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d05/a00423_aaa3f776b9a0e9f9bf59b45d3847a4c94}


Conversion to an integer. 



Definition at line 185 of file int\_\-s.hh.

\hypertarget{a00423_a11bcc904930eaa6c6276236428c74a91}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf int\_\-s}$<$ n $>$ \& {\bf mln::value::int\_\-s}$<$ n $>$::operator= (
\begin{DoxyParamCaption}
\item[{int}]{ i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d05/a00423_a11bcc904930eaa6c6276236428c74a91}


Assignment from an integer. 



Definition at line 207 of file int\_\-s.hh.



\subsection{Member Data Documentation}
\hypertarget{a00423_a824237384e3e42e66ee591e00de02c92}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!one@{one}}
\index{one@{one}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{one}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ const {\bf int\_\-s}$<$ n $>$ {\bf mln::value::int\_\-s}$<$ n $>$::{\bf one} = 1\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{d1/d05/a00423_a824237384e3e42e66ee591e00de02c92}


Unit value. 



Definition at line 149 of file int\_\-s.hh.

\hypertarget{a00423_aab2da8da25b8d3f1ce3255f48d3a41b8}{
\index{mln::value::int\_\-s@{mln::value::int\_\-s}!zero@{zero}}
\index{zero@{zero}!mln::value::int_s@{mln::value::int\_\-s}}
\subsubsection[{zero}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ const {\bf int\_\-s}$<$ n $>$ {\bf mln::value::int\_\-s}$<$ n $>$::{\bf zero} = 0\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{d1/d05/a00423_aab2da8da25b8d3f1ce3255f48d3a41b8}


Zero value. 



Definition at line 146 of file int\_\-s.hh.

