\section{neighbor\_\-iterator  Class Reference}
\label{class_neighbor_iterator}\index{neighbor_iterator@{neighbor\_\-iterator}}
Inheritance diagram for neighbor\_\-iterator\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=63pt]{class_neighbor_iterator_inherit_graph}
\end{center}
\end{figure}
Collaboration diagram for neighbor\_\-iterator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=114pt]{class_neighbor_iterator_coll_graph}
\end{center}
\end{figure}
\subsection*{Public Methods}
\begin{CompactItemize}
\item 
{\bf neighbor\_\-iterator} (int reverse=0)
\item 
{\bf neighbor\_\-iterator} (const neighbor\_\-iterator \&ni)
\item 
{\bf $\sim$neighbor\_\-iterator} ()
\item 
void {\bf reset} ()
\item 
{\bf operator int} () const
\item 
const {\bf base\_\-iterator}\& {\bf operator++} ()
\item 
int {\bf operator $\ast$} () const
\end{CompactItemize}
\subsection*{Protected Methods}
\begin{CompactItemize}
\item 
{\bf neighbor\_\-iterator} ({\bf sd\-Graph}$<$ DT, WT $>$ $\ast$g, int vndx, int reverse=0)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf sd\-Graph$<$ DT, WT $>$}
\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{neighbor_iterator@{neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\index{neighbor_iterator@{neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}neighbor\_\-iterator::neighbor\_\-iterator ({\bf sd\-Graph}$<$ DT, WT $>$ $\ast$ {\em g}, int {\em vndx}, int {\em reverse} = 0)\hspace{0.3cm}{\tt  [inline, protected]}}\label{class_neighbor_iterator_b0}




Definition at line 58 of file sdgiter.inc.\footnotesize\begin{verbatim}00059                   : base_iterator(g,vndx,reverse) { reset(); }
00060 \end{verbatim}\normalsize 
\index{neighbor_iterator@{neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\index{neighbor_iterator@{neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}neighbor\_\-iterator::neighbor\_\-iterator (int {\em reverse} = 0)\hspace{0.3cm}{\tt  [inline]}}\label{class_neighbor_iterator_a0}




Definition at line 61 of file sdgiter.inc.\footnotesize\begin{verbatim}00062                                   : base_iterator<DT>(reverse) { reset(); }
00063 \end{verbatim}\normalsize 
\index{neighbor_iterator@{neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\index{neighbor_iterator@{neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}neighbor\_\-iterator::neighbor\_\-iterator (const neighbor\_\-iterator \& {\em ni})\hspace{0.3cm}{\tt  [inline]}}\label{class_neighbor_iterator_a1}




Definition at line 65 of file sdgiter.inc.\footnotesize\begin{verbatim}00066                                   : base_iterator<DT>(ni) {}
00067 \end{verbatim}\normalsize 
\index{neighbor_iterator@{neighbor\_\-iterator}!~neighbor_iterator@{$\sim$neighbor\_\-iterator}}
\index{~neighbor_iterator@{$\sim$neighbor\_\-iterator}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}neighbor\_\-iterator::$\sim$neighbor\_\-iterator ()\hspace{0.3cm}{\tt  [inline]}}\label{class_neighbor_iterator_a2}




Definition at line 70 of file sdgiter.inc.\footnotesize\begin{verbatim}00070                                      { /* empty */ }
00071 \end{verbatim}\normalsize 


\subsection{Member Function Documentation}
\index{neighbor_iterator@{neighbor\_\-iterator}!operator *@{operator $\ast$}}
\index{operator *@{operator $\ast$}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int neighbor\_\-iterator::operator $\ast$ () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_neighbor_iterator_a6}




Reimplemented from {\bf base\_\-iterator} {\rm (p.\,\pageref{class_base_iterator_a9})}.

Definition at line 95 of file sdgiter.inc.\footnotesize\begin{verbatim}00096                 {
00097                   if((vid==-1) || (vstart==-1)) return -1; 
00098                   if(!rev) { if(vid>=G->VA[vstart]->NumO) return -1; }
00099 \end{verbatim}\normalsize 
\index{neighbor_iterator@{neighbor\_\-iterator}!operator int@{operator int}}
\index{operator int@{operator int}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}neighbor\_\-iterator::operator int () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_neighbor_iterator_a4}




Reimplemented from {\bf base\_\-iterator} {\rm (p.\,\pageref{class_base_iterator_a7})}.

Definition at line 82 of file sdgiter.inc.\footnotesize\begin{verbatim}00083                 {
00084                   if(vid == -1) return 0;
00085                   if(!rev) return (vid < G->VA[vstart]->NumO);
00086                   return (vid < G->VA[vstart]->NumI);
00087 \end{verbatim}\normalsize 
\index{neighbor_iterator@{neighbor\_\-iterator}!operator++@{operator++}}
\index{operator++@{operator++}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf base\_\-iterator} \& neighbor\_\-iterator::operator++ ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_neighbor_iterator_a5}




Reimplemented from {\bf base\_\-iterator} {\rm (p.\,\pageref{class_base_iterator_a8})}.

Definition at line 89 of file sdgiter.inc.\footnotesize\begin{verbatim}00090                 {
00091                   if(vid != -1) ++vid;
00092                   return *this;
00093 \end{verbatim}\normalsize 
\index{neighbor_iterator@{neighbor\_\-iterator}!reset@{reset}}
\index{reset@{reset}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void neighbor\_\-iterator::reset ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_neighbor_iterator_a3}




Reimplemented from {\bf base\_\-iterator} {\rm (p.\,\pageref{class_base_iterator_a6})}.

Definition at line 72 of file sdgiter.inc.\footnotesize\begin{verbatim}00073                   {
00074                     if(bad()) vid = -1;
00075                     else 
00076                       {
00077                         if(!rev) vid = (G->VA[vstart]->NumO > 0) ? 0 : -1;
00078                         else vid = (G->VA[vstart]->NumI > 0) ? 0 : -1;
00079                       }
00080 \end{verbatim}\normalsize 


\subsection{Friends And Related Function Documentation}
\index{neighbor_iterator@{neighbor\_\-iterator}!sdGraph< DT, WT >@{sdGraph$<$ DT, WT $>$}}
\index{sdGraph< DT, WT >@{sdGraph$<$ DT, WT $>$}!neighbor_iterator@{neighbor\_\-iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}class {\bf sd\-Graph}\hspace{0.3cm}{\tt  [friend]}}\label{class_neighbor_iterator_l0}




Reimplemented from {\bf base\_\-iterator} {\rm (p.\,\pageref{class_base_iterator_l0})}.

Definition at line 55 of file sdgiter.inc.

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