Intset
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "tp_intset_get_type ()" ) ]
[ Compact ]
public class Intset
Opaque type representing a set of unsigned integers.
Before 0.11.16, this type was called TpIntSet
, which is now a backwards compatibility typedef.
Content:
Static methods:
Creation methods:
Methods:
- public void @foreach (IntFunc func)
Call func
(element, userdata
) for each element of
this, in order.
- public void add (uint element)
Add an integer into a TpIntset.
- public void clear ()
Unset every integer in the set.
- public Intset copy ()
- public void destroy ()
Free all memory used by the set.
- public Intset difference (Intset right)
- public void difference_update (Intset other)
Remove each integer in other
from
this, analogous to the bitwise operation self &= (~other).
- public string dump ()
- public Intset intersection (Intset right)
- public bool is_empty ()
Return the same thing as (tp_intset_size (set) == 0)
, but
calculated more efficiently.
- public bool is_equal (Intset right)
- public bool is_member (uint element)
Tests if element
is a member of this
- public bool remove (uint element)
Remove an integer from a TpIntset
- public uint size ()
- public Intset symmetric_difference (Intset right)
- public Array<uint> to_array ()
- public Intset union (Intset right)
- public void union_update (Intset other)
Add each integer in other
to this
, analogous to the bitwise operation self |= other.