408 lines
25 KiB
TeX
408 lines
25 KiB
TeX
\hypertarget{classutl_1_1in__dev}{}\section{utl\+:\+:in\+\_\+dev$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$ Class Template Reference}
|
|
\label{classutl_1_1in__dev}\index{utl\+::in\+\_\+dev$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$@{utl\+::in\+\_\+dev$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$}}
|
|
|
|
|
|
Abstract base class for input devices.
|
|
|
|
|
|
|
|
|
|
{\ttfamily \#include $<$in\+\_\+dev.\+h$>$}
|
|
|
|
\subsection*{Public Types}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
using \mbox{\hyperlink{classutl_1_1in__dev_adef54df1c3d4ae20629ecfdb7826384c}{type}} = \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}
|
|
\begin{DoxyCompactList}\small\item\em Export type as identity meta-\/function. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\textbf{ }\par
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
using \mbox{\hyperlink{classutl_1_1in__dev_acb38742b242e8cf90323d46a9907863d}{data\+\_\+type}} = data\+\_\+t
|
|
\item
|
|
using \mbox{\hyperlink{classutl_1_1in__dev_aef4b5c41ab91ef284cfc0cf6100c0828}{pointer\+\_\+type}} = data\+\_\+t $\ast$
|
|
\end{DoxyCompactItemize}
|
|
|
|
\subsection*{Public Member Functions}
|
|
\begin{Indent}\textbf{ Public Get interface}\par
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{namespaceutl_a22cbecb50ee5c1032de66133e96cbac6}{size\+\_\+t}} \mbox{\hyperlink{classutl_1_1in__dev_aa13a075d41f3e020f4f67c2a59d580a5}{get}} (data\+\_\+t \&data)
|
|
\begin{DoxyCompactList}\small\item\em Get interface. This function should read a single data\+\_\+t object from device in blocking mode. \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{namespaceutl_a22cbecb50ee5c1032de66133e96cbac6}{size\+\_\+t}} \mbox{\hyperlink{classutl_1_1in__dev_a5536fdd877bc9f078a9ede43ccc283e7}{get}} (data\+\_\+t $\ast$data, \mbox{\hyperlink{namespaceutl_a22cbecb50ee5c1032de66133e96cbac6}{size\+\_\+t}} n)
|
|
\begin{DoxyCompactList}\small\item\em Old stile get functionality using free standing data\+\_\+t$\ast$. This function should return a stream of data from device. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\end{Indent}
|
|
\begin{Indent}\textbf{ Stream operator $>$$>$ interface}\par
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
{\footnotesize template$<$typename \+\_\+\+Dst\+\_\+t $>$ }\\\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \& \mbox{\hyperlink{classutl_1_1in__dev_abe8aa85c0dbe0ddb3745ded02b4e68fe}{operator$>$$>$}} (\+\_\+\+Dst\+\_\+t \&dst)
|
|
\begin{DoxyCompactList}\small\item\em Template operator $>$$>$ implementation for for all by value/ref parameters. \end{DoxyCompactList}\item
|
|
{\footnotesize template$<$typename \+\_\+\+Dst\+\_\+t $>$ }\\\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \& \mbox{\hyperlink{classutl_1_1in__dev_a60b3bba96e6bfd2091e594fdbc93fd6f}{operator$>$$>$}} (\+\_\+\+Dst\+\_\+t $\ast$dst)=delete
|
|
\begin{DoxyCompactList}\small\item\em Specialization to disallow pointer types as destination. \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \& \mbox{\hyperlink{classutl_1_1in__dev_a98774619e8575162a8be271833282690}{operator$>$$>$}} (data\+\_\+t \&dst)
|
|
\begin{DoxyCompactList}\small\item\em Overload for single data\+\_\+t object. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\end{Indent}
|
|
\textbf{ }\par
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}{iterator}} \mbox{\hyperlink{classutl_1_1in__dev_aae7797f366d25091b63ad87b34ed4b48}{end}} () noexcept
|
|
\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev_aecb438cbb0e2a6c3a926aad81e8c29c7}{end}} () const noexcept
|
|
\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev_ac54d9a1fb6241be460ffc792aac18b24}{cend}} () const noexcept
|
|
\end{DoxyCompactItemize}
|
|
|
|
\subsection*{Protected Member Functions}
|
|
\begin{Indent}\textbf{ Constructor / Destructor}\par
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a2caa0f47e6132f051bb54b1acea37fc6}{$\sim$in\+\_\+dev}} ()=default
|
|
\begin{DoxyCompactList}\small\item\em Allow destructor from derived only. \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a1ca16c382f5e0dd25089a4e06a40f2f2}{in\+\_\+dev}} ()=default
|
|
\begin{DoxyCompactList}\small\item\em A default constructor from derived only. \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a570c94b183eff6f8ca2d7d9ab5d9a7ea}{in\+\_\+dev}} (const \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \&)=delete
|
|
\begin{DoxyCompactList}\small\item\em No copies. \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \& \mbox{\hyperlink{classutl_1_1in__dev_a55dc56f1277b2bd04b154fbf19d8853f}{operator=}} (const \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \&)=delete
|
|
\end{DoxyCompactItemize}
|
|
\end{Indent}
|
|
\subsection*{S\+T\+L-\/like Input iterator interface}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
using \mbox{\hyperlink{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}{iterator}} = \mbox{\hyperlink{classutl_1_1indev__it}{indev\+\_\+it}}$<$ \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}, data\+\_\+t $\ast$, streamsize $>$
|
|
\begin{DoxyCompactList}\small\item\em Iterator. \end{DoxyCompactList}\item
|
|
using \mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} = \mbox{\hyperlink{classutl_1_1indev__it}{indev\+\_\+it}}$<$ \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}, const data\+\_\+t $\ast$, streamsize $>$
|
|
\begin{DoxyCompactList}\small\item\em Const iterator. \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}{iterator}} \mbox{\hyperlink{classutl_1_1in__dev_ab2158d8a134dff882a3eac2960da04c0}{begin}} () noexcept
|
|
\begin{DoxyCompactList}\small\item\em .begin implementation \end{DoxyCompactList}\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev_af81ff90ccb0070ad9388bc032d6d3279}{begin}} () const noexcept
|
|
\item
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev_a1120a80c871e1ea8165b4943c767893d}{cbegin}} () const noexcept
|
|
\end{DoxyCompactItemize}
|
|
|
|
|
|
\subsection{Detailed Description}
|
|
\subsubsection*{template$<$typename impl\+\_\+t, typename data\+\_\+t, size\+\_\+t streamsize = 0$>$\newline
|
|
class utl\+::in\+\_\+dev$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$}
|
|
|
|
Abstract base class for input devices.
|
|
|
|
Template base class for un-\/buffered input devices. using C\+R\+TP
|
|
|
|
This class force a common interface for input, non-\/buffered devices. By using this common interface the class implements
|
|
\begin{DoxyItemize}
|
|
\item Stream-\/like extracting operator
|
|
\item Input iterator
|
|
\item Const input iterator to inherit to implementation.
|
|
\end{DoxyItemize}
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em impl\+\_\+t} & The C\+R\+TP type (the derived/implementation class typename). \\
|
|
\hline
|
|
{\em data\+\_\+t} & The devices base type of data \\
|
|
\hline
|
|
{\em streamsize} & The number of elements to indicate eos. \begin{DoxyItemize}
|
|
\item None or 0 Stream only. No iterator as \mbox{\hyperlink{classutl_1_1in__dev_ab2158d8a134dff882a3eac2960da04c0}{begin()}} now equals \mbox{\hyperlink{classutl_1_1in__dev_aae7797f366d25091b63ad87b34ed4b48}{end()}}. \end{DoxyItemize}
|
|
\\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
Definition at line 54 of file in\+\_\+dev.\+h.
|
|
|
|
|
|
|
|
\subsection{Member Typedef Documentation}
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}\label{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!const\+\_\+iterator@{const\+\_\+iterator}}
|
|
\index{const\+\_\+iterator@{const\+\_\+iterator}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{const\+\_\+iterator}{const\_iterator}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
using \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} = \mbox{\hyperlink{classutl_1_1indev__it}{indev\+\_\+it}} $<$\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}, const data\+\_\+t$\ast$, streamsize$>$}
|
|
|
|
|
|
|
|
Const iterator.
|
|
|
|
|
|
|
|
Definition at line 151 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_acb38742b242e8cf90323d46a9907863d}\label{classutl_1_1in__dev_acb38742b242e8cf90323d46a9907863d}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!data\+\_\+type@{data\+\_\+type}}
|
|
\index{data\+\_\+type@{data\+\_\+type}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{data\+\_\+type}{data\_type}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
using \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev_acb38742b242e8cf90323d46a9907863d}{data\+\_\+type}} = data\+\_\+t}
|
|
|
|
Export types as input device concept demands
|
|
|
|
Definition at line 61 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}\label{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!iterator@{iterator}}
|
|
\index{iterator@{iterator}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{iterator}{iterator}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
using \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}{iterator}} = \mbox{\hyperlink{classutl_1_1indev__it}{indev\+\_\+it}} $<$\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}, data\+\_\+t$\ast$, streamsize$>$}
|
|
|
|
|
|
|
|
Iterator.
|
|
|
|
|
|
|
|
Definition at line 150 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_aef4b5c41ab91ef284cfc0cf6100c0828}\label{classutl_1_1in__dev_aef4b5c41ab91ef284cfc0cf6100c0828}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!pointer\+\_\+type@{pointer\+\_\+type}}
|
|
\index{pointer\+\_\+type@{pointer\+\_\+type}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{pointer\+\_\+type}{pointer\_type}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
using \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev_aef4b5c41ab91ef284cfc0cf6100c0828}{pointer\+\_\+type}} = data\+\_\+t$\ast$}
|
|
|
|
|
|
|
|
Definition at line 62 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_adef54df1c3d4ae20629ecfdb7826384c}\label{classutl_1_1in__dev_adef54df1c3d4ae20629ecfdb7826384c}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!type@{type}}
|
|
\index{type@{type}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{type}{type}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
using \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev_adef54df1c3d4ae20629ecfdb7826384c}{type}} = \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}}
|
|
|
|
|
|
|
|
Export type as identity meta-\/function.
|
|
|
|
|
|
|
|
Definition at line 64 of file in\+\_\+dev.\+h.
|
|
|
|
|
|
|
|
\subsection{Constructor \& Destructor Documentation}
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a2caa0f47e6132f051bb54b1acea37fc6}\label{classutl_1_1in__dev_a2caa0f47e6132f051bb54b1acea37fc6}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!````~in\+\_\+dev@{$\sim$in\+\_\+dev}}
|
|
\index{````~in\+\_\+dev@{$\sim$in\+\_\+dev}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{$\sim$in\+\_\+dev()}{~in\_dev()}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::$\sim$\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [default]}}
|
|
|
|
|
|
|
|
Allow destructor from derived only.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a1ca16c382f5e0dd25089a4e06a40f2f2}\label{classutl_1_1in__dev_a1ca16c382f5e0dd25089a4e06a40f2f2}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!in\+\_\+dev@{in\+\_\+dev}}
|
|
\index{in\+\_\+dev@{in\+\_\+dev}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{in\+\_\+dev()}{in\_dev()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [default]}}
|
|
|
|
|
|
|
|
A default constructor from derived only.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a570c94b183eff6f8ca2d7d9ab5d9a7ea}\label{classutl_1_1in__dev_a570c94b183eff6f8ca2d7d9ab5d9a7ea}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!in\+\_\+dev@{in\+\_\+dev}}
|
|
\index{in\+\_\+dev@{in\+\_\+dev}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{in\+\_\+dev()}{in\_dev()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev}} (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [delete]}}
|
|
|
|
|
|
|
|
No copies.
|
|
|
|
|
|
|
|
\subsection{Member Function Documentation}
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_ab2158d8a134dff882a3eac2960da04c0}\label{classutl_1_1in__dev_ab2158d8a134dff882a3eac2960da04c0}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!begin@{begin}}
|
|
\index{begin@{begin}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{begin()}{begin()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}{iterator}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::begin (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}
|
|
|
|
|
|
|
|
.begin implementation
|
|
|
|
|
|
|
|
Definition at line 154 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_af81ff90ccb0070ad9388bc032d6d3279}\label{classutl_1_1in__dev_af81ff90ccb0070ad9388bc032d6d3279}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!begin@{begin}}
|
|
\index{begin@{begin}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{begin()}{begin()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::begin (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}
|
|
|
|
|
|
|
|
Definition at line 155 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a1120a80c871e1ea8165b4943c767893d}\label{classutl_1_1in__dev_a1120a80c871e1ea8165b4943c767893d}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!cbegin@{cbegin}}
|
|
\index{cbegin@{cbegin}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{cbegin()}{cbegin()}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::cbegin (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}
|
|
|
|
|
|
|
|
Definition at line 156 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_ac54d9a1fb6241be460ffc792aac18b24}\label{classutl_1_1in__dev_ac54d9a1fb6241be460ffc792aac18b24}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!cend@{cend}}
|
|
\index{cend@{cend}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{cend()}{cend()}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::cend (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}
|
|
|
|
|
|
|
|
Definition at line 161 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_aae7797f366d25091b63ad87b34ed4b48}\label{classutl_1_1in__dev_aae7797f366d25091b63ad87b34ed4b48}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!end@{end}}
|
|
\index{end@{end}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{end()}{end()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a629f2364e2ab427cbdc0c7f1cb8e8a66}{iterator}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::end (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}
|
|
|
|
.end implementation
|
|
|
|
Definition at line 159 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_aecb438cbb0e2a6c3a926aad81e8c29c7}\label{classutl_1_1in__dev_aecb438cbb0e2a6c3a926aad81e8c29c7}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!end@{end}}
|
|
\index{end@{end}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{end()}{end()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev_a686e6cda465a7e08b29465a75740e043}{const\+\_\+iterator}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::end (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}
|
|
|
|
|
|
|
|
Definition at line 160 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_aa13a075d41f3e020f4f67c2a59d580a5}\label{classutl_1_1in__dev_aa13a075d41f3e020f4f67c2a59d580a5}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!get@{get}}
|
|
\index{get@{get}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{get()}{get()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{namespaceutl_a22cbecb50ee5c1032de66133e96cbac6}{size\+\_\+t}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::get (\begin{DoxyParamCaption}\item[{data\+\_\+t \&}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
|
|
|
|
Get interface. This function should read a single data\+\_\+t object from device in blocking mode.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em data} & Reference to data output from device. \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{Returns}
|
|
Number of data read from device
|
|
\end{DoxyReturn}
|
|
\begin{DoxyNote}{Note}
|
|
A successful call should return 1
|
|
\end{DoxyNote}
|
|
|
|
|
|
Definition at line 97 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a5536fdd877bc9f078a9ede43ccc283e7}\label{classutl_1_1in__dev_a5536fdd877bc9f078a9ede43ccc283e7}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!get@{get}}
|
|
\index{get@{get}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{get()}{get()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{namespaceutl_a22cbecb50ee5c1032de66133e96cbac6}{size\+\_\+t}} \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::get (\begin{DoxyParamCaption}\item[{data\+\_\+t $\ast$}]{data, }\item[{\mbox{\hyperlink{namespaceutl_a22cbecb50ee5c1032de66133e96cbac6}{size\+\_\+t}}}]{n }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
|
|
|
|
Old stile get functionality using free standing data\+\_\+t$\ast$. This function should return a stream of data from device.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em data} & Pointer to buffer to write the data from device. \\
|
|
\hline
|
|
{\em n} & The number of data of type data\+\_\+t to read \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{Returns}
|
|
The read data items.
|
|
\end{DoxyReturn}
|
|
|
|
|
|
Definition at line 109 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a55dc56f1277b2bd04b154fbf19d8853f}\label{classutl_1_1in__dev_a55dc56f1277b2bd04b154fbf19d8853f}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!operator=@{operator=}}
|
|
\index{operator=@{operator=}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{operator=()}{operator=()}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}\& \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::operator= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}} \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [delete]}}
|
|
|
|
No copy assignments \mbox{\Hypertarget{classutl_1_1in__dev_abe8aa85c0dbe0ddb3745ded02b4e68fe}\label{classutl_1_1in__dev_abe8aa85c0dbe0ddb3745ded02b4e68fe}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!operator$>$$>$@{operator$>$$>$}}
|
|
\index{operator$>$$>$@{operator$>$$>$}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{operator$>$$>$()}{operator>>()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
template$<$typename \+\_\+\+Dst\+\_\+t $>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}\& \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::operator$>$$>$ (\begin{DoxyParamCaption}\item[{\+\_\+\+Dst\+\_\+t \&}]{dst }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
|
|
|
|
Template operator $>$$>$ implementation for for all by value/ref parameters.
|
|
|
|
\begin{DoxyNote}{Note}
|
|
In the case \+\_\+\+Dst\+\_\+t size is not a integer multiple of device\textquotesingle{}s data size this will fail by static assertion
|
|
\end{DoxyNote}
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em dst} & Reference to destination \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{Returns}
|
|
Reference to this device for chaining
|
|
\end{DoxyReturn}
|
|
|
|
|
|
Definition at line 129 of file in\+\_\+dev.\+h.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a60b3bba96e6bfd2091e594fdbc93fd6f}\label{classutl_1_1in__dev_a60b3bba96e6bfd2091e594fdbc93fd6f}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!operator$>$$>$@{operator$>$$>$}}
|
|
\index{operator$>$$>$@{operator$>$$>$}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{operator$>$$>$()}{operator>>()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
template$<$typename \+\_\+\+Dst\+\_\+t $>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}\& \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::operator$>$$>$ (\begin{DoxyParamCaption}\item[{\+\_\+\+Dst\+\_\+t $\ast$}]{dst }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [delete]}}
|
|
|
|
|
|
|
|
Specialization to disallow pointer types as destination.
|
|
|
|
\mbox{\Hypertarget{classutl_1_1in__dev_a98774619e8575162a8be271833282690}\label{classutl_1_1in__dev_a98774619e8575162a8be271833282690}}
|
|
\index{utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}!operator$>$$>$@{operator$>$$>$}}
|
|
\index{operator$>$$>$@{operator$>$$>$}!utl\+::in\+\_\+dev@{utl\+::in\+\_\+dev}}
|
|
\subsubsection{\texorpdfstring{operator$>$$>$()}{operator>>()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
|
|
{\footnotesize\ttfamily template$<$typename impl\+\_\+t , typename data\+\_\+t , size\+\_\+t streamsize = 0$>$ \\
|
|
\mbox{\hyperlink{classutl_1_1in__dev}{in\+\_\+dev\+\_\+t}}\& \mbox{\hyperlink{classutl_1_1in__dev}{utl\+::in\+\_\+dev}}$<$ impl\+\_\+t, data\+\_\+t, streamsize $>$\+::operator$>$$>$ (\begin{DoxyParamCaption}\item[{data\+\_\+t \&}]{dst }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
|
|
|
|
Overload for single data\+\_\+t object.
|
|
|
|
|
|
|
|
Definition at line 140 of file in\+\_\+dev.\+h.
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
|
|
\item
|
|
include/utl/dev/\mbox{\hyperlink{in__dev_8h}{in\+\_\+dev.\+h}}\end{DoxyCompactItemize}
|