\hypertarget{a08912}{}\section{Open\+Mesh\+:\+:SingletonT$<$ T $>$ Class Template Reference}
\label{a08912}\index{Open\+Mesh\+::\+Singleton\+T$<$ T $>$@{Open\+Mesh\+::\+Singleton\+T$<$ T $>$}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/\+Singleton\+T.\+hh$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static T \& \hyperlink{a08912_a1cfb84dcdf0ebf3374fddaaec0655b9a}{Instance} ()
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08912_aa130c2149be3a62371724c7d3117fe30}\label{a08912_aa130c2149be3a62371724c7d3117fe30}} 
{\bfseries SingletonT} (const \hyperlink{a08912}{SingletonT} \&)
\item 
\mbox{\Hypertarget{a08912_abd3ad61b5668f28a597df3f251681d7b}\label{a08912_abd3ad61b5668f28a597df3f251681d7b}} 
\hyperlink{a08912}{SingletonT} \& {\bfseries operator=} (const \hyperlink{a08912}{SingletonT} \&)
\end{DoxyCompactItemize}
\subsection*{Static Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08912_a0e0e31ce21a28a13a748abf50822d0ac}\label{a08912_a0e0e31ce21a28a13a748abf50822d0ac}} 
static void {\bfseries Create} ()
\item 
\mbox{\Hypertarget{a08912_a9e68cf55f01d281eff997f209dfae8b0}\label{a08912_a9e68cf55f01d281eff997f209dfae8b0}} 
static void {\bfseries On\+Dead\+Reference} ()
\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08912_aa2538328f891be30ac8620435b26f6e3}\label{a08912_aa2538328f891be30ac8620435b26f6e3}} 
static T $\ast$ {\bfseries p\+Instance\+\_\+\+\_\+} = 0
\item 
\mbox{\Hypertarget{a08912_a7984ed7c242b0bdc9ed733d9a1c45605}\label{a08912_a7984ed7c242b0bdc9ed733d9a1c45605}} 
static bool {\bfseries destroyed\+\_\+\+\_\+} = false
\end{DoxyCompactItemize}


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

A simple singleton template. Encapsulates an arbitrary class and enforces its uniqueness. 

Definition at line 79 of file Singleton\+T.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08912_a1cfb84dcdf0ebf3374fddaaec0655b9a}\label{a08912_a1cfb84dcdf0ebf3374fddaaec0655b9a}} 
\index{Open\+Mesh\+::\+SingletonT@{Open\+Mesh\+::\+SingletonT}!Instance@{Instance}}
\index{Instance@{Instance}!Open\+Mesh\+::\+SingletonT@{Open\+Mesh\+::\+SingletonT}}
\subsubsection{\texorpdfstring{Instance()}{Instance()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
static T\& \hyperlink{a08912}{Open\+Mesh\+::\+SingletonT}$<$ T $>$\+::Instance (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

Singleton access function. Use this function to obtain a reference to the instance of the encapsulated class. Note that this instance is unique and created on the first call to \hyperlink{a08912_a1cfb84dcdf0ebf3374fddaaec0655b9a}{Instance()}. 

Definition at line 89 of file Singleton\+T.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/Singleton\+T.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+Utils/Singleton\+T\+\_\+impl.\+hh\end{DoxyCompactItemize}
