\section{Iterator  Class Reference}
\label{class_Iterator}\index{Iterator@{Iterator}}
Collaboration diagram for Iterator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=113pt]{class_Iterator_coll_graph}
\end{center}
\end{figure}
\subsection*{Public Methods}
\begin{CompactItemize}
\item 
void {\bf Reset} ()
\item 
T\& {\bf operator $\ast$} ()
\item 
{\bf operator int} () const
\item 
const Iterator\& {\bf operator++} ()
\item 
void {\bf Copy} (const Iterator \&it)
\item 
const Iterator\& {\bf operator=} (const Iterator \&it)
\item 
{\bf Iterator} ()
\item 
{\bf Iterator} (const Iterator \&it)
\item 
{\bf $\sim$Iterator} ()
\end{CompactItemize}
\subsection*{Private Methods}
\begin{CompactItemize}
\item 
{\bf Iterator} ({\bf DLList}$<$ T $>$ \&dll)
\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
{\bf DLList\-Rep}$<$T$>$$\ast$ {\bf Lst}
\item 
{\bf DLList\-Node}$<$T$>$$\ast$ {\bf Hop}
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf DLList$<$ T $>$}
\end{CompactItemize}


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




Definition at line 31 of file dlliter.inc.\footnotesize\begin{verbatim}00031                            { Lst = 0; Hop = 0; }
00032 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!Iterator@{Iterator}}
\index{Iterator@{Iterator}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Iterator::Iterator (const Iterator \& {\em it})\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a7}




Definition at line 32 of file dlliter.inc.\footnotesize\begin{verbatim}00033                   { Lst = 0; Hop = 0; Copy(it); }
00034 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!~Iterator@{$\sim$Iterator}}
\index{~Iterator@{$\sim$Iterator}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Iterator::$\sim$Iterator ()\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a8}




Definition at line 34 of file dlliter.inc.\footnotesize\begin{verbatim}00034                             { if(Lst) Lst->Dereference(); Lst=0; }
00035 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!Iterator@{Iterator}}
\index{Iterator@{Iterator}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Iterator::Iterator ({\bf DLList}$<$ T $>$ \& {\em dll})\hspace{0.3cm}{\tt  [inline, private]}}\label{class_Iterator_c0}




Definition at line 36 of file dlliter.inc.\footnotesize\begin{verbatim}00037                   { 
00038                     Lst = dll.the_rep; 
00039                     if(Lst) Lst->Reference();
00040                     Reset(); 
00041 \end{verbatim}\normalsize 


\subsection{Member Function Documentation}
\index{Iterator@{Iterator}!Copy@{Copy}}
\index{Copy@{Copy}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Iterator::Copy (const Iterator \& {\em it})\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a4}




Definition at line 17 of file dlliter.inc.

Referenced by Iterator(), and operator=().\footnotesize\begin{verbatim}00018                   { 
00019                     if(Lst != it.Lst)
00020                       { 
00021                         if(Lst) Lst->Dereference();
00022                         Lst = it.Lst; 
00023                         if(Lst) Lst->Reference();
00024                       }
00025 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!Reset@{Reset}}
\index{Reset@{Reset}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Iterator::Reset ()\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a0}




Definition at line 12 of file dlliter.inc.

Referenced by Iterator().\footnotesize\begin{verbatim}00012                              { Hop = Lst->Head; }
00013 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!operator *@{operator $\ast$}}
\index{operator *@{operator $\ast$}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}T \& Iterator::operator $\ast$ ()\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a1}




Definition at line 13 of file dlliter.inc.\footnotesize\begin{verbatim}00013                                  { return Hop->Data; }
00014 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!operator int@{operator int}}
\index{operator int@{operator int}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Iterator::operator int () const\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a2}




Definition at line 14 of file dlliter.inc.\footnotesize\begin{verbatim}00014                                       { return Hop!=0; }
00015 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!operator++@{operator++}}
\index{operator++@{operator++}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Iterator \& Iterator::operator++ ()\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a3}




Definition at line 15 of file dlliter.inc.\footnotesize\begin{verbatim}00016                   { if(Hop) Hop = Hop->Next; return *this; }
00017 \end{verbatim}\normalsize 
\index{Iterator@{Iterator}!operator=@{operator=}}
\index{operator=@{operator=}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const Iterator \& Iterator::operator= (const Iterator \& {\em it})\hspace{0.3cm}{\tt  [inline]}}\label{class_Iterator_a5}




Definition at line 28 of file dlliter.inc.\footnotesize\begin{verbatim}00029                   { Copy(it); return *this; }
00030 \end{verbatim}\normalsize 


\subsection{Friends And Related Function Documentation}
\index{Iterator@{Iterator}!DLList< T >@{DLList$<$ T $>$}}
\index{DLList< T >@{DLList$<$ T $>$}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}class {\bf DLList}\hspace{0.3cm}{\tt  [friend]}}\label{class_Iterator_l0}




Definition at line 10 of file dlliter.inc.

\subsection{Member Data Documentation}
\index{Iterator@{Iterator}!Hop@{Hop}}
\index{Hop@{Hop}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DLList\-Node}$<$ T $>$ $\ast$ Iterator::Hop\hspace{0.3cm}{\tt  [private]}}\label{class_Iterator_o1}




Definition at line 43 of file dlliter.inc.\index{Iterator@{Iterator}!Lst@{Lst}}
\index{Lst@{Lst}!Iterator@{Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DLList\-Rep}$<$ T $>$ $\ast$ Iterator::Lst\hspace{0.3cm}{\tt  [private]}}\label{class_Iterator_o0}




Definition at line 42 of file dlliter.inc.

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