\hypertarget{class_open_chams_1_1_port}{}\section{Port Class Reference}
\label{class_open_chams_1_1_port}\index{Port@{Port}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_open_chams_1_1_port_a743f20da85b9a06d9984c0adc337afc1}\label{class_open_chams_1_1_port_a743f20da85b9a06d9984c0adc337afc1}} 
unsigned \mbox{\hyperlink{class_open_chams_1_1_port_a743f20da85b9a06d9984c0adc337afc1}{get\+Index}} () const
\begin{DoxyCompactList}\small\item\em returns the index of the port. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_port_ace51e4bf9cee0319600c14723efa0dfb}\label{class_open_chams_1_1_port_ace51e4bf9cee0319600c14723efa0dfb}} 
const std\+::string \& \mbox{\hyperlink{class_open_chams_1_1_port_ace51e4bf9cee0319600c14723efa0dfb}{get\+Orientation}} () const
\begin{DoxyCompactList}\small\item\em returns the orientation of the port. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_port_a49fc4eb493558cf55dd00df9ef5f8f08}\label{class_open_chams_1_1_port_a49fc4eb493558cf55dd00df9ef5f8f08}} 
const std\+::string \& \mbox{\hyperlink{class_open_chams_1_1_port_a49fc4eb493558cf55dd00df9ef5f8f08}{get\+Type}} () const
\begin{DoxyCompactList}\small\item\em returns the type of the port. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_port_a344385751bee0720059403940d57a13e}\label{class_open_chams_1_1_port_a344385751bee0720059403940d57a13e}} 
double \mbox{\hyperlink{class_open_chams_1_1_port_a344385751bee0720059403940d57a13e}{getX}} () const
\begin{DoxyCompactList}\small\item\em returns the x coordinate of the port. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_port_aafa51c7f8f38a09febbb9ce7853f77b4}\label{class_open_chams_1_1_port_aafa51c7f8f38a09febbb9ce7853f77b4}} 
double \mbox{\hyperlink{class_open_chams_1_1_port_aafa51c7f8f38a09febbb9ce7853f77b4}{getY}} () const
\begin{DoxyCompactList}\small\item\em returns the y coordinate of the port. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_open_chams_1_1_port_ab13daf22aea531e874ff42a71b49a112}{Port}} (const std\+::string \&type, unsigned idx, double x, double y, const std\+::string \&orient)
\begin{DoxyCompactList}\small\item\em creates a new port. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class describes port.

A port is used by schematic to position the input/output ports of the circuit.

\begin{DoxyNote}{Note}
Althought the \mbox{\hyperlink{class_open_chams_1_1_port}{Port}} object is related to \mbox{\hyperlink{class_open_chams_1_1_schematic}{Schematic}}, it is handled by \mbox{\hyperlink{class_open_chams_1_1_net}{Net}} object since a port always belongs to a \mbox{\hyperlink{class_open_chams_1_1_net}{Net}}. 
\end{DoxyNote}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_open_chams_1_1_port_ab13daf22aea531e874ff42a71b49a112}\label{class_open_chams_1_1_port_ab13daf22aea531e874ff42a71b49a112}} 
\index{Open\+Chams\+::\+Port@{Open\+Chams\+::\+Port}!Port@{Port}}
\index{Port@{Port}!Open\+Chams\+::\+Port@{Open\+Chams\+::\+Port}}
\subsubsection{\texorpdfstring{Port()}{Port()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_open_chams_1_1_port}{Port}} (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{type,  }\item[{unsigned}]{idx,  }\item[{double}]{x,  }\item[{double}]{y,  }\item[{const std\+::string \&}]{orient }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



creates a new port. 


\begin{DoxyParams}{Parameters}
{\em type} & the type of the port. \\
\hline
{\em idx} & the index of the port (index of nets belonging to the same net must be different). \\
\hline
{\em x} & the x coordinate of the port. \\
\hline
{\em y} & the y coordinate of the port. \\
\hline
{\em orient} & the orientation of the port. \\
\hline
\end{DoxyParams}
