SequenceIter

The #GSequenceIter struct is an opaque data type representing an iterator pointing into a #GSequence.

Members

Functions

compare
int compare(glib.sequence_iter.SequenceIter b)

Returns a negative number if a comes before b, 0 if they are equal, and a positive number if a comes after b.

getPosition
int getPosition()

Returns the position of iter

getSequence
glib.sequence.Sequence getSequence()

Returns the #GSequence that iter points into.

isBegin
bool isBegin()

Returns whether iter is the begin iterator

isEnd
bool isEnd()

Returns whether iter is the end iterator

move
glib.sequence_iter.SequenceIter move(int delta)

Returns the #GSequenceIter which is delta positions away from iter. If iter is closer than -delta positions to the beginning of the sequence, the begin iterator is returned. If iter is closer than delta positions to the end of the sequence, the end iterator is returned.

next
glib.sequence_iter.SequenceIter next()

Returns an iterator pointing to the next position after iter. If iter is the end iterator, the end iterator is returned.

prev
glib.sequence_iter.SequenceIter prev()

Returns an iterator pointing to the previous position before iter. If iter is the begin iterator, the begin iterator is returned.