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


Template class describing a simple pool of items.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_pool_a7bd667e735a8fdaf2e7017d436ba75a6}{Pool} ()
\item 
virtual \hyperlink{class_ogre_1_1_pool_a4fb09f4b25feb32de79b6f578359aab1}{$\sim$\+Pool} ()
\item 
virtual void \hyperlink{class_ogre_1_1_pool_abafd7c72963d86ef829c0373fe50aa7f}{add\+Item} (const T \&i)
\begin{DoxyCompactList}\small\item\em Add a new item to the pool. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_pool_af399adb462aa706c25e1e961cdfb5a1e}{clear} ()
\begin{DoxyCompactList}\small\item\em Clear the pool. \end{DoxyCompactList}\item 
virtual std\+::pair$<$ bool, T $>$ \hyperlink{class_ogre_1_1_pool_a3151e6614c063eeae4bf7d95a9fbbbcb}{remove\+Item} ()
\begin{DoxyCompactList}\small\item\em Get the next item from the pool. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

Template class describing a simple pool of items. 

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

\mbox{\Hypertarget{class_ogre_1_1_pool_a4fb09f4b25feb32de79b6f578359aab1}\label{class_ogre_1_1_pool_a4fb09f4b25feb32de79b6f578359aab1}} 
\index{Ogre\+::\+Pool@{Ogre\+::\+Pool}!````~Pool@{$\sim$\+Pool}}
\index{````~Pool@{$\sim$\+Pool}!Ogre\+::\+Pool@{Ogre\+::\+Pool}}
\subsubsection{\texorpdfstring{$\sim$\+Pool()}{~Pool()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual \hyperlink{class_ogre_1_1_pool}{Ogre\+::\+Pool}$<$ T $>$\+::$\sim$\hyperlink{class_ogre_1_1_pool}{Pool} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_pool_a3151e6614c063eeae4bf7d95a9fbbbcb}\label{class_ogre_1_1_pool_a3151e6614c063eeae4bf7d95a9fbbbcb}} 
\index{Ogre\+::\+Pool@{Ogre\+::\+Pool}!remove\+Item@{remove\+Item}}
\index{remove\+Item@{remove\+Item}!Ogre\+::\+Pool@{Ogre\+::\+Pool}}
\subsubsection{\texorpdfstring{remove\+Item()}{removeItem()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual std\+::pair$<$bool, T$>$ \hyperlink{class_ogre_1_1_pool}{Ogre\+::\+Pool}$<$ T $>$\+::remove\+Item (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Get the next item from the pool. 

\begin{DoxyReturn}{Returns}
pair indicating whether there was a free item, and the item if so 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_pool_abafd7c72963d86ef829c0373fe50aa7f}\label{class_ogre_1_1_pool_abafd7c72963d86ef829c0373fe50aa7f}} 
\index{Ogre\+::\+Pool@{Ogre\+::\+Pool}!add\+Item@{add\+Item}}
\index{add\+Item@{add\+Item}!Ogre\+::\+Pool@{Ogre\+::\+Pool}}
\subsubsection{\texorpdfstring{add\+Item()}{addItem()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual void \hyperlink{class_ogre_1_1_pool}{Ogre\+::\+Pool}$<$ T $>$\+::add\+Item (\begin{DoxyParamCaption}\item[{const T \&}]{i }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Add a new item to the pool. 

\mbox{\Hypertarget{class_ogre_1_1_pool_af399adb462aa706c25e1e961cdfb5a1e}\label{class_ogre_1_1_pool_af399adb462aa706c25e1e961cdfb5a1e}} 
\index{Ogre\+::\+Pool@{Ogre\+::\+Pool}!clear@{clear}}
\index{clear@{clear}!Ogre\+::\+Pool@{Ogre\+::\+Pool}}
\subsubsection{\texorpdfstring{clear()}{clear()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual void \hyperlink{class_ogre_1_1_pool}{Ogre\+::\+Pool}$<$ T $>$\+::clear (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Clear the pool. 



Reimplemented in \hyperlink{class_ogre_1_1_resource_manager_1_1_resource_pool_a9009c4131abf1318693a01474755850f}{Ogre\+::\+Resource\+Manager\+::\+Resource\+Pool}.



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