Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 767

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{ost::String\-Tokenizer::iterator Class Reference}
\label{classost_1_1_string_tokenizer_1_1iterator}\index{ost::StringTokenizer::iterator@{ost::StringTokenizer::iterator}}
The input forward iterator for tokens.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf iterator} ()
\item 
virtual {\bf $\sim$iterator} ()
\item 
{\bf iterator} (const {\bf iterator} \&i)
\begin{CompactList}\small\item\em copy constructor. \item\end{CompactList}\item 
{\bf iterator} \& {\bf operator=} (const {\bf iterator} \&i)
\begin{CompactList}\small\item\em assignment operator. \item\end{CompactList}\item 
{\bf iterator} \& {\bf operator++} () THROWS({\bf No\-Such\-Element\-Exception})
\begin{CompactList}\small\item\em shifts this iterator to the next token in the string. \item\end{CompactList}\item 
const char $\ast$ {\bf operator $\ast$} () THROWS({\bf No\-Such\-Element\-Exception})
\begin{CompactList}\small\item\em returns the immutable string this iterator points to or '0' if no token is available (i.e. \item\end{CompactList}\item 
char {\bf next\-Delimiter} () const 
\begin{CompactList}\small\item\em returns the next delimiter after the current token or '$\backslash$0', if there are no following delimiters. \item\end{CompactList}\item 
bool {\bf operator==} (const {\bf iterator} \&other) const 
\begin{CompactList}\small\item\em compares to other iterator. \item\end{CompactList}\item 
bool {\bf operator!=} (const {\bf iterator} \&other) const 
\begin{CompactList}\small\item\em compares to other iterator. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf String\-Tokenizer}
\end{CompactItemize}


\subsection{Detailed Description}
The input forward iterator for tokens. 

\begin{Desc}
\item[Author:]Henner Zeller \end{Desc}




\subsection{Constructor \& Destructor Documentation}
\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!iterator@{iterator}}
\index{iterator@{iterator}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::String\-Tokenizer::iterator::iterator ()\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_string_tokenizer_1_1iterator_e6300cd59e2f0026319f5f8860d086d3}


\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!~iterator@{$\sim$iterator}}
\index{~iterator@{$\sim$iterator}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual ost::String\-Tokenizer::iterator::$\sim$iterator ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classost_1_1_string_tokenizer_1_1iterator_365b92953a6e7b19287a12cb9fe61904}


\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!iterator@{iterator}}
\index{iterator@{iterator}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::String\-Tokenizer::iterator::iterator (const {\bf iterator} \& {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_string_tokenizer_1_1iterator_1c99b3999e0c08589666c22830c54b62}


copy constructor. 



\subsection{Member Function Documentation}
\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!nextDelimiter@{nextDelimiter}}
\index{nextDelimiter@{nextDelimiter}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char ost::String\-Tokenizer::iterator::next\-Delimiter () const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_string_tokenizer_1_1iterator_3aa3b96b05055ef6e58a13c1418b20b7}


returns the next delimiter after the current token or '$\backslash$0', if there are no following delimiters. 

It returns the very next delimiter (even if skip\-All\-Delim=true). \index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!operator *@{operator $\ast$}}
\index{operator *@{operator $\ast$}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ ost::String\-Tokenizer::iterator::operator $\ast$ ()}\label{classost_1_1_string_tokenizer_1_1iterator_acd7b122f9cd760297a2ce0d31be6c3d}


returns the immutable string this iterator points to or '0' if no token is available (i.e. 

i == {\bf end()}{\rm (p.\,\pageref{classost_1_1_string_tokenizer_74b3471e3e481c0144758385c29cbfbf})}). Do not store pointers to this token, since it is invalidated for each iteration. If you need the token, copy it (e.g. with {\bf strdup()}{\rm (p.\,\pageref{namespaceost_945b275fab2dac13c0f0b8b46e7c14b4})}); \index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool ost::String\-Tokenizer::iterator::operator!= (const {\bf iterator} \& {\em other}) const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_string_tokenizer_1_1iterator_2c844808f928c1f939534c49a12d3a94}


compares to other iterator. 

Usually used to compare against the {\bf end()}{\rm (p.\,\pageref{classost_1_1_string_tokenizer_74b3471e3e481c0144758385c29cbfbf})} iterator. \index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!operator++@{operator++}}
\index{operator++@{operator++}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf iterator}\& ost::String\-Tokenizer::iterator::operator++ ()}\label{classost_1_1_string_tokenizer_1_1iterator_5da247325e2d1ace75f4f772438f0419}


shifts this iterator to the next token in the string. 

\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!operator=@{operator=}}
\index{operator=@{operator=}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf iterator}\& ost::String\-Tokenizer::iterator::operator= (const {\bf iterator} \& {\em i})\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_string_tokenizer_1_1iterator_8cfac0a3036d1a1a41f8bc0e0c837515}


assignment operator. 

\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!operator==@{operator==}}
\index{operator==@{operator==}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool ost::String\-Tokenizer::iterator::operator== (const {\bf iterator} \& {\em other}) const\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_string_tokenizer_1_1iterator_bc13d5278b0706125d72e28df2e98ba7}


compares to other iterator. 

Usually used to compare against the {\bf end()}{\rm (p.\,\pageref{classost_1_1_string_tokenizer_74b3471e3e481c0144758385c29cbfbf})} iterator. 

\subsection{Friends And Related Function Documentation}
\index{ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}!StringTokenizer@{StringTokenizer}}
\index{StringTokenizer@{StringTokenizer}!ost::StringTokenizer::iterator@{ost::String\-Tokenizer::iterator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}friend class {\bf String\-Tokenizer}\hspace{0.3cm}{\tt  [friend]}}\label{classost_1_1_string_tokenizer_1_1iterator_e4c807aed5a3c9b17fa4b6f44e1f8012}




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