\section{Segment  Class Reference}
\label{class_Segment}\index{Segment@{Segment}}
\subsection*{Public Methods}
\begin{CompactItemize}
\item 
{\bf Segment} ()
\item 
{\bf Segment} (double a, double b)
\item 
{\bf $\sim$Segment} ()
\item 
const Segment\& {\bf operator=} (const Segment \&s)
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
double {\bf start}
\item 
double {\bf end}
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
int {\bf operator$>$} (const Segment \&s1, const Segment \&s2)
\item 
int {\bf operator$<$} (const Segment \&s1, const Segment \&s2)
\item 
ostream\& {\bf operator$<$$<$} (ostream \&os, const Segment \&seg)
\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{Segment@{Segment}!Segment@{Segment}}
\index{Segment@{Segment}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Segment::Segment ()\hspace{0.3cm}{\tt  [inline]}}\label{class_Segment_a0}




Definition at line 23 of file segments.inc.\footnotesize\begin{verbatim}00023            {}
00024 \end{verbatim}\normalsize 
\index{Segment@{Segment}!Segment@{Segment}}
\index{Segment@{Segment}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Segment::Segment (double {\em a}, double {\em b})\hspace{0.3cm}{\tt  [inline]}}\label{class_Segment_a1}




Definition at line 25 of file segments.inc.\footnotesize\begin{verbatim}00025                              {
00026     if (a<b){
00027       start = a;
00028       end = b;
00029     } else {
00030       start = b;
00031       end = a;
00032     }
00033 \end{verbatim}\normalsize 
\index{Segment@{Segment}!~Segment@{$\sim$Segment}}
\index{~Segment@{$\sim$Segment}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Segment::$\sim$Segment ()\hspace{0.3cm}{\tt  [inline]}}\label{class_Segment_a2}




Definition at line 35 of file segments.inc.\footnotesize\begin{verbatim}00036     {
00037 \end{verbatim}\normalsize 


\subsection{Member Function Documentation}
\index{Segment@{Segment}!operator=@{operator=}}
\index{operator=@{operator=}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Segment \& Segment::operator= (const Segment \& {\em s})\hspace{0.3cm}{\tt  [inline]}}\label{class_Segment_a3}




Definition at line 39 of file segments.inc.\footnotesize\begin{verbatim}00040     {
00041       if (this != &s)
00042       {
00043         start = s.start;
00044         end = s.end;
00045         //      width = s.width;
00046       }
00047 \end{verbatim}\normalsize 


\subsection{Friends And Related Function Documentation}
\index{Segment@{Segment}!operator<@{operator$<$}}
\index{operator<@{operator$<$}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int operator$<$ (const Segment \& {\em s1}, const Segment \& {\em s2})\hspace{0.3cm}{\tt  [friend]}}\label{class_Segment_l1}




Definition at line 62 of file segments.inc.\footnotesize\begin{verbatim}00063     {
00064       // order on START value
00065       if(s1.start < s2.start) return 1;
00066       else if(s1.start > s2.start) return 0;
00067       // If the Segment have the same start position;
00068       if(s1.end < s2.end) return 1;
00069       else if(s1.end > s2.end) return 0;
00070       // If the Segment are the same
00071       return 0;
00072 \end{verbatim}\normalsize 
\index{Segment@{Segment}!operator<<@{operator$<$$<$}}
\index{operator<<@{operator$<$$<$}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ostream \& operator$<$$<$ (ostream \& {\em os}, const Segment \& {\em seg})\hspace{0.3cm}{\tt  [friend]}}\label{class_Segment_l2}




Definition at line 74 of file segments.inc.\footnotesize\begin{verbatim}00075     { 
00076       os << seg.start << " " << seg.end;// << " " << seg.width; 
00077       return os; 
00078 \end{verbatim}\normalsize 
\index{Segment@{Segment}!operator>@{operator$>$}}
\index{operator>@{operator$>$}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int operator$>$ (const Segment \& {\em s1}, const Segment \& {\em s2})\hspace{0.3cm}{\tt  [friend]}}\label{class_Segment_l0}




Definition at line 50 of file segments.inc.\footnotesize\begin{verbatim}00051     {
00052       // order on START value
00053       if(s1.start > s2.start) return 1;
00054       else if(s1.start < s2.start) return 0;
00055       // If the Segment have the same start position;
00056       if(s1.end > s2.end) return 1;
00057       else if(s1.end < s2.end) return 0;
00058       // If the Segment are the same
00059       return 0;
00060 \end{verbatim}\normalsize 


\subsection{Member Data Documentation}
\index{Segment@{Segment}!end@{end}}
\index{end@{end}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double Segment::end}\label{class_Segment_m1}




Definition at line 81 of file segments.inc.\index{Segment@{Segment}!start@{start}}
\index{start@{start}!Segment@{Segment}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double Segment::start}\label{class_Segment_m0}




Definition at line 80 of file segments.inc.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
{\bf segments.inc}\end{CompactItemize}
