<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>StringTokenizer::iterator class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.10 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>StringTokenizer::iterator Class Reference</h1>The input forward <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a> for tokens. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="misc_8h-source.html">misc.h</a>></code> <p> <a href="class_string_tokenizer_1_1iterator-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a0">iterator</a> ()</td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a1">~iterator</a> ()</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a2">iterator</a> (const iterator &i)</td></tr> <tr><td> </td><td><font size=-1><em>copy constructor.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>iterator & </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a3">operator=</a> (const iterator &i)</td></tr> <tr><td> </td><td><font size=-1><em>assignment operator.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>iterator & </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a4">operator++</a> () THROWS(<a class="el" href="class_string_tokenizer_1_1_no_such_element_exception.html">NoSuchElementException</a>)</td></tr> <tr><td> </td><td><font size=-1><em>shifts this <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a> to the next token in the string.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a5">operator *</a> () THROWS(<a class="el" href="class_string_tokenizer_1_1_no_such_element_exception.html">NoSuchElementException</a>)</td></tr> <tr><td> </td><td><font size=-1><em>returns the immutable string this <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a> points to or '0' if no token is available (i.e.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a6">nextDelimiter</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>returns the next delimiter after the current token or '\0', if there are no following delimiters.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a7">operator==</a> (const iterator &other) const</td></tr> <tr><td> </td><td><font size=-1><em>compares to other <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a>.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#a8">operator!=</a> (const iterator &other) const</td></tr> <tr><td> </td><td><font size=-1><em>compares to other <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a>.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Friends</h2></td></tr> <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="class_string_tokenizer_1_1iterator.html#l0">StringTokenizer</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> The input forward <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a> for tokens. <p> <dl compact><dt><b> Author: </b><dd> Henner Zeller </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="StringTokenizer::iterator::iterator"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> StringTokenizer::iterator::iterator </td> <td class="md">( </td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="StringTokenizer::iterator::~iterator"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual StringTokenizer::iterator::~iterator </td> <td class="md">( </td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"><code> [inline, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a2" doxytag="StringTokenizer::iterator::iterator"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> StringTokenizer::iterator::iterator </td> <td class="md">( </td> <td class="md">const iterator &</td> <td class="mdname1"> <em>i</em> </td> <td class="md">) </td> <td class="md"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> copy constructor. <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a6" doxytag="StringTokenizer::iterator::nextDelimiter"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char StringTokenizer::iterator::nextDelimiter </td> <td class="md">( </td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> returns the next delimiter after the current token or '\0', if there are no following delimiters. <p> It returns the very next delimiter (even if skipAllDelim=true). </td> </tr> </table> <a name="a5" doxytag="StringTokenizer::iterator::operator *"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const char* StringTokenizer::iterator::operator * </td> <td class="md">( </td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> returns the immutable string this <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a> points to or '0' if no token is available (i.e. <p> i == <a class="el" href="class_string_tokenizer.html#a5">end</a>()). Do not store pointers to this token, since it is invalidated for each iteration. If you need the token, copy it (e.g. with strdup()); </td> </tr> </table> <a name="a8" doxytag="StringTokenizer::iterator::operator!="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool StringTokenizer::iterator::operator!= </td> <td class="md">( </td> <td class="md">const iterator &</td> <td class="mdname1"> <em>other</em> </td> <td class="md">) </td> <td class="md"> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> compares to other <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a>. <p> Usually used to compare against the <a class="el" href="class_string_tokenizer.html#a5">end</a>() <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a>. </td> </tr> </table> <a name="a4" doxytag="StringTokenizer::iterator::operator++"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> iterator& StringTokenizer::iterator::operator++ </td> <td class="md">( </td> <td class="md">void</td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> shifts this <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a> to the next token in the string. <p> </td> </tr> </table> <a name="a3" doxytag="StringTokenizer::iterator::operator="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> iterator& StringTokenizer::iterator::operator= </td> <td class="md">( </td> <td class="md">const iterator &</td> <td class="mdname1"> <em>i</em> </td> <td class="md">) </td> <td class="md"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> assignment operator. <p> </td> </tr> </table> <a name="a7" doxytag="StringTokenizer::iterator::operator=="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool StringTokenizer::iterator::operator== </td> <td class="md">( </td> <td class="md">const iterator &</td> <td class="mdname1"> <em>other</em> </td> <td class="md">) </td> <td class="md"> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> compares to other <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a>. <p> Usually used to compare against the <a class="el" href="class_string_tokenizer.html#a5">end</a>() <a class="el" href="class_string_tokenizer_1_1iterator.html">iterator</a>. </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="l0" doxytag="StringTokenizer::iterator::StringTokenizer"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> friend class StringTokenizer<code> [friend]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="misc_8h-source.html">misc.h</a></ul> <hr><address><small>Generated at Tue Nov 20 13:28:50 2001 for CommonC++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>