\hypertarget{a07932}{}\section{A\+CG\+:\+:Scene\+Graph\+:\+:Ptr\+Resource\+Manager\+NodeT$<$ T $>$ Class Template Reference}
\label{a07932}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T$<$ T $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T$<$ T $>$}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/\+Resource\+Manager\+Node.\+hh$>$}

Inheritance diagram for A\+CG\+:\+:Scene\+Graph\+:\+:Ptr\+Resource\+Manager\+NodeT$<$ T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a07932}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07932_aef7ad18f4ed2e5a02e706358919f608b}\label{a07932_aef7ad18f4ed2e5a02e706358919f608b}} 
{\bfseries Ptr\+Resource\+Manager\+NodeT} (T $\ast$resource, \hyperlink{a07748}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\item 
\mbox{\Hypertarget{a07932_a176062750cf9420bb81999c43e690b47}\label{a07932_a176062750cf9420bb81999c43e690b47}} 
{\bfseries Ptr\+Resource\+Manager\+NodeT} (\hyperlink{a07748}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\item 
void \hyperlink{a07932_a5934a5be39bbb707a420f5eaa24b1d56}{reset} (T $\ast$new\+\_\+resource=0)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07932_acbe970b9edbe5917053d1d7213be9644}\label{a07932_acbe970b9edbe5917053d1d7213be9644}} 
{\bfseries A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+ME} (\hyperlink{a07932}{Ptr\+Resource\+Manager\+NodeT})
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07932_a95f483d56b637aacb8a4c4f238818eb6}\label{a07932_a95f483d56b637aacb8a4c4f238818eb6}} 
T $\ast$ {\bfseries resource}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
class A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T$<$ T $>$}

The sole purpose of this node is to guarantee deletion of a resource the lifecycle of which should be bound to the parent node.

A use case would be a \hyperlink{a07840}{Mesh\+Node\+T$<$\+Tri\+Mesh$>$} which displays a Tri\+Mesh that is not needed anywhere else. Add a \hyperlink{a07932}{Ptr\+Resource\+Manager\+NodeT} encapsulating that mesh as a child node to the Mesh\+Node. 

Definition at line 62 of file Resource\+Manager\+Node.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a07932_a5934a5be39bbb707a420f5eaa24b1d56}\label{a07932_a5934a5be39bbb707a420f5eaa24b1d56}} 
\index{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+NodeT@{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+NodeT}!reset@{reset}}
\index{reset@{reset}!A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+NodeT@{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+NodeT}}
\subsubsection{\texorpdfstring{reset()}{reset()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \hyperlink{a07932}{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+NodeT}$<$ T $>$\+::reset (\begin{DoxyParamCaption}\item[{T $\ast$}]{new\+\_\+resource = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Deletes the currently managed resource (if any) and takes ownership of the newly supplied one (if any). 

Definition at line 83 of file Resource\+Manager\+Node.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/Resource\+Manager\+Node.\+hh\end{DoxyCompactItemize}
