\hypertarget{Templates_8h}{\section{trunk/bwapi/\-Shared/\-Templates.h \-File \-Reference}
\label{Templates_8h}\index{trunk/bwapi/\-Shared/\-Templates.\-h@{trunk/bwapi/\-Shared/\-Templates.\-h}}
}
{\ttfamily \#include $<$\-B\-W\-A\-P\-I.\-h$>$}\*
{\ttfamily \#include $<$\-Util/\-Foreach.\-h$>$}\*
\-Include dependency graph for \-Templates.\-h\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Templates_8h__incl}
\end{center}
\end{figure}
\-This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Templates_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{\-Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I}
\item 
namespace \hyperlink{namespaceBWAPI_1_1Templates}{\-B\-W\-A\-P\-I\-::\-Templates}
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class Unit\-Impl $>$ }\\bool \hyperlink{namespaceBWAPI_1_1Templates_af9613e57c773dc4b80c9e4127439882c}{\-B\-W\-A\-P\-I\-::\-Templates\-::has\-Power} (\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{Detours_8h_aea72dea2d265251bf7d417d17b1add4e}{x}, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{Detours_8h_a2e2ad199e293564b2c8eab0073490c88}{y}, \-Unit\-Type unit\-Type, const std\-::set$<$ \-Unit\-Impl $\ast$ $>$ \&pylons)
\item 
{\footnotesize template$<$class \-\_\-\-T $>$ }\\void \hyperlink{namespaceBWAPI_1_1Templates_ab5011b14278b92bc2bee019432c054ae}{\-B\-W\-A\-P\-I\-::\-Templates\-::swap\-If\-Larger} (\-\_\-\-T \&smaller, \-\_\-\-T \&larger)
\item 
{\footnotesize template$<$class finder $>$ }\\\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{namespaceBWAPI_1_1Templates_ab68a0e264ee17e866559d90f7ae4a564}{\-B\-W\-A\-P\-I\-::\-Templates\-::get\-Unit\-Finder\-Index} (const finder $\ast$uf, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} value, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} start=0)
\item 
{\footnotesize template$<$class finder $>$ }\\void \hyperlink{namespaceBWAPI_1_1Templates_a283bc3e0dc5564c7d68a1f26d78b1979}{\-B\-W\-A\-P\-I\-::\-Templates\-::manage\-Unit\-Finder} (finder $\ast$finder\-\_\-x, finder $\ast$finder\-\_\-y, \hyperlink{Types_8h_a8aec363bdef0c755693c97d1757e8642}{\-D\-W\-O\-R\-D} $\ast$pdw\-Finder\-Flags, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} left, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} top, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} right, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} bottom, bool(\-\_\-\-\_\-fastcall $\ast$callback)(\-Unit $\ast$u\-Iterator), std\-::set$<$ \-Unit $\ast$ $>$ \&finder\-Set)
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
const bool \hyperlink{namespaceBWAPI_1_1Templates_a286730be65a74d4b83b94def80a2fef9}{\-B\-W\-A\-P\-I\-::\-Templates\-::b\-Psi\-Field\-Mask} \mbox{[}10\mbox{]}\mbox{[}16\mbox{]}
\end{DoxyCompactItemize}
