KDbmIterator provides an iterator for KDbm databases More...
#include <kdbm.h>
Inherits: KGDbmIterator
KDbmIterator provides an iterator for KDbm databases.
The access is not `key' sequential, but it is guaranteed to visit every `key' in the database once.
Example:
KDbmIterator it(db);for (char* key = it.getFirstKey(); !it.eof(); it.getNextKey()) { cout << key << " = " << db[key] << endl; }
Construct an iterator for `_db'.
Destroy the iterator.
Set the iterator to point to the first item in the database and return
a pointer to its key.
The pointer is null if the database is empty.
Set the iterator to point to next item in the database and return
a pointer to its key.
The pointer is null if the previous current item was the last one.
Documentation generated by iglio@localhost on Thu Oct 15 19:05:38 GMT 1998 | Kdoc |