\hypertarget{a01055}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Ptr\+Resource\+Manager\+Node\+T$<$ T $>$ Class Template Reference}
\label{a01055}\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 $<$A\+C\+G/\+Scenegraph/\+Resource\+Manager\+Node.\+hh$>$}

Inheritance diagram for A\+C\+G\+:\+:Scene\+Graph\+:\+:Ptr\+Resource\+Manager\+Node\+T$<$ T $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01055}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01055_aef7ad18f4ed2e5a02e706358919f608b}{{\bfseries Ptr\+Resource\+Manager\+Node\+T} (T $\ast$resource, \hyperlink{a00327}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})}\label{a01055_aef7ad18f4ed2e5a02e706358919f608b}

\item 
\hypertarget{a01055_a176062750cf9420bb81999c43e690b47}{{\bfseries Ptr\+Resource\+Manager\+Node\+T} (\hyperlink{a00327}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$unknown$>$\char`\"{})}\label{a01055_a176062750cf9420bb81999c43e690b47}

\item 
void \hyperlink{a01055_a5934a5be39bbb707a420f5eaa24b1d56}{reset} (T $\ast$new\+\_\+resource=0)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01055_acbe970b9edbe5917053d1d7213be9644}{{\bfseries A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+M\+E} (\hyperlink{a01055}{Ptr\+Resource\+Manager\+Node\+T})}\label{a01055_acbe970b9edbe5917053d1d7213be9644}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01055_a95f483d56b637aacb8a4c4f238818eb6}{T $\ast$ {\bfseries resource}}\label{a01055_a95f483d56b637aacb8a4c4f238818eb6}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$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{a00830}{Mesh\+Node\+T$<$\+Tri\+Mesh$>$} which displays a Tri\+Mesh that is not needed anywhere else. Add a \hyperlink{a01055}{Ptr\+Resource\+Manager\+Node\+T} encapsulating that mesh as a child node to the Mesh\+Node. 

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



\subsection{Member Function Documentation}
\hypertarget{a01055_a5934a5be39bbb707a420f5eaa24b1d56}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T}!reset@{reset}}
\index{reset@{reset}!A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T}}
\subsubsection[{reset}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Ptr\+Resource\+Manager\+Node\+T}$<$ T $>$\+::reset (
\begin{DoxyParamCaption}
\item[{T $\ast$}]{new\+\_\+resource = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01055_a5934a5be39bbb707a420f5eaa24b1d56}
Deletes the currently managed resource (if any) and takes ownership of the newly supplied one (if any). 

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



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