CDBIterator

Iterates over the key-value entries of a CDBWrapper.

Synopsis

Declared in <dbwrapper.h>

class CDBIterator;

Types

NameDescription
IteratorImpl Opaque holder for the underlying LevelDB iterator.

Member Functions

NameDescription
CDBIterator [constructor]Constructs an iterator over the given wrapper.
~CDBIterator [destructor]Destroys the iterator and releases the underlying LevelDB iterator.
GetKey Reads the key at the current position.
GetValue Reads and de-obfuscates the value at the current position.
Next Advances the iterator to the next entry.
Seek Positions the iterator at the first entry with a key at or after the given key.
SeekToFirst Positions the iterator at the first entry in the database.
Valid Returns true if the iterator is positioned at a valid entry.

Non-Member Functions

NameDescription
index_util::CopyHeightIndexToHashIndexCopy an index entry from the height index to the hash index.