\hypertarget{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT}{}\section{A\+CG\+:\+:Scene\+Graph\+:\+:Ptr\+Resource\+Manager\+NodeT$<$ T $>$ Class Template Reference}
\label{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT}\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]{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_aef7ad18f4ed2e5a02e706358919f608b}\label{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_aef7ad18f4ed2e5a02e706358919f608b}} 
{\bfseries Ptr\+Resource\+Manager\+NodeT} (T $\ast$resource, \hyperlink{classACG_1_1SceneGraph_1_1BaseNode}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_a176062750cf9420bb81999c43e690b47}\label{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_a176062750cf9420bb81999c43e690b47}} 
{\bfseries Ptr\+Resource\+Manager\+NodeT} (\hyperlink{classACG_1_1SceneGraph_1_1BaseNode}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})
\item 
void \hyperlink{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_a5934a5be39bbb707a420f5eaa24b1d56}{reset} (T $\ast$new\+\_\+resource=0)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_acbe970b9edbe5917053d1d7213be9644}\label{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_acbe970b9edbe5917053d1d7213be9644}} 
{\bfseries A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+ME} (\hyperlink{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT}{Ptr\+Resource\+Manager\+NodeT})
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_a95f483d56b637aacb8a4c4f238818eb6}\label{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_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{classACG_1_1SceneGraph_1_1MeshNodeT}{Mesh\+Node\+T$<$\+Tri\+Mesh$>$} which displays a Tri\+Mesh that is not needed anywhere else. Add a \hyperlink{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT}{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{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_a5934a5be39bbb707a420f5eaa24b1d56}\label{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT_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{classACG_1_1SceneGraph_1_1PtrResourceManagerNodeT}{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}
