QxtBdbHashIterator Class Reference
[QxtBerkeley module]

provides a fast iterator over a QxtBdbHash More...

 #include <QxtBdbHashIterator>

Public Functions


Detailed Description

see See also: QxtBdbHash
implicit shared This class is implicit shared.

Member Documentation

QxtBdbHashIterator ( )

Constructs an invalid QxtBdbHashIterator




QxtBdbHashIterator ( const QxtBdbHashIterator< KEY, VAL > & other )

copy Constructor




QxtBdbHashIterator & operator= ( const QxtBdbHashIterator< KEY, VAL > & other )

copy assign




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.

see See also: key();




KEY key ( ) const

returns the current key.

see See also: value();




VAL value ( ) const

returns the current value.

see See also: key();




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.






Copyright © 2007 Qxt Foundation Trademarks
Qt Extension Library 0.4