MapIterator
Object Hierarchy:
Description:
public interface MapIterator<K,V> :
Object
An iterator over a map.
Gee's iterators are "on-track" iterators. They always point to an item except before the first call to
next or
first, or, when an item has been removed, until the next call
to next or
first.
Please note that when the iterator is out of track, neither
get_key,
get_value,
set_value nor
unset are defined and all will fail. After the next call to
next or
first, they will be defined again.
Namespace: Gee
Package: gee-1.0
Content:
Methods:
-
public abstract bool
next ()
Advances to the next entry in the iteration.
-
public abstract bool
has_next ()
Checks whether there is a next entry in the iteration.
-
public abstract bool
first ()
Rewinds to the first entry in the iteration.
-
public abstract K?
get_key ()
Returns the current key in the iteration.
-
public abstract V?
get_value ()
Returns the value associated with the current key in the iteration.
-
public abstract void
set_value (V? value)
Sets the value associated with the current key in the iteration.
-
public abstract void
unset ()