\section{DSIterator  Class Reference}
\label{class_DSIterator}\index{DSIterator@{DSIterator}}
Collaboration diagram for DSIterator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=72pt]{class_DSIterator_coll_graph}
\end{center}
\end{figure}
\subsection*{Public Methods}
\begin{CompactItemize}
\item 
void {\bf Reset} ()
\item 
void {\bf Set\-String} (const {\bf Dyn\-String} \&newstring)
\item 
void {\bf Set\-Delim} (const {\bf Dyn\-String} \&newdelims)
\item 
{\bf Dyn\-String} {\bf operator $\ast$} ()
\item 
{\bf operator int} ()
\item 
const DSIterator\& {\bf operator++} ()
\item 
void {\bf Copy} (const DSIterator \&it)
\item 
const DSIterator\& {\bf operator=} (const DSIterator \&it)
\item 
{\bf DSIterator} ()
\item 
{\bf DSIterator} (const DSIterator \&it)
\item 
{\bf DSIterator} (const {\bf Dyn\-String} \&ds, const {\bf Dyn\-String} \&delims)
\item 
{\bf DSIterator} (const {\bf Dyn\-String} \&ds)
\item 
{\bf $\sim$DSIterator} ()
\end{CompactItemize}
\subsection*{Private Methods}
\begin{CompactItemize}
\item 
int {\bf Delim\-Match} (char c)
\item 
void {\bf Position} ()
\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
{\bf Dyn\-String} {\bf str}
\item 
{\bf Dyn\-String} {\bf delim}
\item 
int {\bf b}
\item 
int {\bf e}
\item 
int {\bf reset}
\end{CompactItemize}


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




Definition at line 57 of file dsiter.inc.\footnotesize\begin{verbatim}00057                              { b=0; e=0; reset=0; }
00058 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!DSIterator@{DSIterator}}
\index{DSIterator@{DSIterator}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DSIterator::DSIterator (const DSIterator \& {\em it})\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a9}




Definition at line 59 of file dsiter.inc.\footnotesize\begin{verbatim}00060                   { Copy(it); }
00061 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!DSIterator@{DSIterator}}
\index{DSIterator@{DSIterator}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DSIterator::DSIterator (const {\bf Dyn\-String} \& {\em ds}, const {\bf Dyn\-String} \& {\em delims})\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a10}




Definition at line 62 of file dsiter.inc.\footnotesize\begin{verbatim}00063                   {
00064                     str = ds;
00065                     delim = delims;
00066                     Reset();
00067                     reset = 0;
00068 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!DSIterator@{DSIterator}}
\index{DSIterator@{DSIterator}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DSIterator::DSIterator (const {\bf Dyn\-String} \& {\em ds})\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a11}




Definition at line 70 of file dsiter.inc.\footnotesize\begin{verbatim}00071                   {
00072                     str = ds;
00073                     delim = GetDSDelim();
00074                     Reset();
00075                     reset = 0;
00076 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!~DSIterator@{$\sim$DSIterator}}
\index{~DSIterator@{$\sim$DSIterator}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DSIterator::$\sim$DSIterator ()\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a12}




Definition at line 78 of file dsiter.inc.\footnotesize\begin{verbatim}00078                               {}
00079 \end{verbatim}\normalsize 


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




Definition at line 45 of file dsiter.inc.

Referenced by DSIterator(), and operator=().\footnotesize\begin{verbatim}00046                   {
00047                     str = it.str;
00048                     delim = it.delim;
00049                     b = it.b;
00050                     e = it.e;
00051                     reset = it.reset;
00052 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!DelimMatch@{DelimMatch}}
\index{DelimMatch@{DelimMatch}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int DSIterator::Delim\-Match (char {\em c})\hspace{0.3cm}{\tt  [inline, private]}}\label{class_DSIterator_c0}




Definition at line 89 of file dsiter.inc.

Referenced by Position().\footnotesize\begin{verbatim}00090                   { 
00091                     for(int i=0; i<delim.Length(); ++i)
00092                         if(delim[i] == c)
00093                             return 1;
00094                     return 0;
00095 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!Position@{Position}}
\index{Position@{Position}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DSIterator::Position ()\hspace{0.3cm}{\tt  [inline, private]}}\label{class_DSIterator_c1}




Definition at line 97 of file dsiter.inc.

Referenced by Reset(), and operator++().\footnotesize\begin{verbatim}00098                   {
00099                     // Move the beginning to the next non-delimiter:
00100                     for(b=e+1; b<str.Length() && DelimMatch(str[b]); ++b);
00101 
00102                     // Move the end to the position of the last non-delimiter
00103                     // after the beginning:
00104                     for(e=b; e<str.Length()-1 && !DelimMatch(str[e+1]); ++e);
00105 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!Reset@{Reset}}
\index{Reset@{Reset}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DSIterator::Reset ()\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a0}




Definition at line 13 of file dsiter.inc.

Referenced by DSIterator(), operator $\ast$(), operator int(), and operator++().\footnotesize\begin{verbatim}00014                   { e = -1; Position(); }
00015 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!SetDelim@{SetDelim}}
\index{SetDelim@{SetDelim}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DSIterator::Set\-Delim (const {\bf Dyn\-String} \& {\em newdelims})\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a2}




Definition at line 20 of file dsiter.inc.\footnotesize\begin{verbatim}00021                   { delim = newdelims; }
00022 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!SetString@{SetString}}
\index{SetString@{SetString}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DSIterator::Set\-String (const {\bf Dyn\-String} \& {\em newstring})\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a1}




Definition at line 16 of file dsiter.inc.\footnotesize\begin{verbatim}00017                   { str = newstring; reset=1; }
00018 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!operator *@{operator $\ast$}}
\index{operator *@{operator $\ast$}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Dyn\-String} DSIterator::operator $\ast$ ()\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a3}




Definition at line 25 of file dsiter.inc.\footnotesize\begin{verbatim}00026                   { 
00027                     if(reset) { Reset(); reset=0; }
00028 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!operator int@{operator int}}
\index{operator int@{operator int}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DSIterator::operator int ()\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a4}




Definition at line 31 of file dsiter.inc.\footnotesize\begin{verbatim}00032                   { 
00033                     if(reset) { Reset(); reset=0; }
00034 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!operator++@{operator++}}
\index{operator++@{operator++}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const DSIterator \& DSIterator::operator++ ()\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a5}




Definition at line 37 of file dsiter.inc.\footnotesize\begin{verbatim}00038                   { 
00039                     if(reset) { Reset(); reset=0; }
00040 \end{verbatim}\normalsize 
\index{DSIterator@{DSIterator}!operator=@{operator=}}
\index{operator=@{operator=}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const DSIterator \& DSIterator::operator= (const DSIterator \& {\em it})\hspace{0.3cm}{\tt  [inline]}}\label{class_DSIterator_a7}




Definition at line 54 of file dsiter.inc.\footnotesize\begin{verbatim}00055                   { Copy(it); return *this; }
00056 \end{verbatim}\normalsize 


\subsection{Member Data Documentation}
\index{DSIterator@{DSIterator}!b@{b}}
\index{b@{b}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int DSIterator::b\hspace{0.3cm}{\tt  [private]}}\label{class_DSIterator_o2}




Definition at line 85 of file dsiter.inc.\index{DSIterator@{DSIterator}!delim@{delim}}
\index{delim@{delim}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Dyn\-String} DSIterator::delim\hspace{0.3cm}{\tt  [private]}}\label{class_DSIterator_o1}




Definition at line 83 of file dsiter.inc.\index{DSIterator@{DSIterator}!e@{e}}
\index{e@{e}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int DSIterator::e\hspace{0.3cm}{\tt  [private]}}\label{class_DSIterator_o3}




Definition at line 85 of file dsiter.inc.\index{DSIterator@{DSIterator}!reset@{reset}}
\index{reset@{reset}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int DSIterator::reset\hspace{0.3cm}{\tt  [private]}}\label{class_DSIterator_o4}




Definition at line 87 of file dsiter.inc.\index{DSIterator@{DSIterator}!str@{str}}
\index{str@{str}!DSIterator@{DSIterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Dyn\-String} DSIterator::str\hspace{0.3cm}{\tt  [private]}}\label{class_DSIterator_o0}




Definition at line 81 of file dsiter.inc.

Referenced by operator $\ast$().

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