\section{KJS::List\-Iterator Class Reference}
\label{classKJS_1_1ListIterator}\index{KJS::ListIterator@{KJS::ListIterator}}
Iterator for {\bf KJS::List}{\rm (p.\,\pageref{classKJS_1_1List})} objects.  


{\tt \#include $<$list.h$>$}

Collaboration diagram for KJS::List\-Iterator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKJS_1_1ListIterator__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf List\-Iterator} (const {\bf List} \&l)
\item 
{\bf List\-Iterator} (const {\bf List} \&l, int index)\label{classKJS_1_1ListIterator_a1}

\item 
{\bf Value\-Imp} $\ast$ {\bf operator $\rightarrow$ } () const 
\item 
{\bf Value} {\bf operator $\ast$} () const \label{classKJS_1_1ListIterator_a3}

\item 
{\bf Value} {\bf operator++} ()
\item 
{\bf Value} {\bf operator++} (int)
\item 
{\bf Value} {\bf operator--} ()
\item 
{\bf Value} {\bf operator--} (int)
\item 
bool {\bf operator==} (const {\bf List\-Iterator} \&it) const 
\item 
bool {\bf operator!=} (const {\bf List\-Iterator} \&it) const 
\end{CompactItemize}


\subsection{Detailed Description}
Iterator for {\bf KJS::List}{\rm (p.\,\pageref{classKJS_1_1List})} objects. 



Definition at line 138 of file list.h.

\subsection{Constructor \& Destructor Documentation}
\index{KJS::ListIterator@{KJS::List\-Iterator}!ListIterator@{ListIterator}}
\index{ListIterator@{ListIterator}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KJS::List\-Iterator::List\-Iterator (const {\bf List} \& {\em l})\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a0}


Construct an iterator that points to the first element of the list. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em l}]The list the iterator will operate on. \end{description}
\end{Desc}


Definition at line 144 of file list.h.

\subsection{Member Function Documentation}
\index{KJS::ListIterator@{KJS::List\-Iterator}!operator->@{operator-$>$}}
\index{operator->@{operator-$>$}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value\-Imp}$\ast$ KJS::List\-Iterator::operator $\rightarrow$  () const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a2}


Dereference the iterator. 

\begin{Desc}
\item[Returns:]A pointer to the element the iterator operates on. \end{Desc}


Definition at line 150 of file list.h.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator++@{operator++}}
\index{operator++@{operator++}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} KJS::List\-Iterator::operator++ ()\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a4}


Prefix increment operator. 

\begin{Desc}
\item[Returns:]The element after the increment. \end{Desc}


Definition at line 156 of file list.h.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator++@{operator++}}
\index{operator++@{operator++}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} KJS::List\-Iterator::operator++ (int)\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a5}


Postfix increment operator. 



Definition at line 160 of file list.h.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator--@{operator--}}
\index{operator--@{operator--}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} KJS::List\-Iterator::operator-- ()\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a6}


Prefix decrement operator. 



Definition at line 164 of file list.h.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator--@{operator--}}
\index{operator--@{operator--}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} KJS::List\-Iterator::operator-- (int)\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a7}


Postfix decrement operator. 



Definition at line 168 of file list.h.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator==@{operator==}}
\index{operator==@{operator==}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KJS::List\-Iterator::operator== (const {\bf List\-Iterator} \& {\em it}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a8}


Compare the iterator with another one. 

\begin{Desc}
\item[Returns:]True if the two iterators operate on the same list element. False otherwise. \end{Desc}


Definition at line 174 of file list.h.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KJS::List\-Iterator::operator!= (const {\bf List\-Iterator} \& {\em it}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1ListIterator_a9}


Check for inequality with another iterator. 

\begin{Desc}
\item[Returns:]True if the two iterators operate on different list elements. \end{Desc}


Definition at line 179 of file list.h.

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