\hypertarget{classBWTA_1_1RectangleArray}{\section{\-B\-W\-T\-A\-:\-:\-Rectangle\-Array$<$ \-Type $>$ \-Class \-Template \-Reference}
\label{classBWTA_1_1RectangleArray}\index{\-B\-W\-T\-A\-::\-Rectangle\-Array$<$ Type $>$@{\-B\-W\-T\-A\-::\-Rectangle\-Array$<$ Type $>$}}
}


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWTA_1_1RectangleArray_abfde20952f0a24c2b1921b61dbfea1de}{\-Rectangle\-Array} (unsigned int width=1, unsigned int height=1, \-Type $\ast$data=\-N\-U\-L\-L)
\item 
\hyperlink{classBWTA_1_1RectangleArray_abd92f8b69a23a3bf6561e1c4d9b2dc30}{\-Rectangle\-Array} (const \hyperlink{classBWTA_1_1RectangleArray}{\-Rectangle\-Array}$<$ \-Type $>$ \&rectangle\-Array)
\item 
\hyperlink{classBWTA_1_1RectangleArray_a61526a2568b316917a940fd5c5014db3}{$\sim$\-Rectangle\-Array} (void)
\item 
unsigned int \hyperlink{classBWTA_1_1RectangleArray_a431865c4723342b901f61f0145ddf632}{get\-Width} (void) const 
\item 
unsigned int \hyperlink{classBWTA_1_1RectangleArray_ab391a81745622c47caa6b32138cb2a6c}{get\-Height} (void) const 
\item 
\-Type $\ast$ \hyperlink{classBWTA_1_1RectangleArray_ac5908fb6ebf477ae5d970062f74c8616}{get\-Item} (unsigned int x, unsigned int \hyperlink{BuildOrderManager_8cpp_a0a2f84ed7838f07779ae24c5a9086d33}{y})
\item 
\-Type $\ast$ \hyperlink{classBWTA_1_1RectangleArray_a9f48f6884bed8ddbe960d47410e02dde}{operator\mbox{[}$\,$\mbox{]}} (int i)
\item 
\-Type const $\ast$const \hyperlink{classBWTA_1_1RectangleArray_af26b4d84fd5992675fae6b1ab1355521}{operator\mbox{[}$\,$\mbox{]}} (int i) const 
\item 
void \hyperlink{classBWTA_1_1RectangleArray_a81146efca653354e0e9e9006334f3390}{set\-Item} (unsigned int x, unsigned int \hyperlink{BuildOrderManager_8cpp_a0a2f84ed7838f07779ae24c5a9086d33}{y}, \-Type $\ast$item)
\item 
void \hyperlink{classBWTA_1_1RectangleArray_a4a83f356c719054d9d4afe3f2acb22dc}{resize} (unsigned int width, unsigned int height)
\item 
void \hyperlink{classBWTA_1_1RectangleArray_a106a367c4f85198b9e4eae02278fd791}{print\-To\-File} (\-F\-I\-L\-E $\ast$f)
\item 
void \hyperlink{classBWTA_1_1RectangleArray_a340bff11742581b0aabb8555e4c02a05}{save\-To\-File} (const std\-::string \&file\-Name)
\item 
void \hyperlink{classBWTA_1_1RectangleArray_a781b3403dbb2848f54ddf9176b986658}{set\-To} (const \-Type \&value)
\item 
void \hyperlink{classBWTA_1_1RectangleArray_af0a43f615518498cbadee92ed00d25a8}{set\-Border\-To} (const \-Type \&value)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\subsubsection*{template$<$class \-Type$>$class B\-W\-T\-A\-::\-Rectangle\-Array$<$ Type $>$}

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

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBWTA_1_1RectangleArray_abfde20952f0a24c2b1921b61dbfea1de}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!\-Rectangle\-Array@{\-Rectangle\-Array}}
\index{\-Rectangle\-Array@{\-Rectangle\-Array}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ {\bf \-B\-W\-T\-A\-::\-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 \-N\-U\-L\-L}}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_abfde20952f0a24c2b1921b61dbfea1de}
\-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{classBWTA_1_1RectangleArray_abd92f8b69a23a3bf6561e1c4d9b2dc30}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!\-Rectangle\-Array@{\-Rectangle\-Array}}
\index{\-Rectangle\-Array@{\-Rectangle\-Array}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf \-Rectangle\-Array} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Rectangle\-Array}$<$ \-Type $>$ \&}]{rectangle\-Array}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_abd92f8b69a23a3bf6561e1c4d9b2dc30}
\-Copy constructor 

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


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

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classBWTA_1_1RectangleArray_ab391a81745622c47caa6b32138cb2a6c}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!get\-Height@{get\-Height}}
\index{get\-Height@{get\-Height}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{get\-Height}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ unsigned int {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf get\-Height} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const}}\label{classBWTA_1_1RectangleArray_ab391a81745622c47caa6b32138cb2a6c}
\-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]{classBWTA_1_1RectangleArray_ab391a81745622c47caa6b32138cb2a6c_icgraph}
\end{center}
\end{figure}


\hypertarget{classBWTA_1_1RectangleArray_ac5908fb6ebf477ae5d970062f74c8616}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!get\-Item@{get\-Item}}
\index{get\-Item@{get\-Item}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{get\-Item}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ \-Type $\ast$ {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf get\-Item} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{x, }
\item[{unsigned int}]{y}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_ac5908fb6ebf477ae5d970062f74c8616}
\-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{classBWTA_1_1RectangleArray_a431865c4723342b901f61f0145ddf632}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!get\-Width@{get\-Width}}
\index{get\-Width@{get\-Width}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{get\-Width}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ unsigned int {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf get\-Width} (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const}}\label{classBWTA_1_1RectangleArray_a431865c4723342b901f61f0145ddf632}
\-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]{classBWTA_1_1RectangleArray_a431865c4723342b901f61f0145ddf632_icgraph}
\end{center}
\end{figure}


\hypertarget{classBWTA_1_1RectangleArray_a9f48f6884bed8ddbe960d47410e02dde}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ \-Type$\ast$ {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classBWTA_1_1RectangleArray_a9f48f6884bed8ddbe960d47410e02dde}
\hypertarget{classBWTA_1_1RectangleArray_af26b4d84fd5992675fae6b1ab1355521}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class \-Type$>$ \-Type const$\ast$ const {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classBWTA_1_1RectangleArray_af26b4d84fd5992675fae6b1ab1355521}
\hypertarget{classBWTA_1_1RectangleArray_a106a367c4f85198b9e4eae02278fd791}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!print\-To\-File@{print\-To\-File}}
\index{print\-To\-File@{print\-To\-File}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{print\-To\-File}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf print\-To\-File} (
\begin{DoxyParamCaption}
\item[{\-F\-I\-L\-E $\ast$}]{f}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_a106a367c4f85198b9e4eae02278fd791}
\hypertarget{classBWTA_1_1RectangleArray_a4a83f356c719054d9d4afe3f2acb22dc}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!resize@{resize}}
\index{resize@{resize}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{resize}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf resize} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{width, }
\item[{unsigned int}]{height}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_a4a83f356c719054d9d4afe3f2acb22dc}
\hypertarget{classBWTA_1_1RectangleArray_a340bff11742581b0aabb8555e4c02a05}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!save\-To\-File@{save\-To\-File}}
\index{save\-To\-File@{save\-To\-File}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{save\-To\-File}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf save\-To\-File} (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{file\-Name}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_a340bff11742581b0aabb8555e4c02a05}
\hypertarget{classBWTA_1_1RectangleArray_af0a43f615518498cbadee92ed00d25a8}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!set\-Border\-To@{set\-Border\-To}}
\index{set\-Border\-To@{set\-Border\-To}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{set\-Border\-To}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf set\-Border\-To} (
\begin{DoxyParamCaption}
\item[{const \-Type \&}]{value}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_af0a43f615518498cbadee92ed00d25a8}
\hypertarget{classBWTA_1_1RectangleArray_a81146efca653354e0e9e9006334f3390}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!set\-Item@{set\-Item}}
\index{set\-Item@{set\-Item}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{set\-Item}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf set\-Item} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{x, }
\item[{unsigned int}]{y, }
\item[{\-Type $\ast$}]{item}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_a81146efca653354e0e9e9006334f3390}
\-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{classBWTA_1_1RectangleArray_a781b3403dbb2848f54ddf9176b986658}{\index{\-B\-W\-T\-A\-::\-Rectangle\-Array@{\-B\-W\-T\-A\-::\-Rectangle\-Array}!set\-To@{set\-To}}
\index{set\-To@{set\-To}!BWTA::RectangleArray@{\-B\-W\-T\-A\-::\-Rectangle\-Array}}
\subsubsection[{set\-To}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type $>$ void {\bf \-B\-W\-T\-A\-::\-Rectangle\-Array}$<$ \-Type $>$\-::{\bf set\-To} (
\begin{DoxyParamCaption}
\item[{const \-Type \&}]{value}
\end{DoxyParamCaption}
)}}\label{classBWTA_1_1RectangleArray_a781b3403dbb2848f54ddf9176b986658}
\-Sets all fields of the array to the specified value 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Aiur/include/\-B\-W\-T\-A/\hyperlink{BWTA_2RectangleArray_8h}{\-Rectangle\-Array.\-h}\end{DoxyCompactItemize}
