GLib.SequenceIter¶
Fields¶
None
Methods¶
compare (b) |
|
get_position () |
|
get_sequence () |
|
is_begin () |
|
is_end () |
|
move (delta) |
|
next () |
|
prev () |
Details¶
-
class
GLib.SequenceIter¶ The
GLib.SequenceIterstruct is an opaque data type representing an iterator pointing into aGLib.Sequence.-
compare(b)[source]¶ Parameters: b ( GLib.SequenceIter) – aGLib.SequenceIterReturns: a negative number if self comes before b, 0 if they are equal, and a positive number if self comes after b Return type: intReturns a negative number if self comes before b, 0 if they are equal, and a positive number if self comes after b.
The self and b iterators must point into the same sequence.
New in version 2.14.
-
get_position()[source]¶ Returns: the position of self Return type: intReturns the position of self
New in version 2.14.
-
get_sequence()[source]¶ Returns: the GLib.Sequencethat self points intoReturn type: GLib.SequenceReturns the
GLib.Sequencethat self points into.New in version 2.14.
-
is_begin()[source]¶ Returns: whether self is the begin iterator Return type: boolReturns whether self is the begin iterator
New in version 2.14.
-
is_end()[source]¶ Returns: Whether self is the end iterator Return type: boolReturns whether self is the end iterator
New in version 2.14.
-
move(delta)[source]¶ Parameters: delta ( int) – A positive or negative number indicating how many positions away from self the returnedGLib.SequenceIterwill beReturns: a GLib.SequenceIterwhich is delta positions away from selfReturn type: GLib.SequenceIterReturns the
GLib.SequenceIterwhich is delta positions away from self. If self is closer than -delta positions to the beginning of the sequence, the begin iterator is returned. If self is closer than delta positions to the end of the sequence, the end iterator is returned.New in version 2.14.
-
next()[source]¶ Returns: a GLib.SequenceIterpointing to the next position after selfReturn type: GLib.SequenceIterReturns an iterator pointing to the next position after self. If self is the end iterator, the end iterator is returned.
New in version 2.14.
-
prev()[source]¶ Returns: a GLib.SequenceIterpointing to the previous position before selfReturn type: GLib.SequenceIterReturns an iterator pointing to the previous position before self. If self is the begin iterator, the begin iterator is returned.
New in version 2.14.
-