\hypertarget{a00421}{
\section{mln::value::graylevel$<$ n $>$ Struct Template Reference}
\label{d2/de1/a00421}\index{mln::value::graylevel@{mln::value::graylevel}}
}


General gray-\/level class on n bits.  




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



Inheritance diagram for mln::value::graylevel$<$ n $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=280pt]{d7/dcb/a04028}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00421_a5e06da78311d0c715c58232f5f32730f}{graylevel} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
\hyperlink{a00421_a418856c4da03ba69d0841fdf37bcff7d}{graylevel} (const \hyperlink{a00421}{graylevel}$<$ n $>$ \&rhs)
\begin{DoxyCompactList}\small\item\em Copy constructor. \item\end{DoxyCompactList}\item 
\hyperlink{a00421_a44aa4b8c1415e9255a4c51965d4d71fd}{graylevel} (int val)
\begin{DoxyCompactList}\small\item\em Constructor from int. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$unsigned m$>$ }\\\hyperlink{a00421_a44c8d9bfa821995373e279666b70c705}{graylevel} (const \hyperlink{a00421}{graylevel}$<$ m $>$ \&rhs)
\begin{DoxyCompactList}\small\item\em Constructor from any graylevel. \item\end{DoxyCompactList}\item 
\hyperlink{a00421}{graylevel}$<$ n $>$ \& \hyperlink{a00421_a54f44561f162d68232abca5b66a82c7d}{operator=} (const \hyperlink{a00421}{graylevel}$<$ n $>$ \&rhs)
\begin{DoxyCompactList}\small\item\em Assigment. \item\end{DoxyCompactList}\item 
\hyperlink{a00421}{graylevel}$<$ n $>$ \& \hyperlink{a00421_a06870fc395bd871f55dde868e5911c19}{operator=} (int val)
\begin{DoxyCompactList}\small\item\em Assigment with int. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$unsigned m$>$ }\\\hyperlink{a00421}{graylevel}$<$ n $>$ \& \hyperlink{a00421_a79469d9ca65620e10b997b1021a3e385}{operator=} (const \hyperlink{a00421}{graylevel}$<$ m $>$ \&rhs)
\begin{DoxyCompactList}\small\item\em Assigment with any graylevel. \item\end{DoxyCompactList}\item 
float \hyperlink{a00421_ababf08a50af0c5e619870998de44aa0b}{to\_\-float} () const 
\begin{DoxyCompactList}\small\item\em Conversion to float between 0 and 1. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00421_ab5b8c062bf52b3d3bc03d29fd1cc7eda}{value} () const 
\begin{DoxyCompactList}\small\item\em Access to std type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00421_a34d219b8eada84bb230a8e4d227d60cb}{graylevel} (const \hyperlink{a00258}{mln::literal::black\_\-t} \&)
\begin{DoxyCompactList}\small\item\em Ctors with literals. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00421}{graylevel}$<$ n $>$ \& \hyperlink{a00421_a3393b214126b1f90e3e074c806892654}{operator=} (const \hyperlink{a00258}{mln::literal::black\_\-t} \&)
\begin{DoxyCompactList}\small\item\em Assigment with literals. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$unsigned n$>$ struct mln::value::graylevel$<$ n $>$}

General gray-\/level class on n bits. 

Definition at line 257 of file graylevel.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00421_a5e06da78311d0c715c58232f5f32730f}{
\index{mln::value::graylevel@{mln::value::graylevel}!graylevel@{graylevel}}
\index{graylevel@{graylevel}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{graylevel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::graylevel}$<$ n $>$::{\bf graylevel} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a5e06da78311d0c715c58232f5f32730f}


Constructor without argument. 



Definition at line 436 of file graylevel.hh.

\hypertarget{a00421_a418856c4da03ba69d0841fdf37bcff7d}{
\index{mln::value::graylevel@{mln::value::graylevel}!graylevel@{graylevel}}
\index{graylevel@{graylevel}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{graylevel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::graylevel}$<$ n $>$::{\bf graylevel} (
\begin{DoxyParamCaption}
\item[{const {\bf graylevel}$<$ n $>$ \&}]{ rhs}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a418856c4da03ba69d0841fdf37bcff7d}


Copy constructor. 



Definition at line 463 of file graylevel.hh.

\hypertarget{a00421_a44aa4b8c1415e9255a4c51965d4d71fd}{
\index{mln::value::graylevel@{mln::value::graylevel}!graylevel@{graylevel}}
\index{graylevel@{graylevel}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{graylevel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::graylevel}$<$ n $>$::{\bf graylevel} (
\begin{DoxyParamCaption}
\item[{int}]{ val}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a44aa4b8c1415e9255a4c51965d4d71fd}


Constructor from int. 



Definition at line 443 of file graylevel.hh.

\hypertarget{a00421_a44c8d9bfa821995373e279666b70c705}{
\index{mln::value::graylevel@{mln::value::graylevel}!graylevel@{graylevel}}
\index{graylevel@{graylevel}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{graylevel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ template$<$unsigned m$>$ {\bf mln::value::graylevel}$<$ n $>$::{\bf graylevel} (
\begin{DoxyParamCaption}
\item[{const {\bf graylevel}$<$ m $>$ \&}]{ rhs}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a44c8d9bfa821995373e279666b70c705}


Constructor from any graylevel. 



Definition at line 481 of file graylevel.hh.



References mln::value::graylevel$<$ n $>$::value().

\hypertarget{a00421_a34d219b8eada84bb230a8e4d227d60cb}{
\index{mln::value::graylevel@{mln::value::graylevel}!graylevel@{graylevel}}
\index{graylevel@{graylevel}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{graylevel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::graylevel}$<$ n $>$::{\bf graylevel} (
\begin{DoxyParamCaption}
\item[{const {\bf mln::literal::black\_\-t} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a34d219b8eada84bb230a8e4d227d60cb}


Ctors with literals. 



Definition at line 499 of file graylevel.hh.



\subsection{Member Function Documentation}
\hypertarget{a00421_a54f44561f162d68232abca5b66a82c7d}{
\index{mln::value::graylevel@{mln::value::graylevel}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf graylevel}$<$ n $>$ \& {\bf mln::value::graylevel}$<$ n $>$::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf graylevel}$<$ n $>$ \&}]{ rhs}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a54f44561f162d68232abca5b66a82c7d}


Assigment. 



Definition at line 472 of file graylevel.hh.

\hypertarget{a00421_a06870fc395bd871f55dde868e5911c19}{
\index{mln::value::graylevel@{mln::value::graylevel}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf graylevel}$<$ n $>$ \& {\bf mln::value::graylevel}$<$ n $>$::operator= (
\begin{DoxyParamCaption}
\item[{int}]{ val}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a06870fc395bd871f55dde868e5911c19}


Assigment with int. 



Definition at line 453 of file graylevel.hh.

\hypertarget{a00421_a3393b214126b1f90e3e074c806892654}{
\index{mln::value::graylevel@{mln::value::graylevel}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf graylevel}$<$ n $>$ \& {\bf mln::value::graylevel}$<$ n $>$::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf mln::literal::black\_\-t} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a3393b214126b1f90e3e074c806892654}


Assigment with literals. 



Definition at line 507 of file graylevel.hh.

\hypertarget{a00421_a79469d9ca65620e10b997b1021a3e385}{
\index{mln::value::graylevel@{mln::value::graylevel}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ template$<$unsigned m$>$ {\bf graylevel}$<$ n $>$ \& {\bf mln::value::graylevel}$<$ n $>$::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf graylevel}$<$ m $>$ \&}]{ rhs}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_a79469d9ca65620e10b997b1021a3e385}


Assigment with any graylevel. 



Definition at line 490 of file graylevel.hh.



References mln::value::graylevel$<$ n $>$::value().

\hypertarget{a00421_ababf08a50af0c5e619870998de44aa0b}{
\index{mln::value::graylevel@{mln::value::graylevel}!to\_\-float@{to\_\-float}}
\index{to\_\-float@{to\_\-float}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{to\_\-float}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ float {\bf mln::value::graylevel}$<$ n $>$::to\_\-float (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_ababf08a50af0c5e619870998de44aa0b}


Conversion to float between 0 and 1. 



Definition at line 557 of file graylevel.hh.



Referenced by mln::value::graylevel\_\-f::graylevel\_\-f(), and mln::value::graylevel\_\-f::operator=().

\hypertarget{a00421_ab5b8c062bf52b3d3bc03d29fd1cc7eda}{
\index{mln::value::graylevel@{mln::value::graylevel}!value@{value}}
\index{value@{value}!mln::value::graylevel@{mln::value::graylevel}}
\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ unsigned {\bf mln::value::graylevel}$<$ n $>$::value (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/de1/a00421_ab5b8c062bf52b3d3bc03d29fd1cc7eda}


Access to std type. 



Definition at line 549 of file graylevel.hh.



Referenced by mln::value::graylevel$<$ n $>$::graylevel(), and mln::value::graylevel$<$ n $>$::operator=().

