\hypertarget{a07048}{}\section{Data\+Type Class Reference}
\label{a07048}\index{Data\+Type@{Data\+Type}}


Predefined datatypes.  




{\ttfamily \#include $<$Open\+Flipper/common/\+Data\+Types.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07048_a297372ffc0d5614a928687b1396238b8}\label{a07048_a297372ffc0d5614a928687b1396238b8}} 
{\bfseries Data\+Type} (const unsigned int \&\+\_\+i)
\item 
\mbox{\Hypertarget{a07048_a537cdfb733f0f8e318bf6309a7991f17}\label{a07048_a537cdfb733f0f8e318bf6309a7991f17}} 
bool {\bfseries operator!=} (const unsigned int \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a65b121476c258aa1e3f28772b131307c}\label{a07048_a65b121476c258aa1e3f28772b131307c}} 
bool {\bfseries operator!=} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a3093dee9e90308be5f2df9364c279c99}\label{a07048_a3093dee9e90308be5f2df9364c279c99}} 
bool {\bfseries operator==} (const unsigned int \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_ac97c701daabba8f9afde68c9bab7f7fd}\label{a07048_ac97c701daabba8f9afde68c9bab7f7fd}} 
bool {\bfseries operator==} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a44aa5eb63d7360542776697a837beae2}\label{a07048_a44aa5eb63d7360542776697a837beae2}} 
\hyperlink{a07048}{Data\+Type} \& {\bfseries operator=} (const unsigned int \&\+\_\+i)
\item 
\mbox{\Hypertarget{a07048_a6e64a60e3bff282af71d9e7a5206ceb6}\label{a07048_a6e64a60e3bff282af71d9e7a5206ceb6}} 
\hyperlink{a07048}{Data\+Type} \& {\bfseries operator=} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i)
\item 
\mbox{\Hypertarget{a07048_a574cf31b47028be26836406571ca09e7}\label{a07048_a574cf31b47028be26836406571ca09e7}} 
bool {\bfseries operator$<$} (const unsigned int \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a582e5004ff604e462ddd703de25d6ad5}\label{a07048_a582e5004ff604e462ddd703de25d6ad5}} 
bool {\bfseries operator$<$} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a75117c0323d4c83f20cce40598d672a9}\label{a07048_a75117c0323d4c83f20cce40598d672a9}} 
\hyperlink{a07048}{Data\+Type} \& {\bfseries operator$\vert$=} (const unsigned int \&\+\_\+i)
\item 
\mbox{\Hypertarget{a07048_a5ed01b4b2af73b51368666fca187f802}\label{a07048_a5ed01b4b2af73b51368666fca187f802}} 
\hyperlink{a07048}{Data\+Type} \& {\bfseries operator$\vert$=} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i)
\item 
\mbox{\Hypertarget{a07048_ac2e9208b1d91d7dae681a14e8ec12a07}\label{a07048_ac2e9208b1d91d7dae681a14e8ec12a07}} 
bool {\bfseries operator \&} (const unsigned int \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_ac2c5e380a218dce6b17baec322c83db9}\label{a07048_ac2c5e380a218dce6b17baec322c83db9}} 
bool {\bfseries operator \&} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_affef46b3399d96d4748052fa4e7933d3}\label{a07048_affef46b3399d96d4748052fa4e7933d3}} 
\hyperlink{a07048}{Data\+Type} {\bfseries operator!} ()
\item 
\mbox{\Hypertarget{a07048_ae03549d5e8061166446b0ee30a063c20}\label{a07048_ae03549d5e8061166446b0ee30a063c20}} 
bool {\bfseries contains} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a77190604ad7200e524c687a826f58748}\label{a07048_a77190604ad7200e524c687a826f58748}} 
\hyperlink{a07048}{Data\+Type} {\bfseries operator$\vert$} (const \hyperlink{a07048}{Data\+Type} \&\+\_\+i) const
\item 
\mbox{\Hypertarget{a07048_a0c60f33062440bd70b0a124d0fc5819e}\label{a07048_a0c60f33062440bd70b0a124d0fc5819e}} 
\hyperlink{a07048}{Data\+Type} {\bfseries operator++} (int \+\_\+unused)
\item 
\mbox{\Hypertarget{a07048_aed500ad14593ca12cb0c2c5e89736336}\label{a07048_aed500ad14593ca12cb0c2c5e89736336}} 
\hyperlink{a07048}{Data\+Type} \& {\bfseries operator++} ()
\item 
unsigned int \hyperlink{a07048_a4b6b62a003a6425b19000de40a8f02d0}{value} () const
\item 
\mbox{\Hypertarget{a07048_a3a91b698a0e47139cbe28af4217d99ee}\label{a07048_a3a91b698a0e47139cbe28af4217d99ee}} 
Q\+String \hyperlink{a07048_a3a91b698a0e47139cbe28af4217d99ee}{name} () const
\begin{DoxyCompactList}\small\item\em Return the name of this type as text. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07048_a8fd8698f8ab8d4d01eec42028d0357cb}\label{a07048_a8fd8698f8ab8d4d01eec42028d0357cb}} 
unsigned int {\bfseries field}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Predefined datatypes. 

Here are several datatypes which have predefined ids. This might be changed to runtime added datatypes in the future.\+the internal \hyperlink{a07048}{Data\+Type} class

Normally we could use an unsigned int here. But QT can\textquotesingle{}t register an typedef unsigned int \hyperlink{a07048}{Data\+Type} as \hyperlink{a07048}{Data\+Type} and will recognize it as unsigned int and therefore \hyperlink{a07048}{Data\+Type} will still be unknown to Qt\+Script. To overcome this Problem, we reimplement a wrapper around the int and provide additional functionality such as returning the name of the type directly 

Definition at line 83 of file Data\+Types.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a07048_a4b6b62a003a6425b19000de40a8f02d0}\label{a07048_a4b6b62a003a6425b19000de40a8f02d0}} 
\index{Data\+Type@{Data\+Type}!value@{value}}
\index{value@{value}!Data\+Type@{Data\+Type}}
\subsubsection{\texorpdfstring{value()}{value()}}
{\footnotesize\ttfamily unsigned int Data\+Type\+::value (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

return the internal representation of the type which is an unsigned int at the moment.

You should avoid using this directly as the internal representation might change in the future 

Definition at line 412 of file Types.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/common/\hyperlink{a00188}{Data\+Types.\+hh}\item 
Open\+Flipper/common/\hyperlink{a00266}{Types.\+cc}\end{DoxyCompactItemize}
