QxtBdbHashIterator Class Reference
[QxtBerkeley module]
provides a fast iterator over a QxtBdbHash
More...
#include <QxtBdbHashIterator>
Public Functions
- QxtBdbHashIterator ( )
- QxtBdbHashIterator ( const QxtBdbHashIterator< KEY, VAL > & other )
- QxtBdbHashIterator & operator= ( const QxtBdbHashIterator< KEY, VAL > & other )
- bool isValid ( ) const
- operator KEY ( ) const
- KEY key ( ) const
- VAL value ( ) 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< KEY, VAL > erase ( )
Detailed Description
This class is implicit shared.
Member Documentation
QxtBdbHashIterator ( )
QxtBdbHashIterator ( const QxtBdbHashIterator< KEY, VAL > & other )
QxtBdbHashIterator & operator= ( const QxtBdbHashIterator< KEY, VAL > & other )
bool isValid ( ) const
return true if the iterator is valid. Invalid iterators are unusable and accessing any function will fail.
operator KEY ( ) const
conversation operator to the current value.
KEY key ( ) const
VAL value ( ) const
returns the current value.
QxtBdbHashIterator< KEY, VAL > operator+ ( int j ) const
Returns an iterator to the item at j positions forward from this iterator.
QxtBdbHashIterator< KEY, VAL > & 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 > 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 > & operator+= ( int j )
Advances the iterator by j items.
QxtBdbHashIterator< KEY, VAL > operator- ( int j ) const
Returns an iterator to the item at j positions backward from this iterator.
QxtBdbHashIterator< KEY, VAL > & operator-- ( )
The prefix -- operator (--i) makes the preceding item current and returns an iterator pointing to the new current item.
QxtBdbHashIterator< KEY, VAL > operator-- ( int )
The postfix -- operator (i--) makes the preceding item current and returns an iterator pointing to the previously current item.
QxtBdbHashIterator< KEY, VAL > & operator-= ( int j )
Makes the iterator go back by j items.
QxtBdbHashIterator< KEY, VAL > 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.