\hypertarget{a00892}{\section{Object\+I\+D\+Pointer\+Manager\+T$<$ Pointer $>$ Class Template Reference}
\label{a00892}\index{Object\+I\+D\+Pointer\+Manager\+T$<$ Pointer $>$@{Object\+I\+D\+Pointer\+Manager\+T$<$ Pointer $>$}}
}


{\ttfamily \#include $<$Open\+Flipper/common/\+Object\+I\+D\+Pointer\+Manager\+T.\+hh$>$}

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00892_a9e35bb192095abb5982b64270506e2ba}{typedef std\+::map$<$ int, Pointer $>$ \hyperlink{a00892_a9e35bb192095abb5982b64270506e2ba}{Pointer\+Object\+I\+D\+Map}}\label{a00892_a9e35bb192095abb5982b64270506e2ba}

\begin{DoxyCompactList}\small\item\em typedef for the idmap \end{DoxyCompactList}\item 
\hypertarget{a00892_a77d0163b2f9a76a84699b0180cf7625e}{typedef std\+::pair$<$ int, Pointer $>$ \hyperlink{a00892_a77d0163b2f9a76a84699b0180cf7625e}{Pointer\+Object\+I\+D\+Pair}}\label{a00892_a77d0163b2f9a76a84699b0180cf7625e}

\begin{DoxyCompactList}\small\item\em typedef for the pairs \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00892_a9dae0b228894750b3f2af4f3ed2cabbf}{\hyperlink{a00892_a9dae0b228894750b3f2af4f3ed2cabbf}{Object\+I\+D\+Pointer\+Manager\+T} ()}\label{a00892_a9dae0b228894750b3f2af4f3ed2cabbf}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00892_adc879ddcb403a5be2e1baf755cfc4360}{\hyperlink{a00892_adc879ddcb403a5be2e1baf755cfc4360}{$\sim$\+Object\+I\+D\+Pointer\+Manager\+T} ()}\label{a00892_adc879ddcb403a5be2e1baf755cfc4360}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
bool \hyperlink{a00892_a6c7a983c0d3b1f0164983625c104061d}{get\+\_\+pointer} (int \+\_\+identifier, Pointer \&\+\_\+pointer)
\item 
Pointer \hyperlink{a00892_a78cf36225f169b7dd942708a8ec333d4}{get\+\_\+pointer} (int \+\_\+identifier)
\item 
bool \hyperlink{a00892_aa944b766aa7a99a188ff7e1239117eb0}{add\+\_\+pointer} (int \+\_\+identifier, const Pointer \&\+\_\+pointer)
\item 
\hypertarget{a00892_a1fe64ca08678ed09196659e72a3090dd}{bool \hyperlink{a00892_a1fe64ca08678ed09196659e72a3090dd}{delete\+\_\+object} (int \+\_\+identifier)}\label{a00892_a1fe64ca08678ed09196659e72a3090dd}

\begin{DoxyCompactList}\small\item\em Doesn't actually delete object (pointed to by pointer) only clears entry from the map. \end{DoxyCompactList}\item 
\hypertarget{a00892_a78c920860d83bad4f13606d032cf52ce}{void {\bfseries get\+\_\+object\+\_\+ids} (std\+::vector$<$ int $>$ \&\+\_\+ids)}\label{a00892_a78c920860d83bad4f13606d032cf52ce}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00892_a499f58e8a29842af9f138390593a9caa}{\hyperlink{a00892_a499f58e8a29842af9f138390593a9caa}{Object\+I\+D\+Pointer\+Manager\+T} (const \hyperlink{a00892}{Object\+I\+D\+Pointer\+Manager\+T} \&\+\_\+rhs)}\label{a00892_a499f58e8a29842af9f138390593a9caa}

\begin{DoxyCompactList}\small\item\em Copy constructor (not used) \end{DoxyCompactList}\item 
\hypertarget{a00892_a82cb3e91ffb1bdd007e8eeb516cfa34d}{\hyperlink{a00892}{Object\+I\+D\+Pointer\+Manager\+T} \& \hyperlink{a00892_a82cb3e91ffb1bdd007e8eeb516cfa34d}{operator=} (const \hyperlink{a00892}{Object\+I\+D\+Pointer\+Manager\+T} \&\+\_\+rhs)}\label{a00892_a82cb3e91ffb1bdd007e8eeb516cfa34d}

\begin{DoxyCompactList}\small\item\em Assignment operator (not used) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00892_af5368a354ca128534835eb56080907b2}{\hyperlink{a00892_a9e35bb192095abb5982b64270506e2ba}{Pointer\+Object\+I\+D\+Map} \hyperlink{a00892_af5368a354ca128534835eb56080907b2}{pointer\+\_\+object\+I\+D\+\_\+map\+\_\+}}\label{a00892_af5368a354ca128534835eb56080907b2}

\begin{DoxyCompactList}\small\item\em mapping \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Pointer$>$class Object\+I\+D\+Pointer\+Manager\+T$<$ Pointer $>$}

Use this class to manage pointers associated with an object in the framework. 

Definition at line 94 of file Object\+I\+D\+Pointer\+Manager\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00892_aa944b766aa7a99a188ff7e1239117eb0}{\index{Object\+I\+D\+Pointer\+Manager\+T@{Object\+I\+D\+Pointer\+Manager\+T}!add\+\_\+pointer@{add\+\_\+pointer}}
\index{add\+\_\+pointer@{add\+\_\+pointer}!Object\+I\+D\+Pointer\+Manager\+T@{Object\+I\+D\+Pointer\+Manager\+T}}
\subsubsection[{add\+\_\+pointer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pointer $>$ bool {\bf Object\+I\+D\+Pointer\+Manager\+T}$<$ Pointer $>$\+::add\+\_\+pointer (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+identifier, }
\item[{const Pointer \&}]{\+\_\+pointer}
\end{DoxyParamCaption}
)}}\label{a00892_aa944b766aa7a99a188ff7e1239117eb0}
Add a pointer to the map 
\begin{DoxyParams}{Parameters}
{\em \+\_\+identifier} & identifier of corresponding object \\
\hline
{\em \+\_\+pointer} & pointer to be added \\
\hline
\end{DoxyParams}


Definition at line 99 of file Object\+I\+D\+Pointer\+Manager\+T.\+cc.

\hypertarget{a00892_a6c7a983c0d3b1f0164983625c104061d}{\index{Object\+I\+D\+Pointer\+Manager\+T@{Object\+I\+D\+Pointer\+Manager\+T}!get\+\_\+pointer@{get\+\_\+pointer}}
\index{get\+\_\+pointer@{get\+\_\+pointer}!Object\+I\+D\+Pointer\+Manager\+T@{Object\+I\+D\+Pointer\+Manager\+T}}
\subsubsection[{get\+\_\+pointer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pointer $>$ bool {\bf Object\+I\+D\+Pointer\+Manager\+T}$<$ Pointer $>$\+::get\+\_\+pointer (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+identifier, }
\item[{Pointer \&}]{\+\_\+pointer}
\end{DoxyParamCaption}
)}}\label{a00892_a6c7a983c0d3b1f0164983625c104061d}
try to get a pointer with the given id 
\begin{DoxyParams}{Parameters}
{\em \+\_\+identifier} & identifier of corresponding object \\
\hline
{\em \+\_\+pointer} & The returned pointer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if object exists 
\end{DoxyReturn}


Definition at line 70 of file Object\+I\+D\+Pointer\+Manager\+T.\+cc.

\hypertarget{a00892_a78cf36225f169b7dd942708a8ec333d4}{\index{Object\+I\+D\+Pointer\+Manager\+T@{Object\+I\+D\+Pointer\+Manager\+T}!get\+\_\+pointer@{get\+\_\+pointer}}
\index{get\+\_\+pointer@{get\+\_\+pointer}!Object\+I\+D\+Pointer\+Manager\+T@{Object\+I\+D\+Pointer\+Manager\+T}}
\subsubsection[{get\+\_\+pointer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pointer $>$ Pointer {\bf Object\+I\+D\+Pointer\+Manager\+T}$<$ Pointer $>$\+::get\+\_\+pointer (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+identifier}
\end{DoxyParamCaption}
)}}\label{a00892_a78cf36225f169b7dd942708a8ec333d4}
try to get a pointer with the given id 
\begin{DoxyParams}{Parameters}
{\em \+\_\+identifier} & identifier of corresponding object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
returns either a pointer or if the id does not exist N\+U\+L\+L 
\end{DoxyReturn}


Definition at line 88 of file Object\+I\+D\+Pointer\+Manager\+T.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/common/Object\+I\+D\+Pointer\+Manager\+T.\+hh\item 
Open\+Flipper/common/Object\+I\+D\+Pointer\+Manager\+T.\+cc\end{DoxyCompactItemize}
