\hypertarget{class_ogre_1_1_shared_ptr}{}\section{Ogre\+:\+:Shared\+Ptr$<$ T $>$ Class Template Reference}
\label{class_ogre_1_1_shared_ptr}\index{Ogre\+::\+Shared\+Ptr$<$ T $>$@{Ogre\+::\+Shared\+Ptr$<$ T $>$}}


{\ttfamily \#include $<$Ogre\+Shared\+Ptr.\+h$>$}



Inheritance diagram for Ogre\+:\+:Shared\+Ptr$<$ T $>$\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=202pt]{class_ogre_1_1_shared_ptr__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_shared_ptr_a6dc65b8171394624d1bb43fd9d54a8f6}{Shared\+Ptr} ()
\item 
{\footnotesize template$<$class Y $>$ }\\\hyperlink{class_ogre_1_1_shared_ptr_a119d4d068679964c64a79b2867dd5009}{Shared\+Ptr} (Y $\ast$ptr)
\item 
{\footnotesize template$<$class Y , class Deleter $>$ }\\\hyperlink{class_ogre_1_1_shared_ptr_a25fe8dda941c616fde73f664209080e2}{Shared\+Ptr} (Y $\ast$ptr, Deleter d)
\item 
\hyperlink{class_ogre_1_1_shared_ptr_ab1fae2b13ec9cb470b4616c56cb599d8}{Shared\+Ptr} (const \hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} \&r)
\item 
{\footnotesize template$<$class Y $>$ }\\\hyperlink{class_ogre_1_1_shared_ptr_ad9ac8d216452366004f13221074ea906}{Shared\+Ptr} (const \hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$ Y $>$ \&r)
\item 
{\footnotesize template$<$class Y $>$ }\\\hyperlink{class_ogre_1_1_shared_ptr_a910badf7e570d9eae009af96e407acb1}{Shared\+Ptr} (const shared\+\_\+ptr$<$ Y $>$ \&r)
\item 
void \hyperlink{class_ogre_1_1_shared_ptr_a1b5e6d7a4cc4f7b96e9aa56ccdc982aa}{bind} (T $\ast$rep)
\item 
{\footnotesize template$<$typename Y $>$ }\\\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$ Y $>$ \hyperlink{class_ogre_1_1_shared_ptr_ad2a6f405c94b4ec8e3f528f549ef74bf}{dynamic\+Cast} () const
\item 
T $\ast$ \hyperlink{class_ogre_1_1_shared_ptr_a564789e0743e9be6ccb5505057ed63b6}{get\+Pointer} () const
\item 
bool \hyperlink{class_ogre_1_1_shared_ptr_a9ea46224e54b579a56ea769136e12e01}{is\+Null} (void) const
\item 
\hyperlink{class_ogre_1_1_shared_ptr_ade280794a40b2d9cb9686c9de5d7aacf}{operator const shared\+\_\+ptr$<$ T $>$ \&} ()
\item 
T $\ast$ \hyperlink{class_ogre_1_1_shared_ptr_a52d62f8b23524bac7b345fb12b8cf16e}{operator-\/$>$} () const
\item 
void \hyperlink{class_ogre_1_1_shared_ptr_a0102c9ce0678ec964b26e47b8a5310d1}{set\+Null} ()
\item 
{\footnotesize template$<$typename Y $>$ }\\\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$ Y $>$ \hyperlink{class_ogre_1_1_shared_ptr_a058dfd1737dcf94ed8b049718475f816}{static\+Cast} () const
\item 
unsigned int \hyperlink{class_ogre_1_1_shared_ptr_a9d1cf83ba2fc4626c23903678eb5d942}{use\+Count} () const
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class T$>$\newline
class Ogre\+::\+Shared\+Ptr$<$ T $>$}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000136}{Deprecated}]for backwards compatibility only, rather use shared\+\_\+ptr directly \end{DoxyRefDesc}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a6dc65b8171394624d1bb43fd9d54a8f6}\label{class_ogre_1_1_shared_ptr_a6dc65b8171394624d1bb43fd9d54a8f6}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!Shared\+Ptr@{Shared\+Ptr}}
\index{Shared\+Ptr@{Shared\+Ptr}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{Shared\+Ptr()}{SharedPtr()}\hspace{0.1cm}{\footnotesize\ttfamily [1/6]}}
{\footnotesize\ttfamily template$<$class T$>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a119d4d068679964c64a79b2867dd5009}\label{class_ogre_1_1_shared_ptr_a119d4d068679964c64a79b2867dd5009}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!Shared\+Ptr@{Shared\+Ptr}}
\index{Shared\+Ptr@{Shared\+Ptr}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{Shared\+Ptr()}{SharedPtr()}\hspace{0.1cm}{\footnotesize\ttfamily [2/6]}}
{\footnotesize\ttfamily template$<$class T$>$ \\
template$<$class Y $>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} (\begin{DoxyParamCaption}\item[{Y $\ast$}]{ptr }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a25fe8dda941c616fde73f664209080e2}\label{class_ogre_1_1_shared_ptr_a25fe8dda941c616fde73f664209080e2}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!Shared\+Ptr@{Shared\+Ptr}}
\index{Shared\+Ptr@{Shared\+Ptr}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{Shared\+Ptr()}{SharedPtr()}\hspace{0.1cm}{\footnotesize\ttfamily [3/6]}}
{\footnotesize\ttfamily template$<$class T$>$ \\
template$<$class Y , class Deleter $>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} (\begin{DoxyParamCaption}\item[{Y $\ast$}]{ptr,  }\item[{Deleter}]{d }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_ab1fae2b13ec9cb470b4616c56cb599d8}\label{class_ogre_1_1_shared_ptr_ab1fae2b13ec9cb470b4616c56cb599d8}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!Shared\+Ptr@{Shared\+Ptr}}
\index{Shared\+Ptr@{Shared\+Ptr}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{Shared\+Ptr()}{SharedPtr()}\hspace{0.1cm}{\footnotesize\ttfamily [4/6]}}
{\footnotesize\ttfamily template$<$class T$>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$ T $>$ \&}]{r }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_ad9ac8d216452366004f13221074ea906}\label{class_ogre_1_1_shared_ptr_ad9ac8d216452366004f13221074ea906}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!Shared\+Ptr@{Shared\+Ptr}}
\index{Shared\+Ptr@{Shared\+Ptr}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{Shared\+Ptr()}{SharedPtr()}\hspace{0.1cm}{\footnotesize\ttfamily [5/6]}}
{\footnotesize\ttfamily template$<$class T$>$ \\
template$<$class Y $>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$ Y $>$ \&}]{r }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a910badf7e570d9eae009af96e407acb1}\label{class_ogre_1_1_shared_ptr_a910badf7e570d9eae009af96e407acb1}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!Shared\+Ptr@{Shared\+Ptr}}
\index{Shared\+Ptr@{Shared\+Ptr}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{Shared\+Ptr()}{SharedPtr()}\hspace{0.1cm}{\footnotesize\ttfamily [6/6]}}
{\footnotesize\ttfamily template$<$class T$>$ \\
template$<$class Y $>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr} (\begin{DoxyParamCaption}\item[{const shared\+\_\+ptr$<$ Y $>$ \&}]{r }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_ade280794a40b2d9cb9686c9de5d7aacf}\label{class_ogre_1_1_shared_ptr_ade280794a40b2d9cb9686c9de5d7aacf}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!operator const shared\+\_\+ptr$<$ T $>$ \&@{operator const shared\+\_\+ptr$<$ T $>$ \&}}
\index{operator const shared\+\_\+ptr$<$ T $>$ \&@{operator const shared\+\_\+ptr$<$ T $>$ \&}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{operator const shared\+\_\+ptr$<$ T $>$ \&()}{operator const shared\_ptr< T > \&()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::operator const shared\+\_\+ptr$<$ T $>$ \& (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a52d62f8b23524bac7b345fb12b8cf16e}\label{class_ogre_1_1_shared_ptr_a52d62f8b23524bac7b345fb12b8cf16e}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!operator-\/$>$@{operator-\/$>$}}
\index{operator-\/$>$@{operator-\/$>$}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{operator-\/$>$()}{operator->()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
T$\ast$ \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::operator-\/$>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a058dfd1737dcf94ed8b049718475f816}\label{class_ogre_1_1_shared_ptr_a058dfd1737dcf94ed8b049718475f816}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!static\+Cast@{static\+Cast}}
\index{static\+Cast@{static\+Cast}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{static\+Cast()}{staticCast()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
template$<$typename Y $>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$Y$>$ \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::static\+Cast (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000137}{Deprecated}]use Ogre\+::static\+\_\+pointer\+\_\+cast instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_ad2a6f405c94b4ec8e3f528f549ef74bf}\label{class_ogre_1_1_shared_ptr_ad2a6f405c94b4ec8e3f528f549ef74bf}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!dynamic\+Cast@{dynamic\+Cast}}
\index{dynamic\+Cast@{dynamic\+Cast}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{dynamic\+Cast()}{dynamicCast()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
template$<$typename Y $>$ \\
\hyperlink{class_ogre_1_1_shared_ptr}{Shared\+Ptr}$<$Y$>$ \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::dynamic\+Cast (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000138}{Deprecated}]use Ogre\+::dynamic\+\_\+pointer\+\_\+cast instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a1b5e6d7a4cc4f7b96e9aa56ccdc982aa}\label{class_ogre_1_1_shared_ptr_a1b5e6d7a4cc4f7b96e9aa56ccdc982aa}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!bind@{bind}}
\index{bind@{bind}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{bind()}{bind()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
void \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::bind (\begin{DoxyParamCaption}\item[{T $\ast$}]{rep }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000139}{Deprecated}]this api will be dropped. use reset(\+T$\ast$) instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a9d1cf83ba2fc4626c23903678eb5d942}\label{class_ogre_1_1_shared_ptr_a9d1cf83ba2fc4626c23903678eb5d942}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!use\+Count@{use\+Count}}
\index{use\+Count@{use\+Count}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{use\+Count()}{useCount()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
unsigned int \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::use\+Count (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000140}{Deprecated}]use use\+\_\+count() instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a564789e0743e9be6ccb5505057ed63b6}\label{class_ogre_1_1_shared_ptr_a564789e0743e9be6ccb5505057ed63b6}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!get\+Pointer@{get\+Pointer}}
\index{get\+Pointer@{get\+Pointer}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{get\+Pointer()}{getPointer()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
T$\ast$ \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::get\+Pointer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000141}{Deprecated}]use get() instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a9ea46224e54b579a56ea769136e12e01}\label{class_ogre_1_1_shared_ptr_a9ea46224e54b579a56ea769136e12e01}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!is\+Null@{is\+Null}}
\index{is\+Null@{is\+Null}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{is\+Null()}{isNull()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
bool \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::is\+Null (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000142}{Deprecated}]use Shared\+Ptr\+::operator bool instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_shared_ptr_a0102c9ce0678ec964b26e47b8a5310d1}\label{class_ogre_1_1_shared_ptr_a0102c9ce0678ec964b26e47b8a5310d1}} 
\index{Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}!set\+Null@{set\+Null}}
\index{set\+Null@{set\+Null}!Ogre\+::\+Shared\+Ptr@{Ogre\+::\+Shared\+Ptr}}
\subsubsection{\texorpdfstring{set\+Null()}{setNull()}}
{\footnotesize\ttfamily template$<$class T$>$ \\
void \hyperlink{class_ogre_1_1_shared_ptr}{Ogre\+::\+Shared\+Ptr}$<$ T $>$\+::set\+Null (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000143}{Deprecated}]use reset() instead \end{DoxyRefDesc}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_prerequisites_8h}{Ogre\+Prerequisites.\+h}\item 
\hyperlink{_ogre_shared_ptr_8h}{Ogre\+Shared\+Ptr.\+h}\end{DoxyCompactItemize}
