[#CDBIterator]
= CDBIterator
:mrdocs:

Iterates over the key&hyphen;value entries of a CDBWrapper&period;

== Synopsis

Declared in `&lt;dbwrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CDBIterator;
----

== Types

[cols="1,4"]
|===
| Name| Description
| xref:CDBIterator/IteratorImpl.adoc[`IteratorImpl`] 
| Opaque holder for the underlying LevelDB iterator&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CDBIterator/2constructor.adoc[`CDBIterator`]         [.small]#[constructor]#
| Constructs an iterator over the given wrapper&period;
| xref:CDBIterator/2destructor.adoc[`&#126;CDBIterator`] [.small]#[destructor]#
| Destroys the iterator and releases the underlying LevelDB iterator&period;
| xref:CDBIterator/GetKey.adoc[`GetKey`] 
| Reads the key at the current position&period;
| xref:CDBIterator/GetValue.adoc[`GetValue`] 
| Reads and de&hyphen;obfuscates the value at the current position&period;
| xref:CDBIterator/Next.adoc[`Next`] 
| Advances the iterator to the next entry&period;
| xref:CDBIterator/Seek.adoc[`Seek`] 
| Positions the iterator at the first entry with a key at or after the given key&period;
| xref:CDBIterator/SeekToFirst.adoc[`SeekToFirst`] 
| Positions the iterator at the first entry in the database&period;
| xref:CDBIterator/Valid.adoc[`Valid`] 
| Returns true if the iterator is positioned at a valid entry&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:index_util/CopyHeightIndexToHashIndex.adoc[`index&lowbar;util&colon;&colon;CopyHeightIndexToHashIndex`]
| Copy an index entry from the height index to the hash index&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
