\hypertarget{a01041}{\section{Properties\+:\+:Property\+T$<$ T $>$ Class Template Reference}
\label{a01041}\index{Properties\+::\+Property\+T$<$ T $>$@{Properties\+::\+Property\+T$<$ T $>$}}
}


A container storing a single property for all objects.  




{\ttfamily \#include $<$Object\+Types/\+Skeleton/\+Properties.\+hh$>$}

Inheritance diagram for Properties\+:\+:Property\+T$<$ T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01041}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a01041_a0bf73de651e9ba0fab4c6cc9cb11c39b}{Property\+T} (unsigned long \+\_\+size=0)
\begin{DoxyCompactList}\small\item\em Creates a new property with the given size. \end{DoxyCompactList}\item 
\hypertarget{a01041_a3d625bea3a3a55aad32b4de7a7c956a5}{virtual \hyperlink{a01041_a3d625bea3a3a55aad32b4de7a7c956a5}{$\sim$\+Property\+T} ()}\label{a01041_a3d625bea3a3a55aad32b4de7a7c956a5}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
T \& \hyperlink{a01041_a04b229d9187034ab8084757c69e1ee4d}{operator\mbox{[}$\,$\mbox{]}} (int \+\_\+index)
\begin{DoxyCompactList}\small\item\em Direct access to the value with the given index. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{Indent}{\bf Synchronization}\par
{\em Called by the \hyperlink{a01027}{Properties} container to keep the indices in sync. }\begin{DoxyCompactItemize}
\item 
\hypertarget{a01041_ac343e4fbca1d84b903c2c18e98cc92c0}{void \hyperlink{a01041_ac343e4fbca1d84b903c2c18e98cc92c0}{insert\+\_\+at} (int \+\_\+index)}\label{a01041_ac343e4fbca1d84b903c2c18e98cc92c0}

\begin{DoxyCompactList}\small\item\em Insert element. \end{DoxyCompactList}\item 
\hypertarget{a01041_a00352139090ae8d391bb4195b47cc075}{void \hyperlink{a01041_a00352139090ae8d391bb4195b47cc075}{remove\+\_\+at} (int \+\_\+index)}\label{a01041_a00352139090ae8d391bb4195b47cc075}

\begin{DoxyCompactList}\small\item\em Remove element. \end{DoxyCompactList}\item 
\hypertarget{a01041_a7bb2a24048f6198688ef0ed2ef841de5}{void \hyperlink{a01041_a7bb2a24048f6198688ef0ed2ef841de5}{clear} ()}\label{a01041_a7bb2a24048f6198688ef0ed2ef841de5}

\begin{DoxyCompactList}\small\item\em Clear the property. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01041_aeec3c0f8c5b6e01fc1faab0552e538f2}{std\+::vector$<$ T $>$ \hyperlink{a01041_aeec3c0f8c5b6e01fc1faab0552e538f2}{values\+\_\+}}\label{a01041_aeec3c0f8c5b6e01fc1faab0552e538f2}

\begin{DoxyCompactList}\small\item\em Stores a property for every object in the class derived from the \hyperlink{a01027}{Properties} class. Access by index. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01041_a07abafce4382a305ca01821acdae5cd9}{class {\bfseries Properties}}\label{a01041_a07abafce4382a305ca01821acdae5cd9}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$class Properties\+::\+Property\+T$<$ T $>$}

A container storing a single property for all objects. 

The template type is determined by the property handle \hyperlink{a01031}{Property\+Handle\+T} used to add it to the \hyperlink{a01027}{Properties} container. 

Definition at line 135 of file Properties.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a01041_a0bf73de651e9ba0fab4c6cc9cb11c39b}{\index{Properties\+::\+Property\+T@{Properties\+::\+Property\+T}!Property\+T@{Property\+T}}
\index{Property\+T@{Property\+T}!Properties\+::\+Property\+T@{Properties\+::\+Property\+T}}
\subsubsection[{Property\+T}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf Properties\+::\+Property\+T}$<$ T $>$\+::{\bf Property\+T} (
\begin{DoxyParamCaption}
\item[{unsigned long}]{\+\_\+size = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}\label{a01041_a0bf73de651e9ba0fab4c6cc9cb11c39b}


Creates a new property with the given size. 

If a property is created when the derived class is already holding objects, it is of course not in sync with regard to the number of stored values (e.\+g. see \hyperlink{a01041_ac343e4fbca1d84b903c2c18e98cc92c0}{Properties\+::\+Property\+T\+::insert\+\_\+at}). The {\itshape \+\_\+size} parameter allocates the memory to get the new property in sync. 

Definition at line 241 of file Properties\+T.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a01041_a04b229d9187034ab8084757c69e1ee4d}{\index{Properties\+::\+Property\+T@{Properties\+::\+Property\+T}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!Properties\+::\+Property\+T@{Properties\+::\+Property\+T}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ T \& {\bf Properties\+::\+Property\+T}$<$ T $>$\+::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+index}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01041_a04b229d9187034ab8084757c69e1ee4d}


Direct access to the value with the given index. 

This method is used by the \hyperlink{a01027}{Properties} class to gain access to the \hyperlink{a01027}{Properties} values 

Definition at line 265 of file Properties\+T.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Object\+Types/\+Skeleton/\hyperlink{a02382}{Properties.\+hh}\item 
Object\+Types/\+Skeleton/Properties\+T.\+cc\end{DoxyCompactItemize}
