\hypertarget{a00424}{
\section{mln::value::int\_\-u$<$ n $>$ Struct Template Reference}
\label{dc/df3/a00424}\index{mln::value::int\_\-u@{mln::value::int\_\-u}}
}


Unsigned integer value class.  




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



Inheritance diagram for mln::value::int\_\-u$<$ n $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=260pt]{d0/d54/a04033}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00424_a2a26a2fb74d14718db42c70da8229c57}{int\_\-u} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
\hyperlink{a00424_a6f8cb691e6737fe001660899d8d7a02d}{int\_\-u} (int i)
\begin{DoxyCompactList}\small\item\em Constructor from an integer. \item\end{DoxyCompactList}\item 
\hyperlink{a00424}{int\_\-u}$<$ n $>$ \hyperlink{a00424_afa41d89b72a24c7f8edf36478f07679b}{next} () const 
\begin{DoxyCompactList}\small\item\em Give the next value (i.e., i + 1). \item\end{DoxyCompactList}\item 
\hyperlink{a00424_ac1fd4d0caf5e0043e54e632b659580ad}{operator unsigned} () const 
\begin{DoxyCompactList}\small\item\em Conversion to an unsigned integer. \item\end{DoxyCompactList}\item 
int \hyperlink{a00424_a99990703c92f50d3d2a36c26dd0018d7}{operator-\/} () const 
\begin{DoxyCompactList}\small\item\em Unary operator minus. \item\end{DoxyCompactList}\item 
\hyperlink{a00424}{int\_\-u}$<$ n $>$ \& \hyperlink{a00424_af62c84d2fee813e3d0b41666af16044b}{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{a00424_acad9870932425370693785dce26b1723}{int\_\-u} (const \hyperlink{a00280}{mln::literal::zero\_\-t} \&)
\begin{DoxyCompactList}\small\item\em Constructors/assignments with literals. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


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

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

Definition at line 156 of file int\_\-u.hh.



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


Constructor without argument. 



Definition at line 276 of file int\_\-u.hh.

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


Constructor from an integer. 



Definition at line 282 of file int\_\-u.hh.

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


Constructors/assignments with literals. 



Definition at line 291 of file int\_\-u.hh.



\subsection{Member Function Documentation}
\hypertarget{a00424_afa41d89b72a24c7f8edf36478f07679b}{
\index{mln::value::int\_\-u@{mln::value::int\_\-u}!next@{next}}
\index{next@{next}!mln::value::int_u@{mln::value::int\_\-u}}
\subsubsection[{next}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf int\_\-u}$<$ n $>$ {\bf mln::value::int\_\-u}$<$ n $>$::next (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dc/df3/a00424_afa41d89b72a24c7f8edf36478f07679b}


Give the next value (i.e., i + 1). 



Definition at line 350 of file int\_\-u.hh.

\hypertarget{a00424_ac1fd4d0caf5e0043e54e632b659580ad}{
\index{mln::value::int\_\-u@{mln::value::int\_\-u}!operator unsigned@{operator unsigned}}
\index{operator unsigned@{operator unsigned}!mln::value::int_u@{mln::value::int\_\-u}}
\subsubsection[{operator unsigned}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::int\_\-u}$<$ n $>$::operator unsigned (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dc/df3/a00424_ac1fd4d0caf5e0043e54e632b659580ad}


Conversion to an unsigned integer. 



Definition at line 323 of file int\_\-u.hh.

\hypertarget{a00424_a99990703c92f50d3d2a36c26dd0018d7}{
\index{mln::value::int\_\-u@{mln::value::int\_\-u}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!mln::value::int_u@{mln::value::int\_\-u}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ int {\bf mln::value::int\_\-u}$<$ n $>$::operator-\/ (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dc/df3/a00424_a99990703c92f50d3d2a36c26dd0018d7}


Unary operator minus. 



Definition at line 331 of file int\_\-u.hh.

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


Assignment from an integer. 



Definition at line 339 of file int\_\-u.hh.

