\hypertarget{class_ogre_1_1_singleton}{}\section{Ogre\+:\+:Singleton$<$ T $>$ Class Template Reference}
\label{class_ogre_1_1_singleton}\index{Ogre\+::\+Singleton$<$ T $>$@{Ogre\+::\+Singleton$<$ T $>$}}


Template class for creating single-\/instance global classes.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_singleton_a2b0622a1223ac3a0c6b9c53e787b8d93}{Singleton} (void)
\item 
\hyperlink{class_ogre_1_1_singleton_a9bc0518bb06d12629e287149cdcc4b5d}{$\sim$\+Singleton} (void)
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static T \& \hyperlink{class_ogre_1_1_singleton_a7757bd7ac3702c144502e53ad6491888}{get\+Singleton} (void)
\begin{DoxyCompactList}\small\item\em Get the singleton instance. \end{DoxyCompactList}\item 
static T $\ast$ \hyperlink{class_ogre_1_1_singleton_a7ab51c46521b89723d6186a52a7e0d7b}{get\+Singleton\+Ptr} (void)
\begin{DoxyCompactList}\small\item\em Get the singleton instance. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

Template class for creating single-\/instance global classes. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_singleton_a2b0622a1223ac3a0c6b9c53e787b8d93}\label{class_ogre_1_1_singleton_a2b0622a1223ac3a0c6b9c53e787b8d93}} 
\index{Ogre\+::\+Singleton@{Ogre\+::\+Singleton}!Singleton@{Singleton}}
\index{Singleton@{Singleton}!Ogre\+::\+Singleton@{Ogre\+::\+Singleton}}
\subsubsection{\texorpdfstring{Singleton()}{Singleton()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
\hyperlink{class_ogre_1_1_singleton}{Ogre\+::\+Singleton}$<$ T $>$\+::\hyperlink{class_ogre_1_1_singleton}{Singleton} (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_singleton_a9bc0518bb06d12629e287149cdcc4b5d}\label{class_ogre_1_1_singleton_a9bc0518bb06d12629e287149cdcc4b5d}} 
\index{Ogre\+::\+Singleton@{Ogre\+::\+Singleton}!````~Singleton@{$\sim$\+Singleton}}
\index{````~Singleton@{$\sim$\+Singleton}!Ogre\+::\+Singleton@{Ogre\+::\+Singleton}}
\subsubsection{\texorpdfstring{$\sim$\+Singleton()}{~Singleton()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
\hyperlink{class_ogre_1_1_singleton}{Ogre\+::\+Singleton}$<$ T $>$\+::$\sim$\hyperlink{class_ogre_1_1_singleton}{Singleton} (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_singleton_a7757bd7ac3702c144502e53ad6491888}\label{class_ogre_1_1_singleton_a7757bd7ac3702c144502e53ad6491888}} 
\index{Ogre\+::\+Singleton@{Ogre\+::\+Singleton}!get\+Singleton@{get\+Singleton}}
\index{get\+Singleton@{get\+Singleton}!Ogre\+::\+Singleton@{Ogre\+::\+Singleton}}
\subsubsection{\texorpdfstring{get\+Singleton()}{getSingleton()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
static T\& \hyperlink{class_ogre_1_1_singleton}{Ogre\+::\+Singleton}$<$ T $>$\+::get\+Singleton (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Get the singleton instance. 

\mbox{\Hypertarget{class_ogre_1_1_singleton_a7ab51c46521b89723d6186a52a7e0d7b}\label{class_ogre_1_1_singleton_a7ab51c46521b89723d6186a52a7e0d7b}} 
\index{Ogre\+::\+Singleton@{Ogre\+::\+Singleton}!get\+Singleton\+Ptr@{get\+Singleton\+Ptr}}
\index{get\+Singleton\+Ptr@{get\+Singleton\+Ptr}!Ogre\+::\+Singleton@{Ogre\+::\+Singleton}}
\subsubsection{\texorpdfstring{get\+Singleton\+Ptr()}{getSingletonPtr()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
static T$\ast$ \hyperlink{class_ogre_1_1_singleton}{Ogre\+::\+Singleton}$<$ T $>$\+::get\+Singleton\+Ptr (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Get the singleton instance. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_singleton_8h}{Ogre\+Singleton.\+h}\end{DoxyCompactItemize}
