TelepathyGLib.IntsetFastIter

Fields

None

Methods

init (set)

next (output)

Details

class TelepathyGLib.IntsetFastIter

An opaque structure representing iteration in undefined order over a set of integers. Must be initialized with TelepathyGLib.IntsetFastIter.init().

Before 0.11.16, this type was called TpIntSetFastIter, which is now a backwards compatibility typedef.

Usage is similar to GLib.HashTableIter:

TpIntsetFastIter iter;
guint element;

tp_intset_fast_iter_init (&iter, intset);

while (tp_intset_fast_iter_next (&iter, &element))
{
  printf ("%u is in the intset\n", element);
}

New in version 0.11.6.

init(set)
Parameters:

set (TelepathyGLib.Intset) – a set

Initialize self to iterate over set in arbitrary order. self will become invalid if set is modified.

New in version 0.11.6.

next(output)
Parameters:

output (int) – a location to store a new integer, in arbitrary order

Returns:

False if the end of the set has been reached

Return type:

bool

Advances self and retrieves the integer it now points to. Iteration is not necessarily in numerical order.

New in version 0.11.6.