QxtBdbHashIterator Class Reference
[QxtBerkeley module]
The QxtBdbHashIterator class provides a fast iterator over a QxtBdbHash More...
#include <QxtBdbHashIterator>
Public Functions
- QxtBdbHashIterator ()
- QxtBdbHashIterator ( const QxtBdbHashIterator<KEY, VAL> & other )
- QxtBdbHashIterator<KEY, VAL> erase ()
- bool isValid () const
- KEY key () const
- VAL value () const
- operator KEY () const
- QxtBdbHashIterator<KEY, VAL> operator+ ( int j ) const
- QxtBdbHashIterator<KEY, VAL> & operator++ ()
- QxtBdbHashIterator<KEY, VAL> operator++ ( int )
- QxtBdbHashIterator<KEY, VAL> & operator+= ( int j )
- QxtBdbHashIterator<KEY, VAL> operator- ( int j ) const
- QxtBdbHashIterator<KEY, VAL> & operator-- ()
- QxtBdbHashIterator<KEY, VAL> operator-- ( int )
- QxtBdbHashIterator<KEY, VAL> & operator-= ( int j )
- QxtBdbHashIterator & operator= ( const QxtBdbHashIterator<KEY, VAL> & other )
Detailed Description
The QxtBdbHashIterator class provides a fast iterator over a QxtBdbHash
TODO: {implicitshared}
See also QxtBdbHash.
Member Function Documentation
QxtBdbHashIterator::QxtBdbHashIterator ()
Constructs an invalid QxtBdbHashIterator
QxtBdbHashIterator::QxtBdbHashIterator ( const QxtBdbHashIterator<KEY, VAL> & other )
Copy constructor
QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::erase ()
Removes the (key, value) pair associated with the iterator from the hash, and returns an iterator to the next item in the hash.
This instance is invalid then, and cannot be used further.
bool QxtBdbHashIterator::isValid () const
Returns true if the iterator is valid. Invalid iterators are unusable and accessing any function will fail.
KEY QxtBdbHashIterator::key () const
Returns the current key.
See also value().
VAL QxtBdbHashIterator::value () const
Returns the current value.
See also key().
QxtBdbHashIterator::operator KEY () const
Convertion operator to the current value.
See also key().
QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator+ ( int j ) const
Returns an iterator to the item at j positions forward from this iterator.
QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator++ ()
The prefix ++ operator (++i) advances the iterator to the next item in the hash and returns an iterator to the new current item.
QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator++ ( int )
The postfix ++ operator (i++) advances the iterator to the next item in the hash and returns an iterator to the previously current item.
QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator+= ( int j )
Advances the iterator by j items.
QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator- ( int j ) const
Returns an iterator to the item at j positions backward from this iterator.
QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator-- ()
The prefix -- operator (--i) makes the preceding item current and returns an iterator pointing to the new current item.
QxtBdbHashIterator<KEY, VAL> QxtBdbHashIterator::operator-- ( int )
The postfix -- operator (i--) makes the preceding item current and returns an iterator pointing to the previously current item.
QxtBdbHashIterator<KEY, VAL> & QxtBdbHashIterator::operator-= ( int j )
Makes the iterator go back by j items.
QxtBdbHashIterator & QxtBdbHashIterator::operator= ( const QxtBdbHashIterator<KEY, VAL> & other )
Assignment operator