\doxysection{DRC.\+hpp}
\hypertarget{DRC_8hpp_source}{}\label{DRC_8hpp_source}\index{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/DRC.hpp@{/home/chr/devel/PhD/Environment/pub/PCBEnv/pcbenv/cxx/DRC.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ GYM\_PCB\_DRC\_H}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ GYM\_PCB\_DRC\_H}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ "{}Py.hpp"{}}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}Geometry.hpp"{}}}
\DoxyCodeLine{00006\ }
\DoxyCodeLine{00007\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classConnection}{Connection}};}
\DoxyCodeLine{00008\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classPin}{Pin}};}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{class\ }DRCViolation}
\DoxyCodeLine{00011\ \{}
\DoxyCodeLine{00012\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00013\ \ \ \ \ DRCViolation(\mbox{\hyperlink{classPoint__25}{Point\_25}},\ \mbox{\hyperlink{classConnection}{Connection}}\ *,\ \mbox{\hyperlink{classConnection}{Connection}}\ *,\ \mbox{\hyperlink{classPin}{Pin}}\ *);}
\DoxyCodeLine{00014\ \ \ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{classPoint__25}{Point\_25}}\&\ getLocation()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ mLocation;\ \}}
\DoxyCodeLine{00015\ \ \ \ \ \mbox{\hyperlink{classConnection}{Connection}}\ *getConnection(uint\ i)\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ mConnections[i\ ?\ 1\ :\ 0];\ \}}
\DoxyCodeLine{00016\ \ \ \ \ PyObject\ *getPy()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00017\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00018\ \ \ \ \ \mbox{\hyperlink{classPoint__25}{Point\_25}}\ mLocation;}
\DoxyCodeLine{00019\ \ \ \ \ \mbox{\hyperlink{classConnection}{Connection}}\ *mConnections[2];}
\DoxyCodeLine{00020\ \ \ \ \ \mbox{\hyperlink{classPin}{Pin}}\ *mPin;}
\DoxyCodeLine{00021\ \};}
\DoxyCodeLine{00022\ \textcolor{keyword}{inline}\ DRCViolation::DRCViolation(\mbox{\hyperlink{classPoint__25}{Point\_25}}\ x,\ \mbox{\hyperlink{classConnection}{Connection}}\ *A,\ \mbox{\hyperlink{classConnection}{Connection}}\ *B,\ \mbox{\hyperlink{classPin}{Pin}}\ *P)\ :\ mLocation(x),\ mPin(P)}
\DoxyCodeLine{00023\ \{}
\DoxyCodeLine{00024\ \ \ \ \ mConnections[0]\ =\ A;}
\DoxyCodeLine{00025\ \ \ \ \ mConnections[1]\ =\ B;}
\DoxyCodeLine{00026\ \}}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ GYM\_PCB\_DRC\_H}}

\end{DoxyCode}
