\hypertarget{classRectangleArray}{\section{\-Rectangle\-Array$<$ \-T $>$ \-Class \-Template \-Reference}
\label{classRectangleArray}\index{\-Rectangle\-Array$<$ T $>$@{\-Rectangle\-Array$<$ T $>$}}
}


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

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classRectangleArray_a9cac871c1a8fc13344944c4786148c8d}{\-Rectangle\-Array} (unsigned int width, unsigned int height, \-T val=\-T())
\item 
\hyperlink{classRectangleArray_a52f110bb1e02bd39ef02daad9272f2b6}{\-Rectangle\-Array} ()
\item 
void \hyperlink{classRectangleArray_a94965f996fad102693209f4f364fdd5c}{resize} (unsigned int width, unsigned int height, \-T val=\-T())
\item 
const std\-::vector$<$ \-T $>$ \& \hyperlink{classRectangleArray_aa7c44129d45229218e02c673ca8623ba}{operator\mbox{[}$\,$\mbox{]}} (int i) const 
\item 
std\-::vector$<$ \-T $>$ \& \hyperlink{classRectangleArray_a69d0f7fb5170b53b4cad26b030ec489a}{operator\mbox{[}$\,$\mbox{]}} (int i)
\end{DoxyCompactItemize}
\subsection*{\-Private \-Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::vector$<$ std\-::vector$<$ \-T $>$ $>$ \hyperlink{classRectangleArray_aef84a270bcfec99b5693e57e52edb805}{m\-Data}
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\subsubsection*{template$<$typename \-T$>$class Rectangle\-Array$<$ T $>$}



\-Definition at line 6 of file \-Rectangle\-Array.\-h.



\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classRectangleArray_a9cac871c1a8fc13344944c4786148c8d}{\index{\-Rectangle\-Array@{\-Rectangle\-Array}!\-Rectangle\-Array@{\-Rectangle\-Array}}
\index{\-Rectangle\-Array@{\-Rectangle\-Array}!RectangleArray@{\-Rectangle\-Array}}
\subsubsection[{\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename \-T$>$ {\bf \-Rectangle\-Array}$<$ \-T $>$\-::{\bf \-Rectangle\-Array} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{width, }
\item[{unsigned int}]{height, }
\item[{\-T}]{val = {\ttfamily \-T()}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classRectangleArray_a9cac871c1a8fc13344944c4786148c8d}


\-Definition at line 9 of file \-Rectangle\-Array.\-h.


\begin{DoxyCode}
                : mData(width, std::vector<T>(height, val))
        {}
\end{DoxyCode}
\hypertarget{classRectangleArray_a52f110bb1e02bd39ef02daad9272f2b6}{\index{\-Rectangle\-Array@{\-Rectangle\-Array}!\-Rectangle\-Array@{\-Rectangle\-Array}}
\index{\-Rectangle\-Array@{\-Rectangle\-Array}!RectangleArray@{\-Rectangle\-Array}}
\subsubsection[{\-Rectangle\-Array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename \-T$>$ {\bf \-Rectangle\-Array}$<$ \-T $>$\-::{\bf \-Rectangle\-Array} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classRectangleArray_a52f110bb1e02bd39ef02daad9272f2b6}


\-Definition at line 13 of file \-Rectangle\-Array.\-h.


\begin{DoxyCode}
        {}
\end{DoxyCode}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classRectangleArray_aa7c44129d45229218e02c673ca8623ba}{\index{\-Rectangle\-Array@{\-Rectangle\-Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!RectangleArray@{\-Rectangle\-Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename \-T$>$ const std\-::vector$<$\-T$>$\& {\bf \-Rectangle\-Array}$<$ \-T $>$\-::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classRectangleArray_aa7c44129d45229218e02c673ca8623ba}


\-Definition at line 23 of file \-Rectangle\-Array.\-h.


\begin{DoxyCode}
        {
                return mData[i];
        }
\end{DoxyCode}
\hypertarget{classRectangleArray_a69d0f7fb5170b53b4cad26b030ec489a}{\index{\-Rectangle\-Array@{\-Rectangle\-Array}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!RectangleArray@{\-Rectangle\-Array}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename \-T$>$ std\-::vector$<$\-T$>$\& {\bf \-Rectangle\-Array}$<$ \-T $>$\-::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{int}]{i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classRectangleArray_a69d0f7fb5170b53b4cad26b030ec489a}


\-Definition at line 28 of file \-Rectangle\-Array.\-h.


\begin{DoxyCode}
        {
                return mData[i];
        }
\end{DoxyCode}
\hypertarget{classRectangleArray_a94965f996fad102693209f4f364fdd5c}{\index{\-Rectangle\-Array@{\-Rectangle\-Array}!resize@{resize}}
\index{resize@{resize}!RectangleArray@{\-Rectangle\-Array}}
\subsubsection[{resize}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename \-T$>$ void {\bf \-Rectangle\-Array}$<$ \-T $>$\-::{\bf resize} (
\begin{DoxyParamCaption}
\item[{unsigned int}]{width, }
\item[{unsigned int}]{height, }
\item[{\-T}]{val = {\ttfamily \-T()}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classRectangleArray_a94965f996fad102693209f4f364fdd5c}


\-Definition at line 16 of file \-Rectangle\-Array.\-h.



\-Referenced by \-Terrain\-Anaysis\-Class\-::calculate\-Connectivity(), \-Terrain\-Anaysis\-Class\-::calculate\-Walk\-Tile\-Clearance(), \-Terrain\-Anaysis\-Class\-::create\-Regions(), and \-Rectangle\-Array$<$ Walk\-Position $>$\-::resize().


\begin{DoxyCode}
        {
                mData.resize(width);
                for(unsigned int i = 0; i < width; ++i)
                        mData[i].resize(height, val);
        }
\end{DoxyCode}


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




\subsection{\-Member \-Data \-Documentation}
\hypertarget{classRectangleArray_aef84a270bcfec99b5693e57e52edb805}{\index{\-Rectangle\-Array@{\-Rectangle\-Array}!m\-Data@{m\-Data}}
\index{m\-Data@{m\-Data}!RectangleArray@{\-Rectangle\-Array}}
\subsubsection[{m\-Data}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename \-T$>$ std\-::vector$<$std\-::vector$<$\-T$>$ $>$ {\bf \-Rectangle\-Array}$<$ \-T $>$\-::{\bf m\-Data}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{classRectangleArray_aef84a270bcfec99b5693e57e52edb805}


\-Definition at line 34 of file \-Rectangle\-Array.\-h.



\-Referenced by \-Rectangle\-Array$<$ Walk\-Position $>$\-::operator\mbox{[}$\,$\mbox{]}(), and \-Rectangle\-Array$<$ Walk\-Position $>$\-::resize().



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Skynet/\-Skynet/\hyperlink{RectangleArray_8h}{\-Rectangle\-Array.\-h}\end{DoxyCompactItemize}
