\hypertarget{namespacever2}{}\doxysection{ver2 Namespace Reference}
\label{namespacever2}\index{ver2@{ver2}}


namespace with functions for mapping addresses to some global coordinates and counting distances in that space  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{namespacever2_a752ee92f5a2fc94cbdf8f45f0ebf9904}\label{namespacever2_a752ee92f5a2fc94cbdf8f45f0ebf9904}} 
\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} {\bfseries GP\+\_\+\+Sector\+Mapping} (string raw\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_ad49ffb15bf305fc7ed57932c0c18ca1a}\label{namespacever2_ad49ffb15bf305fc7ed57932c0c18ca1a}} 
\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} {\bfseries G\+\_\+\+Sector\+Mapping} (string raw\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_ac2ba45d666c390b745faca7454709cf3}\label{namespacever2_ac2ba45d666c390b745faca7454709cf3}} 
\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} {\bfseries P\+\_\+\+Sector\+Mapping} (string raw\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_aca94c8838827ad4ba5fee24b07974539}\label{namespacever2_aca94c8838827ad4ba5fee24b07974539}} 
\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} {\bfseries V\+\_\+\+Sector\+Mapping} (string raw\+\_\+addr)
\item 
int \mbox{\hyperlink{namespacever2_a82063db6c421969a2e5a17e82f66f39e}{horizontal\+Corridor\+Special\+Case\+\_\+\+G\+\_\+V}} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr, int first\+\_\+row\+\_\+opposite)
\begin{DoxyCompactList}\small\item\em handling the special case of the addresses in the same horizontal corridor (the same row) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{namespacever2_a9252e22233e5b2ca581694fe76733ca4}\label{namespacever2_a9252e22233e5b2ca581694fe76733ca4}} 
int {\bfseries horizontal\+Corridor\+Special\+Case\+\_\+\+P\+\_\+\+GP} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr, int first\+\_\+row\+\_\+opposite)
\item 
\mbox{\Hypertarget{namespacever2_aa57eaf00d257d015ecf235c503886748}\label{namespacever2_aa57eaf00d257d015ecf235c503886748}} 
int {\bfseries get\+Distance\+In\+SectorG} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_ab8e28ef9f592e53040759e38e864dda4}\label{namespacever2_ab8e28ef9f592e53040759e38e864dda4}} 
int {\bfseries get\+Distance\+In\+SectorV} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_a91cd6eb9466cef4e607b725434dd3719}\label{namespacever2_a91cd6eb9466cef4e607b725434dd3719}} 
int {\bfseries get\+Distance\+In\+SectorP} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_aab84012eed2ad73f2df1e928c9d44288}\label{namespacever2_aab84012eed2ad73f2df1e928c9d44288}} 
int {\bfseries get\+Distance\+In\+Sector\+GP} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_a9c6adf2c127b71cdb67a8c63c70ecd72}\label{namespacever2_a9c6adf2c127b71cdb67a8c63c70ecd72}} 
int {\bfseries get\+Distance\+Between\+Sectors\+\_\+\+G\+\_\+V} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_ab52f18856d43f1a76a12dfcf5acdfdcf}\label{namespacever2_ab52f18856d43f1a76a12dfcf5acdfdcf}} 
int {\bfseries get\+Distance\+Between\+Sectors\+\_\+\+G\+\_\+P} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_a196f8b6c862df329f7f7dc3fc75fa213}\label{namespacever2_a196f8b6c862df329f7f7dc3fc75fa213}} 
int {\bfseries get\+Distance\+Between\+Sectors\+\_\+\+G\+\_\+\+GP} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_a800b7c3d0506cd0ceece852cc3112fe5}\label{namespacever2_a800b7c3d0506cd0ceece852cc3112fe5}} 
int {\bfseries get\+Distance\+Between\+Sectors\+\_\+\+V\+\_\+P} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_a19ab61720081dd5acb0b02e4022ffc51}\label{namespacever2_a19ab61720081dd5acb0b02e4022ffc51}} 
int {\bfseries get\+Distance\+Between\+Sectors\+\_\+\+V\+\_\+\+GP} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\item 
\mbox{\Hypertarget{namespacever2_a198087ebbc2c51120fd7e7c3a4002217}\label{namespacever2_a198087ebbc2c51120fd7e7c3a4002217}} 
int {\bfseries get\+Distance\+Between\+Sectors\+\_\+\+GP\+\_\+P} (\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} first\+\_\+addr, \mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}} second\+\_\+addr)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
namespace with functions for mapping addresses to some global coordinates and counting distances in that space 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{namespacever2_a82063db6c421969a2e5a17e82f66f39e}\label{namespacever2_a82063db6c421969a2e5a17e82f66f39e}} 
\index{ver2@{ver2}!horizontalCorridorSpecialCase\_G\_V@{horizontalCorridorSpecialCase\_G\_V}}
\index{horizontalCorridorSpecialCase\_G\_V@{horizontalCorridorSpecialCase\_G\_V}!ver2@{ver2}}
\doxysubsubsection{\texorpdfstring{horizontalCorridorSpecialCase\_G\_V()}{horizontalCorridorSpecialCase\_G\_V()}}
{\footnotesize\ttfamily int ver2\+::measuring\+::horizontal\+Corridor\+Special\+Case\+\_\+\+G\+\_\+V (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}}}]{first\+\_\+addr,  }\item[{\mbox{\hyperlink{structSECTOR__ADDR__T}{SECTOR\+\_\+\+ADDR\+\_\+T}}}]{second\+\_\+addr,  }\item[{int}]{first\+\_\+row\+\_\+opposite }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



handling the special case of the addresses in the same horizontal corridor (the same row) 


\begin{DoxyParams}{Parameters}
{\em first\+\_\+addr} & \\
\hline
{\em second\+\_\+addr} & \\
\hline
{\em first\+\_\+row\+\_\+opposite} & Y original coord of the first row which faces the first corridor from the sector\textquotesingle{}s specification \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
computed shortest distance or -\/1 when special case hasn\textquotesingle{}t been recognized 
\end{DoxyReturn}
