\hypertarget{class_ogre_1_1_pool}{}\doxysection{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$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_pool_a7bd667e735a8fdaf2e7017d436ba75a6}{Pool}} ()
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_pool_a4fb09f4b25feb32de79b6f578359aab1}{$\sim$\+Pool}} ()
\item 
virtual void \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_pool_af399adb462aa706c25e1e961cdfb5a1e}{clear}} ()
\begin{DoxyCompactList}\small\item\em Clear the pool. \end{DoxyCompactList}\item 
virtual std\+::pair$<$ bool, T $>$ \mbox{\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}


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

Template class describing a simple pool of items. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_pool_a7bd667e735a8fdaf2e7017d436ba75a6}\label{class_ogre_1_1_pool_a7bd667e735a8fdaf2e7017d436ba75a6}} 
\index{Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}!Pool@{Pool}}
\index{Pool@{Pool}!Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{Pool()}{Pool()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
\mbox{\hyperlink{class_ogre_1_1_pool}{Ogre\+::\+Pool}}$<$ T $>$\+::\mbox{\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$<$ T $>$@{Ogre::Pool$<$ T $>$}!````~Pool@{$\sim$Pool}}
\index{````~Pool@{$\sim$Pool}!Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{$\sim$Pool()}{~Pool()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual \mbox{\hyperlink{class_ogre_1_1_pool}{Ogre\+::\+Pool}}$<$ T $>$\+::$\sim$\mbox{\hyperlink{class_ogre_1_1_pool}{Pool}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_pool_a3151e6614c063eeae4bf7d95a9fbbbcb}\label{class_ogre_1_1_pool_a3151e6614c063eeae4bf7d95a9fbbbcb}} 
\index{Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}!removeItem@{removeItem}}
\index{removeItem@{removeItem}!Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{removeItem()}{removeItem()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual std\+::pair$<$bool, T$>$ \mbox{\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$<$ T $>$@{Ogre::Pool$<$ T $>$}!addItem@{addItem}}
\index{addItem@{addItem}!Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{addItem()}{addItem()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual void \mbox{\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$<$ T $>$@{Ogre::Pool$<$ T $>$}!clear@{clear}}
\index{clear@{clear}!Ogre::Pool$<$ T $>$@{Ogre::Pool$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{clear()}{clear()}}
{\footnotesize\ttfamily template$<$typename T$>$ \\
virtual void \mbox{\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 \mbox{\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 
\mbox{\hyperlink{_ogre_resource_manager_8h}{Ogre\+Resource\+Manager.\+h}}\end{DoxyCompactItemize}
