Iterator
Object Hierarchy:
Vala.Iterator
Vala.Iterator
Vala.Iterator
Description:
public abstract class Iterator <G >
Implemented by classes that support a simple iteration over instances of the collection.
Content:
Properties:
public abstract bool valid { get ; }
Determines whether the call to
get is legal. It is false at the beginning and after
remove call and true otherwise.
Creation methods:
Methods:
public abstract G @get ()
Returns the current element in the iteration.
public abstract bool has_next ()
Checks whether there is a next element in the iteration.
public abstract bool next ()
Advances to the next element in the iteration.
public abstract void remove ()
Removes the current element in the iteration. The cursor is set in an
in-between state. Both get and remove
will fail until the next move of the cursor (calling next ).