GLib.SequenceIter¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.SequenceIter- Returns:
a negative number if self comes before b, 0 if they are equal, and a positive number if self comes after b
- Return type:
Returns 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.
Added in version 2.14.
- get_position()[source]¶
- Returns:
the position of self
- Return type:
Returns the position of self
Added in version 2.14.
- get_sequence()[source]¶
- Returns:
the
GLib.Sequencethat self points into- Return type:
Returns the
GLib.Sequencethat self points into.Added in version 2.14.
- is_begin()[source]¶
- Returns:
whether self is the begin iterator
- Return type:
Returns whether self is the begin iterator
Added in version 2.14.
- is_end()[source]¶
- Returns:
Whether self is the end iterator
- Return type:
Returns whether self is the end iterator
Added 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 be- Returns:
a
GLib.SequenceIterwhich is delta positions away from self- Return type:
Returns 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.Added in version 2.14.
- next()[source]¶
- Returns:
a
GLib.SequenceIterpointing to the next position after self- Return type:
Returns an iterator pointing to the next position after self. If self is the end iterator, the end iterator is returned.
Added in version 2.14.
- prev()[source]¶
- Returns:
a
GLib.SequenceIterpointing to the previous position before self- Return type:
Returns an iterator pointing to the previous position before self. If self is the begin iterator, the begin iterator is returned.
Added in version 2.14.