\hypertarget{a01043}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Open\+Mesh\+:\+:Property\+T$<$ bool $>$ Class Template Reference}
\label{a01043}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
}
Inheritance diagram for A\+C\+G\+:\+:Scene\+Graph\+:\+:Open\+Mesh\+:\+:Property\+T$<$ bool $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01043}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01043_afb13ae99474b941d83bbd4de9e313ae0}{typedef std\+::vector$<$ bool $>$ {\bfseries vector\+\_\+type}}\label{a01043_afb13ae99474b941d83bbd4de9e313ae0}

\item 
\hypertarget{a01043_a9ff222c601d0415722fdefca9b425d91}{typedef bool {\bfseries value\+\_\+type}}\label{a01043_a9ff222c601d0415722fdefca9b425d91}

\item 
\hypertarget{a01043_a464502f5f0ecc5f792d014089cdb469e}{typedef vector\+\_\+type\+::reference {\bfseries reference}}\label{a01043_a464502f5f0ecc5f792d014089cdb469e}

\item 
\hypertarget{a01043_a6ed9390e1e21d338cd2e9c63b31e6e17}{typedef \\*
vector\+\_\+type\+::const\+\_\+reference {\bfseries const\+\_\+reference}}\label{a01043_a6ed9390e1e21d338cd2e9c63b31e6e17}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01043_a32a74638ff30e6000e32eef232c258fd}{{\bfseries Property\+T} (const std\+::string \&\+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})}\label{a01043_a32a74638ff30e6000e32eef232c258fd}

\item 
\hypertarget{a01043_a2fae51bfe1296af4911f6040c9b4c2e0}{virtual void \hyperlink{a01043_a2fae51bfe1296af4911f6040c9b4c2e0}{reserve} (size\+\_\+t \+\_\+n)}\label{a01043_a2fae51bfe1296af4911f6040c9b4c2e0}

\begin{DoxyCompactList}\small\item\em Reserve memory for n elements. \end{DoxyCompactList}\item 
\hypertarget{a01043_aad127a79949ff31ac366098e139f8aa6}{virtual void \hyperlink{a01043_aad127a79949ff31ac366098e139f8aa6}{resize} (size\+\_\+t \+\_\+n)}\label{a01043_aad127a79949ff31ac366098e139f8aa6}

\begin{DoxyCompactList}\small\item\em Resize storage to hold n elements. \end{DoxyCompactList}\item 
\hypertarget{a01043_afdd3de1c4e6c84bebc66ae0f23a8f83e}{virtual void \hyperlink{a01043_afdd3de1c4e6c84bebc66ae0f23a8f83e}{clear} ()}\label{a01043_afdd3de1c4e6c84bebc66ae0f23a8f83e}

\begin{DoxyCompactList}\small\item\em Clear all elements and free memory. \end{DoxyCompactList}\item 
\hypertarget{a01043_af18430b3ada1379631df2adfbca434a3}{virtual void \hyperlink{a01043_af18430b3ada1379631df2adfbca434a3}{push\+\_\+back} ()}\label{a01043_af18430b3ada1379631df2adfbca434a3}

\begin{DoxyCompactList}\small\item\em Extend the number of elements by one. \end{DoxyCompactList}\item 
\hypertarget{a01043_a1641c72f474d5220d14fd26188dddd23}{virtual void \hyperlink{a01043_a1641c72f474d5220d14fd26188dddd23}{swap} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)}\label{a01043_a1641c72f474d5220d14fd26188dddd23}

\begin{DoxyCompactList}\small\item\em Let two elements swap their storage place. \end{DoxyCompactList}\item 
\hypertarget{a01043_ac5ed1d5e293de54ea96341196d3cf794}{virtual void \hyperlink{a01043_ac5ed1d5e293de54ea96341196d3cf794}{copy} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)}\label{a01043_ac5ed1d5e293de54ea96341196d3cf794}

\begin{DoxyCompactList}\small\item\em Copy one element to another. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01043_a5c3880a24928789ae51c916979b9643f}{set\+\_\+persistent} (bool \+\_\+yn)
\item 
\hypertarget{a01043_ab93a86c941137c2174c503d0544fcfb8}{virtual size\+\_\+t \hyperlink{a01043_ab93a86c941137c2174c503d0544fcfb8}{n\+\_\+elements} () const }\label{a01043_ab93a86c941137c2174c503d0544fcfb8}

\begin{DoxyCompactList}\small\item\em Number of elements in property. \end{DoxyCompactList}\item 
\hypertarget{a01043_a053a17e29106a1cb7118e3f888792516}{virtual size\+\_\+t \hyperlink{a01043_a053a17e29106a1cb7118e3f888792516}{element\+\_\+size} () const }\label{a01043_a053a17e29106a1cb7118e3f888792516}

\begin{DoxyCompactList}\small\item\em Size of one element in bytes or Unknown\+Size if not known. \end{DoxyCompactList}\item 
\hypertarget{a01043_a0db440fcc336fe64db38b19e1d01dc44}{virtual size\+\_\+t \hyperlink{a01043_a0db440fcc336fe64db38b19e1d01dc44}{size\+\_\+of} () const }\label{a01043_a0db440fcc336fe64db38b19e1d01dc44}

\begin{DoxyCompactList}\small\item\em Return size of property in bytes. \end{DoxyCompactList}\item 
virtual size\+\_\+t \hyperlink{a01043_aa6478bd0c975de9583938a9c8dd9fbc3}{size\+\_\+of} (size\+\_\+t \+\_\+n\+\_\+elem) const 
\item 
\hypertarget{a01043_a51e89c62819161dd538a72a5d09876e2}{size\+\_\+t \hyperlink{a01043_a51e89c62819161dd538a72a5d09876e2}{store} (std\+::ostream \&\+\_\+ostr, bool) const }\label{a01043_a51e89c62819161dd538a72a5d09876e2}

\begin{DoxyCompactList}\small\item\em Store self as one binary block. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{a01043_acd8cecb22386ca6988a38092d84e8011}{restore} (std\+::istream \&\+\_\+istr, bool)
\item 
\hypertarget{a01043_af155f3b3b22c7f53be55b6f80cb2101a}{vector\+\_\+type \& \hyperlink{a01043_af155f3b3b22c7f53be55b6f80cb2101a}{data\+\_\+vector} ()}\label{a01043_af155f3b3b22c7f53be55b6f80cb2101a}

\begin{DoxyCompactList}\small\item\em Get reference to property vector (be careful, improper usage, e.\+g. resizing, may crash Open\+Mesh!!!) \end{DoxyCompactList}\item 
\hypertarget{a01043_af1bd069dea5e99faf6ed51aaa9eb85b0}{const vector\+\_\+type \& \hyperlink{a01043_af1bd069dea5e99faf6ed51aaa9eb85b0}{data\+\_\+vector} () const }\label{a01043_af1bd069dea5e99faf6ed51aaa9eb85b0}

\begin{DoxyCompactList}\small\item\em Const access to property vector. \end{DoxyCompactList}\item 
\hypertarget{a01043_a3bfd3bde697495a9cedb5d751f15a6a1}{reference \hyperlink{a01043_a3bfd3bde697495a9cedb5d751f15a6a1}{operator\mbox{[}$\,$\mbox{]}} (int \+\_\+idx)}\label{a01043_a3bfd3bde697495a9cedb5d751f15a6a1}

\begin{DoxyCompactList}\small\item\em Access the i'th element. No range check is performed! \end{DoxyCompactList}\item 
\hypertarget{a01043_a2ee6ab15622cf6529a7dd22dcb7ef665}{const\+\_\+reference \hyperlink{a01043_a2ee6ab15622cf6529a7dd22dcb7ef665}{operator\mbox{[}$\,$\mbox{]}} (int \+\_\+idx) const }\label{a01043_a2ee6ab15622cf6529a7dd22dcb7ef665}

\begin{DoxyCompactList}\small\item\em Const access to the i'th element. No range check is performed! \end{DoxyCompactList}\item 
\hypertarget{a01043_a573783c8a718f663f245421b68cb6485}{\hyperlink{a01040}{Property\+T}$<$ bool $>$ $\ast$ \hyperlink{a01043_a573783c8a718f663f245421b68cb6485}{clone} () const }\label{a01043_a573783c8a718f663f245421b68cb6485}

\begin{DoxyCompactList}\small\item\em Make a copy of self. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01043_ac14165134ff35bf02dd632f7016e5945}{vector\+\_\+type {\bfseries data\+\_\+}}\label{a01043_ac14165134ff35bf02dd632f7016e5945}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$$>$class A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}

Property specialization for bool type.

The data will be stored as a bitset. 

Definition at line 227 of file Mesh\+Node2\+T.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a01043_acd8cecb22386ca6988a38092d84e8011}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}!restore@{restore}}
\index{restore@{restore}!A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
\subsubsection[{restore}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T}$<$ bool $>$\+::restore (
\begin{DoxyParamCaption}
\item[{std\+::istream \&}]{\+\_\+istr, }
\item[{bool}]{\+\_\+swap}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01043_acd8cecb22386ca6988a38092d84e8011}
Restore self from a binary block. Uses \hyperlink{a01043_a2fae51bfe1296af4911f6040c9b4c2e0}{reserve()} to set the size of self before restoring. 

Implements \hyperlink{a00333_a99986d18bb42d1ff958fa0529d2a0e86}{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Base\+Property}.



Definition at line 307 of file Mesh\+Node2\+T.\+cc.

\hypertarget{a01043_a5c3880a24928789ae51c916979b9643f}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}!set\+\_\+persistent@{set\+\_\+persistent}}
\index{set\+\_\+persistent@{set\+\_\+persistent}!A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
\subsubsection[{set\+\_\+persistent}]{\setlength{\rightskip}{0pt plus 5cm}virtual void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T}$<$ bool $>$\+::set\+\_\+persistent (
\begin{DoxyParamCaption}
\item[{bool}]{\+\_\+yn}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01043_a5c3880a24928789ae51c916979b9643f}
Enable or disable persistency. Self must be a named property to enable persistency. 

Implements \hyperlink{a00333_a2d986f28e6c09cbb028e5e189c15a5db}{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Base\+Property}.



Definition at line 255 of file Mesh\+Node2\+T.\+cc.

\hypertarget{a01043_aa6478bd0c975de9583938a9c8dd9fbc3}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}!size\+\_\+of@{size\+\_\+of}}
\index{size\+\_\+of@{size\+\_\+of}!A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T$<$ bool $>$}}
\subsubsection[{size\+\_\+of}]{\setlength{\rightskip}{0pt plus 5cm}virtual size\+\_\+t {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Property\+T}$<$ bool $>$\+::size\+\_\+of (
\begin{DoxyParamCaption}
\item[{size\+\_\+t}]{\+\_\+n\+\_\+elem}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01043_aa6478bd0c975de9583938a9c8dd9fbc3}
Estimated size of property if it has \+\_\+n\+\_\+elem elements. The member returns Unknown\+Size if the size cannot be estimated. 

Reimplemented from \hyperlink{a00333_aa5eebab2b4996b6ebae21c2d9a42b3df}{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+Base\+Property}.



Definition at line 263 of file Mesh\+Node2\+T.\+cc.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Scenegraph/Mesh\+Node2\+T.\+cc\end{DoxyCompactItemize}
