\hypertarget{a08868}{}\section{Open\+Mesh\+:\+:PropertyT$<$ std\+:\+:string $>$ Class Template Reference}
\label{a08868}\index{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/\+Property.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:PropertyT$<$ std\+:\+:string $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08868}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08868_adf93cf31cb1b8d8ea3aa287555bf6749}\label{a08868_adf93cf31cb1b8d8ea3aa287555bf6749}} 
typedef std\+::string {\bfseries Value}
\item 
\mbox{\Hypertarget{a08868_a363a2490f8c28ea4e9214b693767faa1}\label{a08868_a363a2490f8c28ea4e9214b693767faa1}} 
typedef std\+::vector$<$ std\+::string $>$ {\bfseries vector\+\_\+type}
\item 
\mbox{\Hypertarget{a08868_aaa95a988d3d1bfd5629e7004199f7051}\label{a08868_aaa95a988d3d1bfd5629e7004199f7051}} 
typedef std\+::string {\bfseries value\+\_\+type}
\item 
\mbox{\Hypertarget{a08868_a6e97d9358ea9355f12aba395cda910d3}\label{a08868_a6e97d9358ea9355f12aba395cda910d3}} 
typedef vector\+\_\+type\+::reference {\bfseries reference}
\item 
\mbox{\Hypertarget{a08868_a7ffbc226be4830f4f62d8a821420db46}\label{a08868_a7ffbc226be4830f4f62d8a821420db46}} 
typedef vector\+\_\+type\+::const\+\_\+reference {\bfseries const\+\_\+reference}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08868_a2869eff124c8c07ceaae25d2d7ec77c2}\label{a08868_a2869eff124c8c07ceaae25d2d7ec77c2}} 
{\bfseries PropertyT} (const std\+::string \&\+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\item 
\mbox{\Hypertarget{a08868_afb478035fb9ecd4e514ca910da744a1f}\label{a08868_afb478035fb9ecd4e514ca910da744a1f}} 
virtual void \hyperlink{a08868_afb478035fb9ecd4e514ca910da744a1f}{reserve} (size\+\_\+t \+\_\+n)
\begin{DoxyCompactList}\small\item\em Reserve memory for n elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_aa15d8a4e903b35201a96e13c3ce63647}\label{a08868_aa15d8a4e903b35201a96e13c3ce63647}} 
virtual void \hyperlink{a08868_aa15d8a4e903b35201a96e13c3ce63647}{resize} (size\+\_\+t \+\_\+n)
\begin{DoxyCompactList}\small\item\em Resize storage to hold n elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_a67fcefbb9cb4e40b8db3e656fef8ac32}\label{a08868_a67fcefbb9cb4e40b8db3e656fef8ac32}} 
virtual void \hyperlink{a08868_a67fcefbb9cb4e40b8db3e656fef8ac32}{clear} ()
\begin{DoxyCompactList}\small\item\em Clear all elements and free memory. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_aac958733e0a0f618ce0a14ed2147d3c8}\label{a08868_aac958733e0a0f618ce0a14ed2147d3c8}} 
virtual void \hyperlink{a08868_aac958733e0a0f618ce0a14ed2147d3c8}{push\+\_\+back} ()
\begin{DoxyCompactList}\small\item\em Extend the number of elements by one. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_a033c963f94dbefe6cb9f593ca4fcf8df}\label{a08868_a033c963f94dbefe6cb9f593ca4fcf8df}} 
virtual void \hyperlink{a08868_a033c963f94dbefe6cb9f593ca4fcf8df}{swap} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)
\begin{DoxyCompactList}\small\item\em Let two elements swap their storage place. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_a773cae4c8ccbe304bc58dd0b8daba702}\label{a08868_a773cae4c8ccbe304bc58dd0b8daba702}} 
virtual void \hyperlink{a08868_a773cae4c8ccbe304bc58dd0b8daba702}{copy} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)
\begin{DoxyCompactList}\small\item\em Copy one element to another. \end{DoxyCompactList}\item 
virtual void \hyperlink{a08868_a0d9bb02308869542552eca53d041097e}{set\+\_\+persistent} (bool \+\_\+yn)
\item 
\mbox{\Hypertarget{a08868_a6c0990effe3f0a1b3d653ca34e56e22c}\label{a08868_a6c0990effe3f0a1b3d653ca34e56e22c}} 
virtual size\+\_\+t \hyperlink{a08868_a6c0990effe3f0a1b3d653ca34e56e22c}{n\+\_\+elements} () const
\begin{DoxyCompactList}\small\item\em Number of elements in property. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_ac2fc8c4f177fe59804fd04ec0468ae66}\label{a08868_ac2fc8c4f177fe59804fd04ec0468ae66}} 
virtual size\+\_\+t \hyperlink{a08868_ac2fc8c4f177fe59804fd04ec0468ae66}{element\+\_\+size} () const
\begin{DoxyCompactList}\small\item\em Size of one element in bytes or Unknown\+Size if not known. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_aabf0cfbb5bd010cdfbd1e9d3ae37de3f}\label{a08868_aabf0cfbb5bd010cdfbd1e9d3ae37de3f}} 
virtual size\+\_\+t \hyperlink{a08868_aabf0cfbb5bd010cdfbd1e9d3ae37de3f}{size\+\_\+of} () const
\begin{DoxyCompactList}\small\item\em Return size of property in bytes. \end{DoxyCompactList}\item 
virtual size\+\_\+t \hyperlink{a08868_a4c2eafa7bba60bfc026fab6d2dd84f1e}{size\+\_\+of} (size\+\_\+t) const
\item 
\mbox{\Hypertarget{a08868_af9f2bddbf5985ab5602138c9bbb2f5a2}\label{a08868_af9f2bddbf5985ab5602138c9bbb2f5a2}} 
size\+\_\+t \hyperlink{a08868_af9f2bddbf5985ab5602138c9bbb2f5a2}{store} (std\+::ostream \&\+\_\+ostr, bool \+\_\+swap) const
\begin{DoxyCompactList}\small\item\em Store self as one binary block. Max. length of a string is 65535 bytes. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{a08868_a619e87f5a601b4c4007a91ffc58c6bb6}{restore} (std\+::istream \&\+\_\+istr, bool \+\_\+swap)
\item 
\mbox{\Hypertarget{a08868_a241f1d270e976982c9411e7eca1ec9ac}\label{a08868_a241f1d270e976982c9411e7eca1ec9ac}} 
const value\+\_\+type $\ast$ {\bfseries data} () const
\item 
\mbox{\Hypertarget{a08868_a14a2db9eb8b2517eb91584fb2ebd3716}\label{a08868_a14a2db9eb8b2517eb91584fb2ebd3716}} 
reference \hyperlink{a08868_a14a2db9eb8b2517eb91584fb2ebd3716}{operator\mbox{[}$\,$\mbox{]}} (int \+\_\+idx)
\begin{DoxyCompactList}\small\item\em Access the i\textquotesingle{}th element. No range check is performed! \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_abdcba111e602ace1dde5d73ea92d76bf}\label{a08868_abdcba111e602ace1dde5d73ea92d76bf}} 
const\+\_\+reference \hyperlink{a08868_abdcba111e602ace1dde5d73ea92d76bf}{operator\mbox{[}$\,$\mbox{]}} (int \+\_\+idx) const
\begin{DoxyCompactList}\small\item\em Const access the i\textquotesingle{}th element. No range check is performed! \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08868_a733c7c1c7d2cc630bc976fe01eb13b01}\label{a08868_a733c7c1c7d2cc630bc976fe01eb13b01}} 
\hyperlink{a08860}{PropertyT}$<$ value\+\_\+type $>$ $\ast$ \hyperlink{a08868_a733c7c1c7d2cc630bc976fe01eb13b01}{clone} () const
\begin{DoxyCompactList}\small\item\em Return a deep copy of self. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08868_a436e09c245a20cdfe26fb8678de9cc81}\label{a08868_a436e09c245a20cdfe26fb8678de9cc81}} 
vector\+\_\+type {\bfseries data\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$$>$\newline
class Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}

Property specialization for std\+::string type. 

Definition at line 385 of file Property.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08868_a619e87f5a601b4c4007a91ffc58c6bb6}\label{a08868_a619e87f5a601b4c4007a91ffc58c6bb6}} 
\index{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}!restore@{restore}}
\index{restore@{restore}!Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}}
\subsubsection{\texorpdfstring{restore()}{restore()}}
{\footnotesize\ttfamily size\+\_\+t \hyperlink{a08860}{Open\+Mesh\+::\+PropertyT}$<$ std\+::string $>$\+::restore (\begin{DoxyParamCaption}\item[{std\+::istream \&}]{\+\_\+istr,  }\item[{bool}]{\+\_\+swap }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Restore self from a binary block. Uses \hyperlink{a08868_afb478035fb9ecd4e514ca910da744a1f}{reserve()} to set the size of self before restoring. 

Implements \hyperlink{a08824_a0eb66e2547283ca989179d508fbbed87}{Open\+Mesh\+::\+Base\+Property}.



Definition at line 430 of file Property.\+hh.

\mbox{\Hypertarget{a08868_a0d9bb02308869542552eca53d041097e}\label{a08868_a0d9bb02308869542552eca53d041097e}} 
\index{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}!set\+\_\+persistent@{set\+\_\+persistent}}
\index{set\+\_\+persistent@{set\+\_\+persistent}!Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}}
\subsubsection{\texorpdfstring{set\+\_\+persistent()}{set\_persistent()}}
{\footnotesize\ttfamily virtual void \hyperlink{a08860}{Open\+Mesh\+::\+PropertyT}$<$ std\+::string $>$\+::set\+\_\+persistent (\begin{DoxyParamCaption}\item[{bool}]{\+\_\+yn }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Enable or disable persistency. Self must be a named property to enable persistency. 

Implements \hyperlink{a08824_aeac2109212f8489104137a03ffee3962}{Open\+Mesh\+::\+Base\+Property}.



Definition at line 415 of file Property.\+hh.

\mbox{\Hypertarget{a08868_a4c2eafa7bba60bfc026fab6d2dd84f1e}\label{a08868_a4c2eafa7bba60bfc026fab6d2dd84f1e}} 
\index{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}!size\+\_\+of@{size\+\_\+of}}
\index{size\+\_\+of@{size\+\_\+of}!Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$@{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}}
\subsubsection{\texorpdfstring{size\+\_\+of()}{size\_of()}}
{\footnotesize\ttfamily virtual size\+\_\+t \hyperlink{a08860}{Open\+Mesh\+::\+PropertyT}$<$ std\+::string $>$\+::size\+\_\+of (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{\+\_\+n\+\_\+elem }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Estimated size of property if it has \+\_\+n\+\_\+elem elements. The member returns Unknown\+Size if the size cannot be estimated. 

Reimplemented from \hyperlink{a08824_ac13fe04403a9062dff6988b5aadee639}{Open\+Mesh\+::\+Base\+Property}.



Definition at line 423 of file Property.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/Property.\+hh\end{DoxyCompactItemize}
