Set
Object Hierarchy:
Description:
[ CCode ( cname = "hb_set_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "hb_gobject_set_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "set_t" ) ]
public class Set
Data type for holding a set of integers.
Set's are used to gather and contain glyph IDs, Unicode code points, and various other collections of
discrete values.
Content:
Static methods:
Methods:
- public void @set (Set other)
Makes the contents of set equal to the contents of
other.
- public void add (Codepoint codepoint)
Adds codepoint to set.
- public void add_range (Codepoint first, Codepoint last)
Adds all of the elements from first to last
(inclusive) to set.
- public Bool allocation_successful ()
Tests whether memory allocation for a set was successful.
- public void clear ()
Clears out the contents of a set.
- public void del (Codepoint codepoint)
Removes codepoint from set.
- public void del_range (Codepoint first, Codepoint last)
Removes all of the elements from first to last
(inclusive) from set.
- public Codepoint get_max ()
Finds the largest element in the set.
- public Codepoint get_min ()
Finds the smallest element in the set.
- public uint get_population ()
Returns the number of elements in the set.
- public Bool has (Codepoint codepoint)
Tests whether codepoint belongs to set.
- public void intersect (Set other)
Makes set the intersection of set and
other.
- public void invert ()
Inverts the contents of set.
- public Bool is_empty ()
Tests whether a set is empty (contains no elements).
- public Bool is_equal (Set other)
Tests whether set and other are equal (
contain the same elements).
- public Bool is_subset (Set larger_set)
Tests whether set is a subset of larger_set.
- public Bool next (ref Codepoint codepoint)
Fetches the next element in set that is greater than
current value of codepoint.
- public Bool next_range (out Codepoint first, ref Codepoint last)
Fetches the next consecutive range of elements in set
that are greater than current value of last.
- public Bool previous (ref Codepoint codepoint)
Fetches the previous element in set that is lower than
current value of codepoint.
- public Bool previous_range (ref Codepoint first, out Codepoint last)
Fetches the previous consecutive range of elements in set
that are greater than current value of last.
- public void subtract (Set other)
Subtracts the contents of other from set.
- public void symmetric_difference (Set other)
Makes set the symmetric difference of set
and other.
- public void union (Set other)
Makes set the union of set and other
.