\hypertarget{a00186}{
\section{mln::extension\_\-fun$<$ I, F $>$ Class Template Reference}
\label{d8/d00/a00186}\index{mln::extension\_\-fun@{mln::extension\_\-fun}}
}


Extends the domain of an image with a function.  




{\ttfamily \#include $<$extension\_\-fun.hh$>$}



Inherits image\_\-identity$<$ I, I::domain\_\-t, extension\_\-fun$<$ I, F $>$ $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef I::value \hyperlink{a00186_a22fe068beb18dbc41c94336087495f89}{rvalue}
\begin{DoxyCompactList}\small\item\em Return type of read-\/only access. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00186}{extension\_\-fun}$<$ tag::image\_\-$<$ I $>$, tag::function\_\-$<$ F $>$ $>$ \hyperlink{a00186_ac9b9bcd35cf24b2a4a6914f447dcfbb2}{skeleton}
\begin{DoxyCompactList}\small\item\em Skeleton. \item\end{DoxyCompactList}\item 
typedef I::value \hyperlink{a00186_afecf647b3951bc77d0f54e57b2d05547}{value}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00044}{Image} value type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
const F \& \hyperlink{a00186_a4cb8b3b218abd981e92f3344498a1849}{extension} () const 
\begin{DoxyCompactList}\small\item\em Give the extension function. \item\end{DoxyCompactList}\item 
\hyperlink{a00186_a26e92446e722d72c9996758938da01ce}{extension\_\-fun} (I \&ima, const F \&fun)
\begin{DoxyCompactList}\small\item\em Constructor from an image {\ttfamily ima} and a function {\ttfamily fun}. \item\end{DoxyCompactList}\item 
\hyperlink{a00186_a1eed2418aaaa58df9097dbcab2275da2}{extension\_\-fun} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename P $>$ }\\bool \hyperlink{a00186_a8dfbce64624bbed199d53b62e2c1fb04}{has} (const P \&p) const 
\begin{DoxyCompactList}\small\item\em Test if {\ttfamily p} is valid. \item\end{DoxyCompactList}\item 
internal::morpher\_\-lvalue\_\-$<$ I $>$::ret \hyperlink{a00186_a4d52faf0691db29b3dc25a3442969fa8}{operator()} (const typename I::psite \&p)
\begin{DoxyCompactList}\small\item\em Read-\/write access to the image value located at site {\ttfamily p}. \item\end{DoxyCompactList}\item 
I::value \hyperlink{a00186_a8d386c4031b0275e71c0b23417aa472b}{operator()} (const typename I::psite \&p) const 
\begin{DoxyCompactList}\small\item\em Read-\/only access to the image value located at site {\ttfamily p};. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename I, typename F$>$ class mln::extension\_\-fun$<$ I, F $>$}

Extends the domain of an image with a function. 

Definition at line 99 of file extension\_\-fun.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00186_a22fe068beb18dbc41c94336087495f89}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!rvalue@{rvalue}}
\index{rvalue@{rvalue}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{rvalue}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I, typename F$>$ typedef I ::{\bf value} {\bf mln::extension\_\-fun}$<$ I, F $>$::{\bf rvalue}}}
\label{d8/d00/a00186_a22fe068beb18dbc41c94336087495f89}


Return type of read-\/only access. 



Definition at line 112 of file extension\_\-fun.hh.

\hypertarget{a00186_ac9b9bcd35cf24b2a4a6914f447dcfbb2}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!skeleton@{skeleton}}
\index{skeleton@{skeleton}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{skeleton}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I, typename F$>$ typedef {\bf extension\_\-fun}$<$ tag::image\_\-$<$I$>$, tag::function\_\-$<$F$>$ $>$ {\bf mln::extension\_\-fun}$<$ I, F $>$::{\bf skeleton}}}
\label{d8/d00/a00186_ac9b9bcd35cf24b2a4a6914f447dcfbb2}


Skeleton. 



Definition at line 106 of file extension\_\-fun.hh.

\hypertarget{a00186_afecf647b3951bc77d0f54e57b2d05547}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!value@{value}}
\index{value@{value}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I, typename F$>$ typedef I ::{\bf value} {\bf mln::extension\_\-fun}$<$ I, F $>$::{\bf value}}}
\label{d8/d00/a00186_afecf647b3951bc77d0f54e57b2d05547}


\hyperlink{a00044}{Image} value type. 



Definition at line 109 of file extension\_\-fun.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00186_a1eed2418aaaa58df9097dbcab2275da2}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!extension\_\-fun@{extension\_\-fun}}
\index{extension\_\-fun@{extension\_\-fun}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{extension\_\-fun}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ {\bf mln::extension\_\-fun}$<$ I, F $>$::{\bf extension\_\-fun} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d8/d00/a00186_a1eed2418aaaa58df9097dbcab2275da2}


Constructor without argument. 



Definition at line 178 of file extension\_\-fun.hh.

\hypertarget{a00186_a26e92446e722d72c9996758938da01ce}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!extension\_\-fun@{extension\_\-fun}}
\index{extension\_\-fun@{extension\_\-fun}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{extension\_\-fun}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ {\bf mln::extension\_\-fun}$<$ I, F $>$::{\bf extension\_\-fun} (
\begin{DoxyParamCaption}
\item[{I \&}]{ ima, }
\item[{const F \&}]{ fun}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d8/d00/a00186_a26e92446e722d72c9996758938da01ce}


Constructor from an image {\ttfamily ima} and a function {\ttfamily fun}. 



Definition at line 184 of file extension\_\-fun.hh.



\subsection{Member Function Documentation}
\hypertarget{a00186_a4cb8b3b218abd981e92f3344498a1849}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!extension@{extension}}
\index{extension@{extension}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{extension}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ const F \& {\bf mln::extension\_\-fun}$<$ I, F $>$::extension (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d8/d00/a00186_a4cb8b3b218abd981e92f3344498a1849}


Give the extension function. 



Definition at line 243 of file extension\_\-fun.hh.

\hypertarget{a00186_a8dfbce64624bbed199d53b62e2c1fb04}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!has@{has}}
\index{has@{has}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ template$<$typename P $>$ bool {\bf mln::extension\_\-fun}$<$ I, F $>$::has (
\begin{DoxyParamCaption}
\item[{const P \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d8/d00/a00186_a8dfbce64624bbed199d53b62e2c1fb04}


Test if {\ttfamily p} is valid. 

It returns always true, assuming that the function is valid for any {\ttfamily p}. 

Definition at line 201 of file extension\_\-fun.hh.

\hypertarget{a00186_a4d52faf0691db29b3dc25a3442969fa8}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!operator()@{operator()}}
\index{operator()@{operator()}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ internal::morpher\_\-lvalue\_\-$<$ I $>$::ret {\bf mln::extension\_\-fun}$<$ I, F $>$::operator() (
\begin{DoxyParamCaption}
\item[{const typename I::psite \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d8/d00/a00186_a4d52faf0691db29b3dc25a3442969fa8}


Read-\/write access to the image value located at site {\ttfamily p}. 



Definition at line 223 of file extension\_\-fun.hh.

\hypertarget{a00186_a8d386c4031b0275e71c0b23417aa472b}{
\index{mln::extension\_\-fun@{mln::extension\_\-fun}!operator()@{operator()}}
\index{operator()@{operator()}!mln::extension_fun@{mln::extension\_\-fun}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ I::value {\bf mln::extension\_\-fun}$<$ I, F $>$::operator() (
\begin{DoxyParamCaption}
\item[{const typename I::psite \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d8/d00/a00186_a8d386c4031b0275e71c0b23417aa472b}


Read-\/only access to the image value located at site {\ttfamily p};. 



Definition at line 209 of file extension\_\-fun.hh.

