\hypertarget{class_open_chams_1_1_wire}{}\section{Wire Class Reference}
\label{class_open_chams_1_1_wire}\index{Wire@{Wire}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_open_chams_1_1_wire_aab66049b1f5ccf8de85249720152833a}{add\+Intermediate\+Point}} (double x, double y)
\begin{DoxyCompactList}\small\item\em adds an \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}} to the wire. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_wire_ab1c91025a4117cede119f53d9eb8093b}\label{class_open_chams_1_1_wire_ab1c91025a4117cede119f53d9eb8093b}} 
\mbox{\hyperlink{class_open_chams_1_1_wire_point}{Wire\+Point}} $\ast$ \mbox{\hyperlink{class_open_chams_1_1_wire_ab1c91025a4117cede119f53d9eb8093b}{get\+End\+Point}} ()
\begin{DoxyCompactList}\small\item\em returns the end point of the wire. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_wire_aac2840e22e03db0ff2c0fe0f83c56fdd}\label{class_open_chams_1_1_wire_aac2840e22e03db0ff2c0fe0f83c56fdd}} 
const std\+::vector$<$ \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}} $\ast$ $>$ \& \mbox{\hyperlink{class_open_chams_1_1_wire_aac2840e22e03db0ff2c0fe0f83c56fdd}{get\+Intermediate\+Points}} ()
\begin{DoxyCompactList}\small\item\em returns the list of wire\textquotesingle{}s \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_wire_ad68ddfcb6d4cbbe3c06d03fb4350dcdb}\label{class_open_chams_1_1_wire_ad68ddfcb6d4cbbe3c06d03fb4350dcdb}} 
\mbox{\hyperlink{class_open_chams_1_1_wire_point}{Wire\+Point}} $\ast$ \mbox{\hyperlink{class_open_chams_1_1_wire_ad68ddfcb6d4cbbe3c06d03fb4350dcdb}{get\+Start\+Point}} ()
\begin{DoxyCompactList}\small\item\em returns the start point of the wire. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_wire_abe5aa44c424e8b7bee9645af10ee0a23}\label{class_open_chams_1_1_wire_abe5aa44c424e8b7bee9645af10ee0a23}} 
bool \mbox{\hyperlink{class_open_chams_1_1_wire_abe5aa44c424e8b7bee9645af10ee0a23}{has\+No\+Intermediate\+Points}} ()
\begin{DoxyCompactList}\small\item\em returns true if the wire has no \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_open_chams_1_1_wire_a25430c9acf02567164074625ba56e5ef}{set\+End\+Point}} (unsigned idx)
\begin{DoxyCompactList}\small\item\em sets the wire\textquotesingle{}s end point as a \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_open_chams_1_1_wire_a37335a2ff923eb45ff5d4f2f4e41b8b1}{set\+Start\+Point}} (unsigned idx)
\begin{DoxyCompactList}\small\item\em sets the wire\textquotesingle{}s start point as a \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_open_chams_1_1_wire_a66b8cdcb08d46fe66f1b910ff05ea328}\label{class_open_chams_1_1_wire_a66b8cdcb08d46fe66f1b910ff05ea328}} 
\mbox{\hyperlink{class_open_chams_1_1_wire_a66b8cdcb08d46fe66f1b910ff05ea328}{Wire}} ()
\begin{DoxyCompactList}\small\item\em creates a new wire. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class describes wire.

A wire is used by schematic to the connections between instances. It is defined by\+:
\begin{DoxyItemize}
\item a start point (\mbox{\hyperlink{class_open_chams_1_1_instance_point}{Instance\+Point}} or \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}),
\item a end point (\mbox{\hyperlink{class_open_chams_1_1_instance_point}{Instance\+Point}} or \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}),
\item a list of \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}}, this list may be empty.
\end{DoxyItemize}

\begin{DoxyNote}{Note}
Althought the \mbox{\hyperlink{class_open_chams_1_1_wire}{Wire}} 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 wire is always associated to a \mbox{\hyperlink{class_open_chams_1_1_net}{Net}}. 
\end{DoxyNote}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_open_chams_1_1_wire_aab66049b1f5ccf8de85249720152833a}\label{class_open_chams_1_1_wire_aab66049b1f5ccf8de85249720152833a}} 
\index{Open\+Chams\+::\+Wire@{Open\+Chams\+::\+Wire}!add\+Intermediate\+Point@{add\+Intermediate\+Point}}
\index{add\+Intermediate\+Point@{add\+Intermediate\+Point}!Open\+Chams\+::\+Wire@{Open\+Chams\+::\+Wire}}
\subsubsection{\texorpdfstring{add\+Intermediate\+Point()}{addIntermediatePoint()}}
{\footnotesize\ttfamily void add\+Intermediate\+Point (\begin{DoxyParamCaption}\item[{double}]{x,  }\item[{double}]{y }\end{DoxyParamCaption})}



adds an \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}} to the wire. 


\begin{DoxyParams}{Parameters}
{\em x} & the x coordinate of the \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}}. \\
\hline
{\em y} & the y coordinate of the \mbox{\hyperlink{class_open_chams_1_1_intermediate_point}{Intermediate\+Point}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_open_chams_1_1_wire_a25430c9acf02567164074625ba56e5ef}\label{class_open_chams_1_1_wire_a25430c9acf02567164074625ba56e5ef}} 
\index{Open\+Chams\+::\+Wire@{Open\+Chams\+::\+Wire}!set\+End\+Point@{set\+End\+Point}}
\index{set\+End\+Point@{set\+End\+Point}!Open\+Chams\+::\+Wire@{Open\+Chams\+::\+Wire}}
\subsubsection{\texorpdfstring{set\+End\+Point()}{setEndPoint()}}
{\footnotesize\ttfamily void set\+End\+Point (\begin{DoxyParamCaption}\item[{unsigned}]{idx }\end{DoxyParamCaption})}



sets the wire\textquotesingle{}s end point as a \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}. 


\begin{DoxyParams}{Parameters}
{\em idx} & the index of the port associated to the \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_open_chams_1_1_wire_a37335a2ff923eb45ff5d4f2f4e41b8b1}\label{class_open_chams_1_1_wire_a37335a2ff923eb45ff5d4f2f4e41b8b1}} 
\index{Open\+Chams\+::\+Wire@{Open\+Chams\+::\+Wire}!set\+Start\+Point@{set\+Start\+Point}}
\index{set\+Start\+Point@{set\+Start\+Point}!Open\+Chams\+::\+Wire@{Open\+Chams\+::\+Wire}}
\subsubsection{\texorpdfstring{set\+Start\+Point()}{setStartPoint()}}
{\footnotesize\ttfamily void set\+Start\+Point (\begin{DoxyParamCaption}\item[{unsigned}]{idx }\end{DoxyParamCaption})}



sets the wire\textquotesingle{}s start point as a \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}. 


\begin{DoxyParams}{Parameters}
{\em idx} & the index of the port associated to the \mbox{\hyperlink{class_open_chams_1_1_port_point}{Port\+Point}}. \\
\hline
\end{DoxyParams}
