\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 $<$types.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf List\-Iterator} (const  {\bf List} \&l)
\begin{CompactList}\small\item\em Construct an iterator that points to the first element of the list. \item\end{CompactList}\item 
{\bf List\-Iterator} \& {\bf operator=} (const  {\bf List\-Iterator} \&iterator)
\begin{CompactList}\small\item\em Assignment constructor. \item\end{CompactList}\item 
{\bf List\-Iterator} (const  {\bf List\-Iterator} \&i)
\begin{CompactList}\small\item\em Copy constructor. \item\end{CompactList}\item 
{\bf Value\-Imp} $\ast$ {\bf operator $\rightarrow$ } () const 
\begin{CompactList}\small\item\em Dereference the iterator. \item\end{CompactList}\item 
{\bf Value} {\bf operator $\ast$} () const \label{classKJS_1_1ListIterator_a5}

\item 
{\bf Value} {\bf operator++} ()
\begin{CompactList}\small\item\em Postfix increment operator. \item\end{CompactList}\item 
{\bf Value} {\bf operator++} (int)
\begin{CompactList}\small\item\em Prefix increment operator. \item\end{CompactList}\item 
{\bf Value} {\bf operator--} ()
\begin{CompactList}\small\item\em Postfix decrement operator. \item\end{CompactList}\item 
{\bf Value} {\bf operator--} (int)
\begin{CompactList}\small\item\em Prefix decrement operator. \item\end{CompactList}\item 
bool {\bf operator==} (const  {\bf List\-Iterator} \&it) const 
\begin{CompactList}\small\item\em Compare the iterator with another one. \item\end{CompactList}\item 
bool {\bf operator!=} (const  {\bf List\-Iterator} \&it) const 
\begin{CompactList}\small\item\em Check for inequality with another iterator. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf List}\label{classKJS_1_1ListIterator_n0}

\item 
class {\bf List\-Imp}\label{classKJS_1_1ListIterator_n1}

\end{CompactItemize}


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



Definition at line 58 of file types.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}List\-Iterator::List\-Iterator (const {\bf List} \& {\em l})}\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 92 of file types.cpp.

References KStd\-Accel::next().\index{KJS::ListIterator@{KJS::List\-Iterator}!ListIterator@{ListIterator}}
\index{ListIterator@{ListIterator}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}List\-Iterator::List\-Iterator (const {\bf List\-Iterator} \& {\em i})}\label{classKJS_1_1ListIterator_a2}


Copy constructor. 



Definition at line 103 of file types.cpp.

\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 List\-Iterator} \& List\-Iterator::operator= (const {\bf List\-Iterator} \& {\em iterator})}\label{classKJS_1_1ListIterator_a1}


Assignment constructor. 



Definition at line 97 of file types.cpp.

References node.\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$ List\-Iterator::operator $\rightarrow$  () const}\label{classKJS_1_1ListIterator_a4}


Dereference the iterator. 

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


Definition at line 111 of file types.cpp.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator++@{operator++}}
\index{operator++@{operator++}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} List\-Iterator::operator++ ()}\label{classKJS_1_1ListIterator_a6}


Postfix increment operator. 

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


Definition at line 123 of file types.cpp.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator++@{operator++}}
\index{operator++@{operator++}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} List\-Iterator::operator++ (int)}\label{classKJS_1_1ListIterator_a7}


Prefix increment operator. 



Definition at line 129 of file types.cpp.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator--@{operator--}}
\index{operator--@{operator--}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} List\-Iterator::operator-- ()}\label{classKJS_1_1ListIterator_a8}


Postfix decrement operator. 



Definition at line 136 of file types.cpp.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator--@{operator--}}
\index{operator--@{operator--}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Value} List\-Iterator::operator-- (int)}\label{classKJS_1_1ListIterator_a9}


Prefix decrement operator. 



Definition at line 142 of file types.cpp.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator==@{operator==}}
\index{operator==@{operator==}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool List\-Iterator::operator== (const {\bf List\-Iterator} \& {\em it}) const}\label{classKJS_1_1ListIterator_a10}


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 149 of file types.cpp.

References node.\index{KJS::ListIterator@{KJS::List\-Iterator}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!KJS::ListIterator@{KJS::List\-Iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool List\-Iterator::operator!= (const {\bf List\-Iterator} \& {\em it}) const}\label{classKJS_1_1ListIterator_a11}


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 154 of file types.cpp.

References node.

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