<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /builddir/build/BUILD/libqxt/src/berkeley/qxtbdbhash.cpp --> <head> <title>QxtBdbHashIterator Class Reference</title> <link href="stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="classes.html"><font color="#004faf">Classes</font></a> · <a href="namespaces.html"><font color="#004faf">Namespaces</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtBdbHashIterator Class Reference<br /><span class="small-subtitle">[<a href="qxtberkeley.html">QxtBerkeley</a> module]</span> </h1> <p>The QxtBdbHashIterator class provides a fast iterator over a <a href="qxtbdbhash.html">QxtBdbHash</a> <a href="#details">More...</a></p> <pre> #include <QxtBdbHashIterator></pre><ul> <li><a href="qxtbdbhashiterator-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h3>Public Functions</h3> <ul> <li><div class="fn"></div><b><a href="qxtbdbhashiterator.html#QxtBdbHashIterator">QxtBdbHashIterator</a></b> ()</li> <li><div class="fn"></div><b><a href="qxtbdbhashiterator.html#QxtBdbHashIterator-2">QxtBdbHashIterator</a></b> ( const QxtBdbHashIterator<KEY, VAL> & <i>other</i> )</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> <b><a href="qxtbdbhashiterator.html#erase">erase</a></b> ()</li> <li><div class="fn"></div>bool <b><a href="qxtbdbhashiterator.html#isValid">isValid</a></b> () const</li> <li><div class="fn"></div>KEY <b><a href="qxtbdbhashiterator.html#key">key</a></b> () const</li> <li><div class="fn"></div>VAL <b><a href="qxtbdbhashiterator.html#value">value</a></b> () const</li> <li><div class="fn"></div><b><a href="qxtbdbhashiterator.html#operator-KEY">operator KEY</a></b> () const</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> <b><a href="qxtbdbhashiterator.html#operator-2b">operator+</a></b> ( int <i>j</i> ) const</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> & <b><a href="qxtbdbhashiterator.html#operator-2b-2b">operator++</a></b> ()</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> <b><a href="qxtbdbhashiterator.html#operator-2b-2b-2">operator++</a></b> ( int )</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> & <b><a href="qxtbdbhashiterator.html#operator-2b-eq">operator+=</a></b> ( int <i>j</i> )</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> <b><a href="qxtbdbhashiterator.html#operator-">operator-</a></b> ( int <i>j</i> ) const</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> & <b><a href="qxtbdbhashiterator.html#operator--">operator--</a></b> ()</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> <b><a href="qxtbdbhashiterator.html#operator---2">operator--</a></b> ( int )</li> <li><div class="fn"></div>QxtBdbHashIterator<KEY, VAL> & <b><a href="qxtbdbhashiterator.html#operator--eq">operator-=</a></b> ( int <i>j</i> )</li> <li><div class="fn"></div>QxtBdbHashIterator & <b><a href="qxtbdbhashiterator.html#operator-eq">operator=</a></b> ( const QxtBdbHashIterator<KEY, VAL> & <i>other</i> )</li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QxtBdbHashIterator class provides a fast iterator over a <a href="qxtbdbhash.html">QxtBdbHash</a></p> <p>TODO: {implicitshared}</p> <p>See also <a href="qxtbdbhash.html">QxtBdbHash</a>.</p> <hr /> <h2>Member Function Documentation</h2> <h3 class="fn"><a name="QxtBdbHashIterator"></a>QxtBdbHashIterator::QxtBdbHashIterator ()</h3> <p>Constructs an invalid <a href="qxtbdbhashiterator.html">QxtBdbHashIterator</a></p> <h3 class="fn"><a name="QxtBdbHashIterator-2"></a>QxtBdbHashIterator::QxtBdbHashIterator ( const QxtBdbHashIterator<KEY, VAL> & <i>other</i> )</h3> <p>Copy constructor</p> <h3 class="fn"><a name="erase"></a>QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::erase ()</h3> <p>Removes the (key, value) pair associated with the iterator from the hash, and returns an iterator to the next item in the hash.</p> <p>This instance is invalid then, and cannot be used further.</p> <h3 class="fn"><a name="isValid"></a>bool QxtBdbHashIterator::isValid () const</h3> <p>Returns <tt>true</tt> if the iterator is valid. Invalid iterators are unusable and accessing any function will fail.</p> <h3 class="fn"><a name="key"></a>KEY QxtBdbHashIterator::key () const</h3> <p>Returns the current key.</p> <p>See also <a href="qxtbdbhashiterator.html#value">value</a>().</p> <h3 class="fn"><a name="value"></a>VAL QxtBdbHashIterator::value () const</h3> <p>Returns the current value.</p> <p>See also <a href="qxtbdbhashiterator.html#key">key</a>().</p> <h3 class="fn"><a name="operator-KEY"></a>QxtBdbHashIterator::operator KEY () const</h3> <p>Convertion operator to the current value.</p> <p>See also <a href="qxtbdbhashiterator.html#key">key</a>().</p> <h3 class="fn"><a name="operator-2b"></a>QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator+ ( int <i>j</i> ) const</h3> <p>Returns an iterator to the item at <i>j</i> positions forward from this iterator.</p> <h3 class="fn"><a name="operator-2b-2b"></a>QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator++ ()</h3> <p>The prefix ++ operator (++i) advances the iterator to the next item in the hash and returns an iterator to the new current item.</p> <h3 class="fn"><a name="operator-2b-2b-2"></a>QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator++ ( int )</h3> <p>The postfix ++ operator (i++) advances the iterator to the next item in the hash and returns an iterator to the previously current item.</p> <h3 class="fn"><a name="operator-2b-eq"></a>QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator+= ( int <i>j</i> )</h3> <p>Advances the iterator by <i>j</i> items.</p> <h3 class="fn"><a name="operator-"></a>QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator- ( int <i>j</i> ) const</h3> <p>Returns an iterator to the item at <i>j</i> positions backward from this iterator.</p> <h3 class="fn"><a name="operator--"></a>QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator-- ()</h3> <p>The prefix -- operator (--i) makes the preceding item current and returns an iterator pointing to the new current item.</p> <h3 class="fn"><a name="operator---2"></a>QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator-- ( int )</h3> <p>The postfix -- operator (i--) makes the preceding item current and returns an iterator pointing to the previously current item.</p> <h3 class="fn"><a name="operator--eq"></a>QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator-= ( int <i>j</i> )</h3> <p>Makes the iterator go back by <i>j</i> items.</p> <h3 class="fn"><a name="operator-eq"></a>QxtBdbHashIterator & QxtBdbHashIterator::operator= ( const QxtBdbHashIterator<KEY, VAL> & <i>other</i> )</h3> <p>Assignment operator</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td align="left">Copyright © 2007-2010 <a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td> <td align="right"><div align="right"> <a href="http://libqxt.org">Qxt</a> 0.6.1</div></td> </tr></table></div></address></body> </html>