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


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

Inheritance diagram for Open\+Mesh\+:\+:PropertyT$<$ bool $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08864}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08864_a7bf4b00eb41ecf61d4d926f9e513786b}\label{a08864_a7bf4b00eb41ecf61d4d926f9e513786b}} 
typedef std\+::vector$<$ bool $>$ {\bfseries vector\+\_\+type}
\item 
\mbox{\Hypertarget{a08864_ac542398d98d4f6077fa9d393fd5f751f}\label{a08864_ac542398d98d4f6077fa9d393fd5f751f}} 
typedef bool {\bfseries value\+\_\+type}
\item 
\mbox{\Hypertarget{a08864_ac5c41794ade9a4641203d800e1d40d4f}\label{a08864_ac5c41794ade9a4641203d800e1d40d4f}} 
typedef vector\+\_\+type\+::reference {\bfseries reference}
\item 
\mbox{\Hypertarget{a08864_a3c2060a3e8a971464fe5339adcf187c4}\label{a08864_a3c2060a3e8a971464fe5339adcf187c4}} 
typedef vector\+\_\+type\+::const\+\_\+reference {\bfseries const\+\_\+reference}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08864_a8565409985afeab2b4358b0ffa74a4d8}\label{a08864_a8565409985afeab2b4358b0ffa74a4d8}} 
{\bfseries PropertyT} (const std\+::string \&\+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\item 
\mbox{\Hypertarget{a08864_abef752edc279b4292fb1c31f8e8ee154}\label{a08864_abef752edc279b4292fb1c31f8e8ee154}} 
virtual void \hyperlink{a08864_abef752edc279b4292fb1c31f8e8ee154}{reserve} (size\+\_\+t \+\_\+n)
\begin{DoxyCompactList}\small\item\em Reserve memory for n elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_a48a2320db88db727ae3d240a9da3c568}\label{a08864_a48a2320db88db727ae3d240a9da3c568}} 
virtual void \hyperlink{a08864_a48a2320db88db727ae3d240a9da3c568}{resize} (size\+\_\+t \+\_\+n)
\begin{DoxyCompactList}\small\item\em Resize storage to hold n elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_a5f7652fabe2e9e7fd027959cbc3f6e8b}\label{a08864_a5f7652fabe2e9e7fd027959cbc3f6e8b}} 
virtual void \hyperlink{a08864_a5f7652fabe2e9e7fd027959cbc3f6e8b}{clear} ()
\begin{DoxyCompactList}\small\item\em Clear all elements and free memory. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_ab60573dee747c0020faac9fec1c3a49c}\label{a08864_ab60573dee747c0020faac9fec1c3a49c}} 
virtual void \hyperlink{a08864_ab60573dee747c0020faac9fec1c3a49c}{push\+\_\+back} ()
\begin{DoxyCompactList}\small\item\em Extend the number of elements by one. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_a22af36c750cbd759ab6cb672e56da5d7}\label{a08864_a22af36c750cbd759ab6cb672e56da5d7}} 
virtual void \hyperlink{a08864_a22af36c750cbd759ab6cb672e56da5d7}{swap} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)
\begin{DoxyCompactList}\small\item\em Let two elements swap their storage place. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_ab2903a471f3aa1a7d22394b042f697fb}\label{a08864_ab2903a471f3aa1a7d22394b042f697fb}} 
virtual void \hyperlink{a08864_ab2903a471f3aa1a7d22394b042f697fb}{copy} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)
\begin{DoxyCompactList}\small\item\em Copy one element to another. \end{DoxyCompactList}\item 
virtual void \hyperlink{a08864_aede7a8a5b614c7cd594c13f689ef716e}{set\+\_\+persistent} (bool \+\_\+yn)
\item 
\mbox{\Hypertarget{a08864_a6ff74b83c62f67f5011eb764a80818e5}\label{a08864_a6ff74b83c62f67f5011eb764a80818e5}} 
virtual size\+\_\+t \hyperlink{a08864_a6ff74b83c62f67f5011eb764a80818e5}{n\+\_\+elements} () const
\begin{DoxyCompactList}\small\item\em Number of elements in property. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_aed66250cc1c3bd5515c299f1f95c7aeb}\label{a08864_aed66250cc1c3bd5515c299f1f95c7aeb}} 
virtual size\+\_\+t \hyperlink{a08864_aed66250cc1c3bd5515c299f1f95c7aeb}{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{a08864_a03ee62bfb9021ca4b4e732a016fbca8a}\label{a08864_a03ee62bfb9021ca4b4e732a016fbca8a}} 
virtual size\+\_\+t \hyperlink{a08864_a03ee62bfb9021ca4b4e732a016fbca8a}{size\+\_\+of} () const
\begin{DoxyCompactList}\small\item\em Return size of property in bytes. \end{DoxyCompactList}\item 
virtual size\+\_\+t \hyperlink{a08864_ae831abf79da335f539fe7232d5262a5a}{size\+\_\+of} (size\+\_\+t \+\_\+n\+\_\+elem) const
\item 
\mbox{\Hypertarget{a08864_a6a32b311ecf264c770b50cdffbcd2839}\label{a08864_a6a32b311ecf264c770b50cdffbcd2839}} 
size\+\_\+t \hyperlink{a08864_a6a32b311ecf264c770b50cdffbcd2839}{store} (std\+::ostream \&\+\_\+ostr, bool) const
\begin{DoxyCompactList}\small\item\em Store self as one binary block. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{a08864_a21d1880f0b89fb9daa1c0c5daed574b1}{restore} (std\+::istream \&\+\_\+istr, bool)
\item 
\mbox{\Hypertarget{a08864_a3410cc28e92d32be24a56f48e5d9679e}\label{a08864_a3410cc28e92d32be24a56f48e5d9679e}} 
vector\+\_\+type \& \hyperlink{a08864_a3410cc28e92d32be24a56f48e5d9679e}{data\+\_\+vector} ()
\begin{DoxyCompactList}\small\item\em Get reference to property vector (be careful, improper usage, e.\+g. resizing, may crash Open\+Mesh!!!) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_aeb232124fd12c10c4713f7ce19724648}\label{a08864_aeb232124fd12c10c4713f7ce19724648}} 
const vector\+\_\+type \& \hyperlink{a08864_aeb232124fd12c10c4713f7ce19724648}{data\+\_\+vector} () const
\begin{DoxyCompactList}\small\item\em Const access to property vector. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_a26861d26da93031960c7280b7bc32774}\label{a08864_a26861d26da93031960c7280b7bc32774}} 
reference \hyperlink{a08864_a26861d26da93031960c7280b7bc32774}{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{a08864_a667c44463226dc6a93e19f5883648d49}\label{a08864_a667c44463226dc6a93e19f5883648d49}} 
const\+\_\+reference \hyperlink{a08864_a667c44463226dc6a93e19f5883648d49}{operator\mbox{[}$\,$\mbox{]}} (int \+\_\+idx) const
\begin{DoxyCompactList}\small\item\em Const access to the i\textquotesingle{}th element. No range check is performed! \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08864_ab83af1803744ec63fab976ee3b5162e5}\label{a08864_ab83af1803744ec63fab976ee3b5162e5}} 
\hyperlink{a08860}{PropertyT}$<$ bool $>$ $\ast$ \hyperlink{a08864_ab83af1803744ec63fab976ee3b5162e5}{clone} () const
\begin{DoxyCompactList}\small\item\em Make a copy of self. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08864_aeb6bb56c75c01e0c08c059c06ee79126}\label{a08864_aeb6bb56c75c01e0c08c059c06ee79126}} 
vector\+\_\+type {\bfseries data\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


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

Property specialization for bool type.

The data will be stored as a bitset. 

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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08864_a21d1880f0b89fb9daa1c0c5daed574b1}\label{a08864_a21d1880f0b89fb9daa1c0c5daed574b1}} 
\index{Open\+Mesh\+::\+Property\+T$<$ bool $>$@{Open\+Mesh\+::\+Property\+T$<$ bool $>$}!restore@{restore}}
\index{restore@{restore}!Open\+Mesh\+::\+Property\+T$<$ bool $>$@{Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
\subsubsection{\texorpdfstring{restore()}{restore()}}
{\footnotesize\ttfamily size\+\_\+t \hyperlink{a08860}{Open\+Mesh\+::\+PropertyT}$<$ bool $>$\+::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{a08864_abef752edc279b4292fb1c31f8e8ee154}{reserve()} to set the size of self before restoring. 

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



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

\mbox{\Hypertarget{a08864_aede7a8a5b614c7cd594c13f689ef716e}\label{a08864_aede7a8a5b614c7cd594c13f689ef716e}} 
\index{Open\+Mesh\+::\+Property\+T$<$ bool $>$@{Open\+Mesh\+::\+Property\+T$<$ bool $>$}!set\+\_\+persistent@{set\+\_\+persistent}}
\index{set\+\_\+persistent@{set\+\_\+persistent}!Open\+Mesh\+::\+Property\+T$<$ bool $>$@{Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
\subsubsection{\texorpdfstring{set\+\_\+persistent()}{set\_persistent()}}
{\footnotesize\ttfamily virtual void \hyperlink{a08860}{Open\+Mesh\+::\+PropertyT}$<$ bool $>$\+::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 250 of file Property.\+hh.

\mbox{\Hypertarget{a08864_ae831abf79da335f539fe7232d5262a5a}\label{a08864_ae831abf79da335f539fe7232d5262a5a}} 
\index{Open\+Mesh\+::\+Property\+T$<$ bool $>$@{Open\+Mesh\+::\+Property\+T$<$ bool $>$}!size\+\_\+of@{size\+\_\+of}}
\index{size\+\_\+of@{size\+\_\+of}!Open\+Mesh\+::\+Property\+T$<$ bool $>$@{Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
\subsubsection{\texorpdfstring{size\+\_\+of()}{size\_of()}}
{\footnotesize\ttfamily virtual size\+\_\+t \hyperlink{a08860}{Open\+Mesh\+::\+PropertyT}$<$ bool $>$\+::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 258 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}
