\hypertarget{classUtil_1_1RectangleArray}{\section{\-Util\-:\-:\-Rectangle\-Array$<$ \-Type $>$ \-Class \-Template \-Reference}
\label{classUtil_1_1RectangleArray}\index{\-Util\-::\-Rectangle\-Array$<$ Type $>$@{\-Util\-::\-Rectangle\-Array$<$ Type $>$}}
}


{\ttfamily \#include $<$\-Rectangle\-Array.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classUtil_1_1RectangleArray_a51022c84b23eed8deabde23e53f38b26}{\-Rectangle\-Array} (unsigned int width=1, unsigned int height=1, \-Type $\ast$data=\hyperlink{CSingleton_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{\-N\-U\-L\-L})
\item 
\hyperlink{classUtil_1_1RectangleArray_a1fc78eb348d0626f4cc685edc26108b6}{\-Rectangle\-Array} (const \hyperlink{classUtil_1_1RectangleArray}{\-Rectangle\-Array}$<$ \-Type $>$ \&rectangle\-Array)
\item 
\hyperlink{classUtil_1_1RectangleArray_ae0d0ba41cbd054593e83433c224df544}{$\sim$\-Rectangle\-Array} (void)
\item 
unsigned int \hyperlink{classUtil_1_1RectangleArray_a0262ae501fccc450e85c4a96d4288e09}{get\-Width} (void) const 
\item 
unsigned int \hyperlink{classUtil_1_1RectangleArray_ab35c22fbbc88fd5abf82f8aa6c5f43cb}{get\-Height} (void) const 
\item 
\-Type $\ast$ \hyperlink{classUtil_1_1RectangleArray_af9cc0dcd2d074c4630ddee90e357a21e}{get\-Item} (unsigned int x, unsigned int \hyperlink{BuildOrderManager_8cpp_a0a2f84ed7838f07779ae24c5a9086d33}{y})
\item 
\-Type $\ast$ \hyperlink{classUtil_1_1RectangleArray_a69bc0afe6d687da4d6aa0a12581edd33}{operator\mbox{[}$\,$\mbox{]}} (int i)
\item 
\-Type const $\ast$const \hyperlink{classUtil_1_1RectangleArray_aa173350319b9471b080f0af351787580}{operator\mbox{[}$\,$\mbox{]}} (int i) const 
\item 
void \hyperlink{classUtil_1_1RectangleArray_ad6c47075bad955ac6916b0e41aa511f1}{set\-Item} (unsigned int x, unsigned int \hyperlink{BuildOrderManager_8cpp_a0a2f84ed7838f07779ae24c5a9086d33}{y}, \-Type $\ast$item)
\item 
void \hyperlink{classUtil_1_1RectangleArray_a3dd7bd5d88b92ee2732f03bc9c44f606}{resize} (unsigned int width, unsigned int height)
\item 
void \hyperlink{classUtil_1_1RectangleArray_af6498f2bfaac1a5839ec1108cbbd81b9}{print\-To\-File} (\-F\-I\-L\-E $\ast$f)
\item 
void \hyperlink{classUtil_1_1RectangleArray_a602876c93768ec644d56c6609b31c272}{save\-To\-File} (const std\-::string \&file\-Name)
\item 
void \hyperlink{classUtil_1_1RectangleArray_afc7c231279083ce492fa6f022a56e895}{set\-To} (const \-Type \&value)
\item 
void \hyperlink{classUtil_1_1RectangleArray_ab04108bcfd9c48327db69d60ba39ff22}{set\-Border\-To} (const \-Type \&value)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\subsubsection*{template$<$class \-Type$>$class Util\-::\-Rectangle\-Array$<$ Type $>$}

\-Template used for work with dynamically initialized array with dimension 2. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classUtil_1_1RectangleArray_a51022c84b23eed8deabde23e53f38b26}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!\-Rectangle\-Array@{\-Rectangle\-Array}}
\index{\-Rectangle\-Array@{\-Rectangle\-Array}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf \-Rectangle\-Array} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{width = {\ttfamily 1}, }
\item[{unsigned int}]{height = {\ttfamily 1}, }
\item[{\-Type $\ast$}]{data = {\ttfamily {\bf \-N\-U\-L\-L}}}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_a51022c84b23eed8deabde23e53f38b26}
\-Creates the array with the specified proportions. 
\begin{DoxyParams}{\-Parameters}
{\em width} & \-Width of the new array. \\
\hline
{\em height} & \-Height of the new array. \\
\hline
\end{DoxyParams}
\hypertarget{classUtil_1_1RectangleArray_a1fc78eb348d0626f4cc685edc26108b6}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!\-Rectangle\-Array@{\-Rectangle\-Array}}
\index{\-Rectangle\-Array@{\-Rectangle\-Array}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf \-Rectangle\-Array} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Rectangle\-Array}$<$ \-Type $>$ \&}]{rectangle\-Array}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_a1fc78eb348d0626f4cc685edc26108b6}
\-Copy constructor 

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


\hypertarget{classUtil_1_1RectangleArray_ae0d0ba41cbd054593e83433c224df544}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!$\sim$\-Rectangle\-Array@{$\sim$\-Rectangle\-Array}}
\index{$\sim$\-Rectangle\-Array@{$\sim$\-Rectangle\-Array}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{$\sim$\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::$\sim${\bf \-Rectangle\-Array} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_ae0d0ba41cbd054593e83433c224df544}
\-Destorys the array and deletes all content of array. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classUtil_1_1RectangleArray_ab35c22fbbc88fd5abf82f8aa6c5f43cb}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!get\-Height@{get\-Height}}
\index{get\-Height@{get\-Height}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{get\-Height}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ unsigned int {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf get\-Height} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const}}\label{classUtil_1_1RectangleArray_ab35c22fbbc88fd5abf82f8aa6c5f43cb}
\-Gets the height of the array. \begin{DoxyReturn}{\-Returns}
height of the array. 
\end{DoxyReturn}


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


\hypertarget{classUtil_1_1RectangleArray_af9cc0dcd2d074c4630ddee90e357a21e}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!get\-Item@{get\-Item}}
\index{get\-Item@{get\-Item}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{get\-Item}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ \-Type $\ast$ {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf get\-Item} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{x, }
\item[{unsigned int}]{y}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_af9cc0dcd2d074c4630ddee90e357a21e}
\-Gets item of the array on the specified position. 
\begin{DoxyParams}{\-Parameters}
{\em x} & horizontal index of the array position. \\
\hline
{\em y} & vertical index of the array position. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
item on the specified position. 
\end{DoxyReturn}
\hypertarget{classUtil_1_1RectangleArray_a0262ae501fccc450e85c4a96d4288e09}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!get\-Width@{get\-Width}}
\index{get\-Width@{get\-Width}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{get\-Width}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ unsigned int {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf get\-Width} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const}}\label{classUtil_1_1RectangleArray_a0262ae501fccc450e85c4a96d4288e09}
\-Gets the width of the array. \begin{DoxyReturn}{\-Returns}
width of the array. 
\end{DoxyReturn}


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


\hypertarget{classUtil_1_1RectangleArray_a69bc0afe6d687da4d6aa0a12581edd33}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ \-Type$\ast$ {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUtil_1_1RectangleArray_a69bc0afe6d687da4d6aa0a12581edd33}
\hypertarget{classUtil_1_1RectangleArray_aa173350319b9471b080f0af351787580}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ \-Type const$\ast$ const {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classUtil_1_1RectangleArray_aa173350319b9471b080f0af351787580}
\hypertarget{classUtil_1_1RectangleArray_af6498f2bfaac1a5839ec1108cbbd81b9}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!print\-To\-File@{print\-To\-File}}
\index{print\-To\-File@{print\-To\-File}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{print\-To\-File}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf print\-To\-File} (
\begin{DoxyParamCaption}
\item[{\-F\-I\-L\-E $\ast$}]{f}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_af6498f2bfaac1a5839ec1108cbbd81b9}
\hypertarget{classUtil_1_1RectangleArray_a3dd7bd5d88b92ee2732f03bc9c44f606}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!resize@{resize}}
\index{resize@{resize}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{resize}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf resize} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{width, }
\item[{unsigned int}]{height}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_a3dd7bd5d88b92ee2732f03bc9c44f606}


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


\hypertarget{classUtil_1_1RectangleArray_a602876c93768ec644d56c6609b31c272}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!save\-To\-File@{save\-To\-File}}
\index{save\-To\-File@{save\-To\-File}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{save\-To\-File}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf save\-To\-File} (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{file\-Name}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_a602876c93768ec644d56c6609b31c272}
\hypertarget{classUtil_1_1RectangleArray_ab04108bcfd9c48327db69d60ba39ff22}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!set\-Border\-To@{set\-Border\-To}}
\index{set\-Border\-To@{set\-Border\-To}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{set\-Border\-To}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ void {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf set\-Border\-To} (
\begin{DoxyParamCaption}
\item[{const \-Type \&}]{value}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_ab04108bcfd9c48327db69d60ba39ff22}
\hypertarget{classUtil_1_1RectangleArray_ad6c47075bad955ac6916b0e41aa511f1}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!set\-Item@{set\-Item}}
\index{set\-Item@{set\-Item}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{set\-Item}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ void {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf set\-Item} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{x, }
\item[{unsigned int}]{y, }
\item[{\-Type $\ast$}]{item}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_ad6c47075bad955ac6916b0e41aa511f1}
\-Sets item of the array on the specified position. 
\begin{DoxyParams}{\-Parameters}
{\em x} & horizontal index of the array position. \\
\hline
{\em y} & vertical index of the array position. \\
\hline
{\em item} & new value of the field. \\
\hline
\end{DoxyParams}
\hypertarget{classUtil_1_1RectangleArray_afc7c231279083ce492fa6f022a56e895}{\index{\-Util\-::\-Rectangle\-Array@{\-Util\-::\-Rectangle\-Array}!set\-To@{set\-To}}
\index{set\-To@{set\-To}!Util::RectangleArray@{\-Util\-::\-Rectangle\-Array}}
\subsubsection[{set\-To}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ void {\bf \-Util\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf set\-To} (
\begin{DoxyParamCaption}
\item[{const \-Type \&}]{value}
\end{DoxyParamCaption}
)}}\label{classUtil_1_1RectangleArray_afc7c231279083ce492fa6f022a56e895}
\-Sets all fields of the array to the specified value 

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




\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Macro/\hyperlink{RectangleArray_8h}{\-Rectangle\-Array.\-h}\item 
\-Snippy\-Hollo\-W-\/\-Broodwar\-Bot\-Q-\/f01ab56/src/\-Utils/\hyperlink{QuadTree_8h}{\-Quad\-Tree.\-h}\end{DoxyCompactItemize}
