\hypertarget{namespaceBWAPI_1_1Templates}{\section{\-B\-W\-A\-P\-I\-:\-:\-Templates \-Namespace \-Reference}
\label{namespaceBWAPI_1_1Templates}\index{\-B\-W\-A\-P\-I\-::\-Templates@{\-B\-W\-A\-P\-I\-::\-Templates}}
}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class Unit\-Impl $>$ }\\bool \hyperlink{namespaceBWAPI_1_1Templates_af9613e57c773dc4b80c9e4127439882c}{has\-Power} (\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{Detours_8h_aea72dea2d265251bf7d417d17b1add4e}{x}, \hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{Detours_8h_a2e2ad199e293564b2c8eab0073490c88}{y}, \hyperlink{classBWAPI_1_1UnitType}{\-Unit\-Type} unit\-Type, const std\-::set$<$ \hyperlink{classBWAPI_1_1UnitImpl}{\-Unit\-Impl} $\ast$ $>$ \&pylons)
\item 
{\footnotesize template$<$class \-\_\-\-T $>$ }\\void \hyperlink{namespaceBWAPI_1_1Templates_ab5011b14278b92bc2bee019432c054ae}{swap\-If\-Larger} (\-\_\-\-T \&smaller, \-\_\-\-T \&larger)
\item 
{\footnotesize template$<$class finder $>$ }\\\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{namespaceBWAPI_1_1Templates_ab68a0e264ee17e866559d90f7ae4a564}{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}{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)(\hyperlink{classBWAPI_1_1Unit}{\-Unit} $\ast$u\-Iterator), std\-::set$<$ \hyperlink{classBWAPI_1_1Unit}{\-Unit} $\ast$ $>$ \&finder\-Set)
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
const bool \hyperlink{namespaceBWAPI_1_1Templates_a286730be65a74d4b83b94def80a2fef9}{b\-Psi\-Field\-Mask} \mbox{[}10\mbox{]}\mbox{[}16\mbox{]}
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{namespaceBWAPI_1_1Templates_ab68a0e264ee17e866559d90f7ae4a564}{\index{\-B\-W\-A\-P\-I\-::\-Templates@{\-B\-W\-A\-P\-I\-::\-Templates}!get\-Unit\-Finder\-Index@{get\-Unit\-Finder\-Index}}
\index{get\-Unit\-Finder\-Index@{get\-Unit\-Finder\-Index}!BWAPI::Templates@{\-B\-W\-A\-P\-I\-::\-Templates}}
\subsubsection[{get\-Unit\-Finder\-Index}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class finder $>$ {\bf int} {\bf \-B\-W\-A\-P\-I\-::\-Templates\-::get\-Unit\-Finder\-Index} (
\begin{DoxyParamCaption}
\item[{const finder $\ast$}]{uf, }
\item[{{\bf int}}]{value, }
\item[{{\bf int}}]{start = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Templates_ab68a0e264ee17e866559d90f7ae4a564}
\hypertarget{namespaceBWAPI_1_1Templates_af9613e57c773dc4b80c9e4127439882c}{\index{\-B\-W\-A\-P\-I\-::\-Templates@{\-B\-W\-A\-P\-I\-::\-Templates}!has\-Power@{has\-Power}}
\index{has\-Power@{has\-Power}!BWAPI::Templates@{\-B\-W\-A\-P\-I\-::\-Templates}}
\subsubsection[{has\-Power}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Unit\-Impl $>$ bool {\bf \-B\-W\-A\-P\-I\-::\-Templates\-::has\-Power} (
\begin{DoxyParamCaption}
\item[{{\bf int}}]{x, }
\item[{{\bf int}}]{y, }
\item[{\-Unit\-Type}]{unit\-Type, }
\item[{const std\-::set$<$ \-Unit\-Impl $\ast$ $>$ \&}]{pylons}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Templates_af9613e57c773dc4b80c9e4127439882c}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespaceBWAPI_1_1Templates_af9613e57c773dc4b80c9e4127439882c_cgraph}
\end{center}
\end{figure}


\hypertarget{namespaceBWAPI_1_1Templates_a283bc3e0dc5564c7d68a1f26d78b1979}{\index{\-B\-W\-A\-P\-I\-::\-Templates@{\-B\-W\-A\-P\-I\-::\-Templates}!manage\-Unit\-Finder@{manage\-Unit\-Finder}}
\index{manage\-Unit\-Finder@{manage\-Unit\-Finder}!BWAPI::Templates@{\-B\-W\-A\-P\-I\-::\-Templates}}
\subsubsection[{manage\-Unit\-Finder}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class finder $>$ void {\bf \-B\-W\-A\-P\-I\-::\-Templates\-::manage\-Unit\-Finder} (
\begin{DoxyParamCaption}
\item[{finder $\ast$}]{finder\-\_\-x, }
\item[{finder $\ast$}]{finder\-\_\-y, }
\item[{{\bf \-D\-W\-O\-R\-D} $\ast$}]{pdw\-Finder\-Flags, }
\item[{{\bf int}}]{left, }
\item[{{\bf int}}]{top, }
\item[{{\bf int}}]{right, }
\item[{{\bf int}}]{bottom, }
\item[{bool(\-\_\-\-\_\-fastcall $\ast$callback)(\-Unit $\ast$u\-Iterator)}]{, }
\item[{std\-::set$<$ \-Unit $\ast$ $>$ \&}]{finder\-Set}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Templates_a283bc3e0dc5564c7d68a1f26d78b1979}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespaceBWAPI_1_1Templates_a283bc3e0dc5564c7d68a1f26d78b1979_cgraph}
\end{center}
\end{figure}


\hypertarget{namespaceBWAPI_1_1Templates_ab5011b14278b92bc2bee019432c054ae}{\index{\-B\-W\-A\-P\-I\-::\-Templates@{\-B\-W\-A\-P\-I\-::\-Templates}!swap\-If\-Larger@{swap\-If\-Larger}}
\index{swap\-If\-Larger@{swap\-If\-Larger}!BWAPI::Templates@{\-B\-W\-A\-P\-I\-::\-Templates}}
\subsubsection[{swap\-If\-Larger}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-\_\-\-T $>$ void {\bf \-B\-W\-A\-P\-I\-::\-Templates\-::swap\-If\-Larger} (
\begin{DoxyParamCaption}
\item[{\-\_\-\-T \&}]{smaller, }
\item[{\-\_\-\-T \&}]{larger}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Templates_ab5011b14278b92bc2bee019432c054ae}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespaceBWAPI_1_1Templates_ab5011b14278b92bc2bee019432c054ae_cgraph}
\end{center}
\end{figure}




\subsection{\-Variable \-Documentation}
\hypertarget{namespaceBWAPI_1_1Templates_a286730be65a74d4b83b94def80a2fef9}{\index{\-B\-W\-A\-P\-I\-::\-Templates@{\-B\-W\-A\-P\-I\-::\-Templates}!b\-Psi\-Field\-Mask@{b\-Psi\-Field\-Mask}}
\index{b\-Psi\-Field\-Mask@{b\-Psi\-Field\-Mask}!BWAPI::Templates@{\-B\-W\-A\-P\-I\-::\-Templates}}
\subsubsection[{b\-Psi\-Field\-Mask}]{\setlength{\rightskip}{0pt plus 5cm}const bool {\bf \-B\-W\-A\-P\-I\-::\-Templates\-::b\-Psi\-Field\-Mask}\mbox{[}10\mbox{]}\mbox{[}16\mbox{]}}}\label{namespaceBWAPI_1_1Templates_a286730be65a74d4b83b94def80a2fef9}
{\bfseries \-Initial value\-:}
\begin{DoxyCode}
 {
      { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 },
      { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
      { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
      { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
      { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }
    }
\end{DoxyCode}
