\hypertarget{classOpenMesh_1_1BaseProperty}{}\section{Open\+Mesh\+:\+:Base\+Property Class Reference}
\label{classOpenMesh_1_1BaseProperty}\index{Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}}


{\ttfamily \#include $<$Open\+Mesh/\+Core/\+Utils/\+Property\+T.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:Base\+Property\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=1.186441cm]{classOpenMesh_1_1BaseProperty}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classOpenMesh_1_1BaseProperty_a2cb84fe2bfd412c79ecf76ea95b857e2}{Base\+Property} (const std\+::string \&\+\_\+name=\char`\"{}$<$unknown$>$\char`\"{}, const std\+::string \&\+\_\+internal\+\_\+type\+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a9301f986c88572a20649f8743bfac6ac}\label{classOpenMesh_1_1BaseProperty_a9301f986c88572a20649f8743bfac6ac}} 
\hyperlink{classOpenMesh_1_1BaseProperty_a9301f986c88572a20649f8743bfac6ac}{Base\+Property} (const \hyperlink{classOpenMesh_1_1BaseProperty}{Base\+Property} \&\+\_\+rhs)
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_aa3c0dbc83c42199de5722a5812c5a12b}\label{classOpenMesh_1_1BaseProperty_aa3c0dbc83c42199de5722a5812c5a12b}} 
virtual \hyperlink{classOpenMesh_1_1BaseProperty_aa3c0dbc83c42199de5722a5812c5a12b}{$\sim$\+Base\+Property} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a4060f65f09046a5afc09dec01e6fb43a}\label{classOpenMesh_1_1BaseProperty_a4060f65f09046a5afc09dec01e6fb43a}} 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_a4060f65f09046a5afc09dec01e6fb43a}{reserve} (size\+\_\+t \+\_\+n)=0
\begin{DoxyCompactList}\small\item\em Reserve memory for n elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a66772821263401aa8c178f3a69aa79e7}\label{classOpenMesh_1_1BaseProperty_a66772821263401aa8c178f3a69aa79e7}} 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_a66772821263401aa8c178f3a69aa79e7}{resize} (size\+\_\+t \+\_\+n)=0
\begin{DoxyCompactList}\small\item\em Resize storage to hold n elements. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a6c1ae555fb1427debe9428422f82424a}\label{classOpenMesh_1_1BaseProperty_a6c1ae555fb1427debe9428422f82424a}} 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_a6c1ae555fb1427debe9428422f82424a}{clear} ()=0
\begin{DoxyCompactList}\small\item\em Clear all elements and free memory. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a1f2bd397fadcf254837de61df06069d0}\label{classOpenMesh_1_1BaseProperty_a1f2bd397fadcf254837de61df06069d0}} 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_a1f2bd397fadcf254837de61df06069d0}{push\+\_\+back} ()=0
\begin{DoxyCompactList}\small\item\em Extend the number of elements by one. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a675f54dbc7eabe2f9489a8e5d2d1c93a}\label{classOpenMesh_1_1BaseProperty_a675f54dbc7eabe2f9489a8e5d2d1c93a}} 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_a675f54dbc7eabe2f9489a8e5d2d1c93a}{swap} (size\+\_\+t \+\_\+i0, size\+\_\+t \+\_\+i1)=0
\begin{DoxyCompactList}\small\item\em Let two elements swap their storage place. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_aac5035f4fa788d640f96d80ee082cb87}\label{classOpenMesh_1_1BaseProperty_aac5035f4fa788d640f96d80ee082cb87}} 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_aac5035f4fa788d640f96d80ee082cb87}{copy} (size\+\_\+t \+\_\+io, size\+\_\+t \+\_\+i1)=0
\begin{DoxyCompactList}\small\item\em Copy one element to another. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a77ca94a8f5980b756b22844e360f3e93}\label{classOpenMesh_1_1BaseProperty_a77ca94a8f5980b756b22844e360f3e93}} 
virtual \hyperlink{classOpenMesh_1_1BaseProperty}{Base\+Property} $\ast$ \hyperlink{classOpenMesh_1_1BaseProperty_a77ca94a8f5980b756b22844e360f3e93}{clone} () const =0
\begin{DoxyCompactList}\small\item\em Return a deep copy of self. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a529c57d1514c7c0370f1c742d166bf9c}\label{classOpenMesh_1_1BaseProperty_a529c57d1514c7c0370f1c742d166bf9c}} 
const std\+::string \& \hyperlink{classOpenMesh_1_1BaseProperty_a529c57d1514c7c0370f1c742d166bf9c}{name} () const
\begin{DoxyCompactList}\small\item\em Return the name of the property. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a43ce9ccb954afe566e271c7f99a03285}\label{classOpenMesh_1_1BaseProperty_a43ce9ccb954afe566e271c7f99a03285}} 
const std\+::string \& \hyperlink{classOpenMesh_1_1BaseProperty_a43ce9ccb954afe566e271c7f99a03285}{internal\+\_\+type\+\_\+name} () const
\begin{DoxyCompactList}\small\item\em Return internal type name of the property for type safe casting alternative to runtime information. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a9145372391f82daf963fcd2b13d32515}\label{classOpenMesh_1_1BaseProperty_a9145372391f82daf963fcd2b13d32515}} 
virtual void {\bfseries stats} (std\+::ostream \&\+\_\+ostr) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a6221bd81f75bc0dfd10c934fb25467eb}\label{classOpenMesh_1_1BaseProperty_a6221bd81f75bc0dfd10c934fb25467eb}} 
bool \hyperlink{classOpenMesh_1_1BaseProperty_a6221bd81f75bc0dfd10c934fb25467eb}{persistent} (void) const
\begin{DoxyCompactList}\small\item\em Returns true if the persistent flag is enabled else false. \end{DoxyCompactList}\item 
virtual void \hyperlink{classOpenMesh_1_1BaseProperty_aeac2109212f8489104137a03ffee3962}{set\+\_\+persistent} (bool \+\_\+yn)=0
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a99ab2519267e0ddcfa5a56aea9199071}\label{classOpenMesh_1_1BaseProperty_a99ab2519267e0ddcfa5a56aea9199071}} 
virtual size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_a99ab2519267e0ddcfa5a56aea9199071}{n\+\_\+elements} () const =0
\begin{DoxyCompactList}\small\item\em Number of elements in property. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_adf1ba7d86bcc64d2fae4609e47cb4a0a}\label{classOpenMesh_1_1BaseProperty_adf1ba7d86bcc64d2fae4609e47cb4a0a}} 
virtual size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_adf1ba7d86bcc64d2fae4609e47cb4a0a}{element\+\_\+size} () const =0
\begin{DoxyCompactList}\small\item\em Size of one element in bytes or Unknown\+Size if not known. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a3bc453b15806c2ab78e82418212cb939}\label{classOpenMesh_1_1BaseProperty_a3bc453b15806c2ab78e82418212cb939}} 
virtual size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_a3bc453b15806c2ab78e82418212cb939}{size\+\_\+of} () const
\begin{DoxyCompactList}\small\item\em Return size of property in bytes. \end{DoxyCompactList}\item 
virtual size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_ac13fe04403a9062dff6988b5aadee639}{size\+\_\+of} (size\+\_\+t \+\_\+n\+\_\+elem) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_ab9142c5642b82609dfd69b5b671d872c}\label{classOpenMesh_1_1BaseProperty_ab9142c5642b82609dfd69b5b671d872c}} 
virtual size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_ab9142c5642b82609dfd69b5b671d872c}{store} (std\+::ostream \&\+\_\+ostr, bool \+\_\+swap) const =0
\begin{DoxyCompactList}\small\item\em Store self as one binary block. \end{DoxyCompactList}\item 
virtual size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_a0eb66e2547283ca989179d508fbbed87}{restore} (std\+::istream \&\+\_\+istr, bool \+\_\+swap)=0
\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a3dbccc1d0ac8f9a0ba27c46f2fe58414}\label{classOpenMesh_1_1BaseProperty_a3dbccc1d0ac8f9a0ba27c46f2fe58414}} 
static const size\+\_\+t \hyperlink{classOpenMesh_1_1BaseProperty_a3dbccc1d0ac8f9a0ba27c46f2fe58414}{Unknown\+Size} = size\+\_\+t(-\/1)
\begin{DoxyCompactList}\small\item\em Indicates an error when a size is returned by a member. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_ace9460aa7a6d1b044661a25dea831259}\label{classOpenMesh_1_1BaseProperty_ace9460aa7a6d1b044661a25dea831259}} 
{\footnotesize template$<$typename T $>$ }\\void {\bfseries check\+\_\+and\+\_\+set\+\_\+persistent} (bool \+\_\+yn)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a464927250d35e15bb1c6f813fd45246d}\label{classOpenMesh_1_1BaseProperty_a464927250d35e15bb1c6f813fd45246d}} 
std\+::string {\bfseries name\+\_\+}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a6ed80583de03e69a2b3044f25872e51f}\label{classOpenMesh_1_1BaseProperty_a6ed80583de03e69a2b3044f25872e51f}} 
std\+::string {\bfseries internal\+\_\+type\+\_\+name\+\_\+}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a1ac25c87dcfdda39059598a71cae2e7e}\label{classOpenMesh_1_1BaseProperty_a1ac25c87dcfdda39059598a71cae2e7e}} 
bool {\bfseries persistent\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstract class defining the basic interface of a dynamic property. 

Definition at line 60 of file Base\+Property.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a2cb84fe2bfd412c79ecf76ea95b857e2}\label{classOpenMesh_1_1BaseProperty_a2cb84fe2bfd412c79ecf76ea95b857e2}} 
\index{Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}!Base\+Property@{Base\+Property}}
\index{Base\+Property@{Base\+Property}!Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}}
\subsubsection{\texorpdfstring{Base\+Property()}{BaseProperty()}}
{\footnotesize\ttfamily Open\+Mesh\+::\+Base\+Property\+::\+Base\+Property (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+name = {\ttfamily \char`\"{}$<$unknown$>$\char`\"{}},  }\item[{const std\+::string \&}]{\+\_\+internal\+\_\+type\+\_\+name = {\ttfamily \char`\"{}$<$unknown$>$\char`\"{}} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Default constructor. 

In Open\+Mesh all mesh data is stored in so-\/called properties. We distinuish between standard properties, which can be defined at compile time using the \hyperlink{namespaceOpenMesh_1_1Attributes}{Attributes} in the traits definition and at runtime using the request property functions defined in one of the kernels.

If the property should be stored along with the default properties in the O\+M-\/format one must name the property and enable the persistant flag with \hyperlink{classOpenMesh_1_1BaseProperty_aeac2109212f8489104137a03ffee3962}{set\+\_\+persistent()}.


\begin{DoxyParams}{Parameters}
{\em \+\_\+name} & Optional textual name for the property. \\
\hline
\end{DoxyParams}


Definition at line 83 of file Base\+Property.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_a0eb66e2547283ca989179d508fbbed87}\label{classOpenMesh_1_1BaseProperty_a0eb66e2547283ca989179d508fbbed87}} 
\index{Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}!restore@{restore}}
\index{restore@{restore}!Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}}
\subsubsection{\texorpdfstring{restore()}{restore()}}
{\footnotesize\ttfamily virtual size\+\_\+t Open\+Mesh\+::\+Base\+Property\+::restore (\begin{DoxyParamCaption}\item[{std\+::istream \&}]{\+\_\+istr,  }\item[{bool}]{\+\_\+swap }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

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

Implemented in \hyperlink{classOpenMesh_1_1PropertyT_3_01std_1_1string_01_4_a5ab167c6e0aefcdc3583a23848e76172}{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}, \hyperlink{classOpenMesh_1_1PropertyT_3_01bool_01_4_a672cdeda99942048481f23299d06af61}{Open\+Mesh\+::\+Property\+T$<$ bool $>$}, \hyperlink{classOpenMesh_1_1Kernel__OSG_1_1oPropertyT_af263bcb96eb989660cd802eaf93cd028}{Open\+Mesh\+::\+Kernel\+\_\+\+O\+S\+G\+::o\+Property\+T$<$ Geo\+Property $>$}, and \hyperlink{classOpenMesh_1_1PropertyT_a21a883eb8907a589071a1a9992f08663}{Open\+Mesh\+::\+Property\+T$<$ T $>$}.

\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_aeac2109212f8489104137a03ffee3962}\label{classOpenMesh_1_1BaseProperty_aeac2109212f8489104137a03ffee3962}} 
\index{Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}!set\+\_\+persistent@{set\+\_\+persistent}}
\index{set\+\_\+persistent@{set\+\_\+persistent}!Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}}
\subsubsection{\texorpdfstring{set\+\_\+persistent()}{set\_persistent()}}
{\footnotesize\ttfamily virtual void Open\+Mesh\+::\+Base\+Property\+::set\+\_\+persistent (\begin{DoxyParamCaption}\item[{bool}]{\+\_\+yn }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

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

Implemented in \hyperlink{classOpenMesh_1_1PropertyT_3_01std_1_1string_01_4_a3f9f474f449fe67dd35c894869cd4144}{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}, \hyperlink{classOpenMesh_1_1PropertyT_3_01bool_01_4_a1769aa4f336856f94ea9fc4dc3e47e3d}{Open\+Mesh\+::\+Property\+T$<$ bool $>$}, \hyperlink{classOpenMesh_1_1Kernel__OSG_1_1oPropertyT_ac0e7839eeeba0528390ccbe9315dd153}{Open\+Mesh\+::\+Kernel\+\_\+\+O\+S\+G\+::o\+Property\+T$<$ Geo\+Property $>$}, and \hyperlink{classOpenMesh_1_1PropertyT_a319472fa862c14ae79a15be9b943624e}{Open\+Mesh\+::\+Property\+T$<$ T $>$}.

\mbox{\Hypertarget{classOpenMesh_1_1BaseProperty_ac13fe04403a9062dff6988b5aadee639}\label{classOpenMesh_1_1BaseProperty_ac13fe04403a9062dff6988b5aadee639}} 
\index{Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}!size\+\_\+of@{size\+\_\+of}}
\index{size\+\_\+of@{size\+\_\+of}!Open\+Mesh\+::\+Base\+Property@{Open\+Mesh\+::\+Base\+Property}}
\subsubsection{\texorpdfstring{size\+\_\+of()}{size\_of()}}
{\footnotesize\ttfamily virtual size\+\_\+t Open\+Mesh\+::\+Base\+Property\+::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 in \hyperlink{classOpenMesh_1_1PropertyT_3_01std_1_1string_01_4_a0219a9ec2f38b2fd990b9fb56f75864b}{Open\+Mesh\+::\+Property\+T$<$ std\+::string $>$}, \hyperlink{classOpenMesh_1_1PropertyT_3_01bool_01_4_aa80cd555d7b09b6ede1e00bdc325a7d4}{Open\+Mesh\+::\+Property\+T$<$ bool $>$}, and \hyperlink{classOpenMesh_1_1PropertyT_a8a6a422ca248fab83e371d825e57ba32}{Open\+Mesh\+::\+Property\+T$<$ T $>$}.



Definition at line 150 of file Base\+Property.\+hh.



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