\hypertarget{Util_8cpp}{\section{\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Utils/\-Util.cpp \-File \-Reference}
\label{Util_8cpp}\index{\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Utils/\-Util.\-cpp@{\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Utils/\-Util.\-cpp}}
}
{\ttfamily \#include $<$\-Precompiled\-Header.\-h$>$}\*
{\ttfamily \#include \char`\"{}\-Utils/\-Util.\-h\char`\"{}}\*
{\ttfamily \#include $<$stdarg.\-h$>$}\*
{\ttfamily \#include $<$sys/stat.\-h$>$}\*
{\ttfamily \#include \char`\"{}\-Defines.\-h\char`\"{}}\*
\-Include dependency graph for \-Util.\-cpp\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{Util_8cpp__incl}
\end{center}
\end{figure}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{Util_8cpp_a600f97854086c731103f1f0bed3b92b2}{log} (const char $\ast$text,...)
\item 
void \hyperlink{Util_8cpp_a78f6dfeebe2f3fc7830b1524b4250353}{my\-Restart\-Game} ()
\item 
void \hyperlink{Util_8cpp_a0427f6eecf71798100efad27d2cc0685}{log\-Score} (bool is\-Winner, std\-::string map\-Name)
\item 
std\-::vector$<$ double $>$ \hyperlink{Util_8cpp_a100e9ba06e46d98c176cd4cab78c5709}{exponential\-Distribution} (double lambda, unsigned int bins)
\item 
long double \hyperlink{Util_8cpp_a5790eb44c52048868c63ffebcda9c749}{max\-Vector} (const std\-::vector$<$ long double $>$ \&t)
\item 
size\-\_\-t \hyperlink{Util_8cpp_a7c6fe98e5c837bd5683358e2872c5030}{ind\-Max} (const std\-::vector$<$ long double $>$ \&t)
\item 
std\-::set$<$ size\-\_\-t $>$ \hyperlink{Util_8cpp_acf777c4da60cacc5f3e4befe470f4126}{sup\-To} (const std\-::vector$<$ long double $>$ \&t, long double min\-Prob)
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
char \hyperlink{Util_8cpp_a28d4d3d8445e73a696b2d6f7eadabd96}{buffer} \mbox{[}1024\mbox{]}
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{Util_8cpp_a100e9ba06e46d98c176cd4cab78c5709}{\index{\-Util.\-cpp@{\-Util.\-cpp}!exponential\-Distribution@{exponential\-Distribution}}
\index{exponential\-Distribution@{exponential\-Distribution}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{exponential\-Distribution}]{\setlength{\rightskip}{0pt plus 5cm}std\-::vector$<$double$>$ {\bf exponential\-Distribution} (
\begin{DoxyParamCaption}
\item[{double}]{lambda, }
\item[{unsigned int}]{bins}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_a100e9ba06e46d98c176cd4cab78c5709}
\hypertarget{Util_8cpp_a7c6fe98e5c837bd5683358e2872c5030}{\index{\-Util.\-cpp@{\-Util.\-cpp}!ind\-Max@{ind\-Max}}
\index{ind\-Max@{ind\-Max}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{ind\-Max}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t {\bf ind\-Max} (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ long double $>$ \&}]{t}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_a7c6fe98e5c837bd5683358e2872c5030}
\hypertarget{Util_8cpp_a600f97854086c731103f1f0bed3b92b2}{\index{\-Util.\-cpp@{\-Util.\-cpp}!log@{log}}
\index{log@{log}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf log} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{text, }
\item[{}]{...}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_a600f97854086c731103f1f0bed3b92b2}


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


\hypertarget{Util_8cpp_a0427f6eecf71798100efad27d2cc0685}{\index{\-Util.\-cpp@{\-Util.\-cpp}!log\-Score@{log\-Score}}
\index{log\-Score@{log\-Score}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{log\-Score}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf log\-Score} (
\begin{DoxyParamCaption}
\item[{bool}]{is\-Winner, }
\item[{std\-::string}]{map\-Name}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_a0427f6eecf71798100efad27d2cc0685}


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


\hypertarget{Util_8cpp_a5790eb44c52048868c63ffebcda9c749}{\index{\-Util.\-cpp@{\-Util.\-cpp}!max\-Vector@{max\-Vector}}
\index{max\-Vector@{max\-Vector}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{max\-Vector}]{\setlength{\rightskip}{0pt plus 5cm}long double {\bf max\-Vector} (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ long double $>$ \&}]{t}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_a5790eb44c52048868c63ffebcda9c749}


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


\hypertarget{Util_8cpp_a78f6dfeebe2f3fc7830b1524b4250353}{\index{\-Util.\-cpp@{\-Util.\-cpp}!my\-Restart\-Game@{my\-Restart\-Game}}
\index{my\-Restart\-Game@{my\-Restart\-Game}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{my\-Restart\-Game}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf my\-Restart\-Game} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_a78f6dfeebe2f3fc7830b1524b4250353}


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


\hypertarget{Util_8cpp_acf777c4da60cacc5f3e4befe470f4126}{\index{\-Util.\-cpp@{\-Util.\-cpp}!sup\-To@{sup\-To}}
\index{sup\-To@{sup\-To}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{sup\-To}]{\setlength{\rightskip}{0pt plus 5cm}std\-::set$<$size\-\_\-t$>$ {\bf sup\-To} (
\begin{DoxyParamCaption}
\item[{const std\-::vector$<$ long double $>$ \&}]{t, }
\item[{long double}]{min\-Prob}
\end{DoxyParamCaption}
)}}\label{Util_8cpp_acf777c4da60cacc5f3e4befe470f4126}


\subsection{\-Variable \-Documentation}
\hypertarget{Util_8cpp_a28d4d3d8445e73a696b2d6f7eadabd96}{\index{\-Util.\-cpp@{\-Util.\-cpp}!buffer@{buffer}}
\index{buffer@{buffer}!Util.cpp@{\-Util.\-cpp}}
\subsubsection[{buffer}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf buffer}\mbox{[}1024\mbox{]}}}\label{Util_8cpp_a28d4d3d8445e73a696b2d6f7eadabd96}
