\hypertarget{TestMap1_8cpp}{\section{trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\-Test\-Map1.cpp \-File \-Reference}
\label{TestMap1_8cpp}\index{trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\-Test\-Map1.\-cpp@{trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\-Test\-Map1.\-cpp}}
}
{\ttfamily \#include \char`\"{}\-Test\-Map1.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}\-B\-W\-Assert.\-h\char`\"{}}\*
\-Include dependency graph for \-Test\-Map1.\-cpp\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{TestMap1_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{TestMap1_8cpp_afac5032b00d455faa1d82fca2eef08b6}{find\-And\-Remove}(\-T, \-S, \-V)
\item 
\#define \hyperlink{TestMap1_8cpp_a74cdf2783c33bf670893c61bde2d8941}{find\-And\-Remove\-Type}(\-T, \-S, \-V)
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{TestMap1_8cpp_ac564425f10b5601c839c201cb6309fe6}{assert\-\_\-success\-\_\-count}
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{TestMap1_8cpp_a498a64dad091aca6f759247e47a6db05}{assert\-\_\-fail\-\_\-count}
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{TestMap1_8cpp_afac5032b00d455faa1d82fca2eef08b6}{\index{\-Test\-Map1.\-cpp@{\-Test\-Map1.\-cpp}!find\-And\-Remove@{find\-And\-Remove}}
\index{find\-And\-Remove@{find\-And\-Remove}!TestMap1.cpp@{\-Test\-Map1.\-cpp}}
\subsubsection[{find\-And\-Remove}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf find\-And\-Remove}(
\begin{DoxyParamCaption}
\item[{}]{\-T, }
\item[{}]{\-S, }
\item[{}]{\-V}
\end{DoxyParamCaption}
)}}\label{TestMap1_8cpp_afac5032b00d455faa1d82fca2eef08b6}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{\
  bool found=false;\
  for(std::set<T*>::iterator i=S.begin();i!=S.end();i++)\
  {\
    if (*i==V)\
    {\
      found=true;\
      S.erase(i);\
      break;\
    }\
  }\
  if (!found)\
    BWAssert(false);\
}
\end{DoxyCode}
\hypertarget{TestMap1_8cpp_a74cdf2783c33bf670893c61bde2d8941}{\index{\-Test\-Map1.\-cpp@{\-Test\-Map1.\-cpp}!find\-And\-Remove\-Type@{find\-And\-Remove\-Type}}
\index{find\-And\-Remove\-Type@{find\-And\-Remove\-Type}!TestMap1.cpp@{\-Test\-Map1.\-cpp}}
\subsubsection[{find\-And\-Remove\-Type}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf find\-And\-Remove\-Type}(
\begin{DoxyParamCaption}
\item[{}]{\-T, }
\item[{}]{\-S, }
\item[{}]{\-V}
\end{DoxyParamCaption}
)}}\label{TestMap1_8cpp_a74cdf2783c33bf670893c61bde2d8941}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{\
  bool found=false;\
  for(std::set<T*>::iterator i=S.begin();i!=S.end();i++)\
  {\
    if ((*i)->getType()==V)\
    {\
      found=true;\
      S.erase(i);\
      break;\
    }\
  }\
  if (!found)\
    BWAssert(false);\
}
\end{DoxyCode}


\subsection{\-Variable \-Documentation}
\hypertarget{TestMap1_8cpp_a498a64dad091aca6f759247e47a6db05}{\index{\-Test\-Map1.\-cpp@{\-Test\-Map1.\-cpp}!assert\-\_\-fail\-\_\-count@{assert\-\_\-fail\-\_\-count}}
\index{assert\-\_\-fail\-\_\-count@{assert\-\_\-fail\-\_\-count}!TestMap1.cpp@{\-Test\-Map1.\-cpp}}
\subsubsection[{assert\-\_\-fail\-\_\-count}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf assert\-\_\-fail\-\_\-count}}}\label{TestMap1_8cpp_a498a64dad091aca6f759247e47a6db05}
\hypertarget{TestMap1_8cpp_ac564425f10b5601c839c201cb6309fe6}{\index{\-Test\-Map1.\-cpp@{\-Test\-Map1.\-cpp}!assert\-\_\-success\-\_\-count@{assert\-\_\-success\-\_\-count}}
\index{assert\-\_\-success\-\_\-count@{assert\-\_\-success\-\_\-count}!TestMap1.cpp@{\-Test\-Map1.\-cpp}}
\subsubsection[{assert\-\_\-success\-\_\-count}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf assert\-\_\-success\-\_\-count}}}\label{TestMap1_8cpp_ac564425f10b5601c839c201cb6309fe6}
