C# Class AcTools.LapTimes.LevelDbUtils.Iterator

An iterator yields a sequence of key/value pairs from a database.
Inheritance: LevelDbHandle
Afficher le fichier Open project: gro-ove/actools

Méthodes publiques

Méthode Description
IsValid ( ) : bool

An iterator is either positioned at a key/value pair, or not valid.

Key ( ) : byte[]

Return the key for the current entry. REQUIRES: Valid()

KeyAsInt ( ) : int

Return the key for the current entry. REQUIRES: Valid()

KeyAsString ( ) : string

Return the key for the current entry. REQUIRES: Valid()

Next ( ) : void

Moves to the next entry in the source. After this call, Valid() is true iff the iterator was not positioned at the last entry in the source. REQUIRES: Valid()

Prev ( ) : void

Moves to the previous entry in the source. After this call, Valid() is true iff the iterator was not positioned at the first entry in source. REQUIRES: Valid()

Seek ( byte key ) : void

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.

Seek ( int key ) : void

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.

Seek ( string key ) : void

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.

SeekToFirst ( ) : void

Position at the first key in the source. The iterator is Valid() after this call iff the source is not empty.

SeekToLast ( ) : void

Position at the last key in the source. The iterator is Valid() after this call iff the source is not empty.

Value ( ) : byte[]

Return the value for the current entry. REQUIRES: Valid()

ValueAsInts ( ) : int[]

Return the value for the current entry. REQUIRES: Valid()

ValueAsString ( ) : string

Return the value for the current entry. REQUIRES: Valid()

Méthodes protégées

Méthode Description
FreeUnManagedObjects ( ) : void

Private Methods

Méthode Description
Iterator ( IntPtr handle ) : System
Throw ( ) : void

If an error has occurred, throw it.

Throw ( Exception>.Func exception ) : void

If an error has occurred, throw it.

Method Details

FreeUnManagedObjects() protected méthode

protected FreeUnManagedObjects ( ) : void
Résultat void

IsValid() public méthode

An iterator is either positioned at a key/value pair, or not valid.
public IsValid ( ) : bool
Résultat bool

Key() public méthode

Return the key for the current entry. REQUIRES: Valid()
public Key ( ) : byte[]
Résultat byte[]

KeyAsInt() public méthode

Return the key for the current entry. REQUIRES: Valid()
public KeyAsInt ( ) : int
Résultat int

KeyAsString() public méthode

Return the key for the current entry. REQUIRES: Valid()
public KeyAsString ( ) : string
Résultat string

Next() public méthode

Moves to the next entry in the source. After this call, Valid() is true iff the iterator was not positioned at the last entry in the source. REQUIRES: Valid()
public Next ( ) : void
Résultat void

Prev() public méthode

Moves to the previous entry in the source. After this call, Valid() is true iff the iterator was not positioned at the first entry in source. REQUIRES: Valid()
public Prev ( ) : void
Résultat void

Seek() public méthode

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.
public Seek ( byte key ) : void
key byte
Résultat void

Seek() public méthode

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.
public Seek ( int key ) : void
key int
Résultat void

Seek() public méthode

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.
public Seek ( string key ) : void
key string
Résultat void

SeekToFirst() public méthode

Position at the first key in the source. The iterator is Valid() after this call iff the source is not empty.
public SeekToFirst ( ) : void
Résultat void

SeekToLast() public méthode

Position at the last key in the source. The iterator is Valid() after this call iff the source is not empty.
public SeekToLast ( ) : void
Résultat void

Value() public méthode

Return the value for the current entry. REQUIRES: Valid()
public Value ( ) : byte[]
Résultat byte[]

ValueAsInts() public méthode

Return the value for the current entry. REQUIRES: Valid()
public ValueAsInts ( ) : int[]
Résultat int[]

ValueAsString() public méthode

Return the value for the current entry. REQUIRES: Valid()
public ValueAsString ( ) : string
Résultat string