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
[ 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.
Namespace: HarfBuzz
Package: harfbuzz-gobject
Content:
Static methods:
- public static Set create ()
Creates a new, initially empty set.
- public static Set get_empty ()
Fetches the singleton empty Set.
Methods:
- public void @set (Set other)
Makes the contents of
setequal to the contents ofother. - public void add (Codepoint codepoint)
Adds
codepointtoset. - public void add_range (Codepoint first, Codepoint last)
Adds all of the elements from
firsttolast( inclusive) toset. - public void add_sorted_array (Codepoint[] sorted_codepoints)
Adds
sorted_codepoints.lengthcodepoints to a set at once. - public Bool allocation_successful ()
Tests whether memory allocation for a set was successful.
- public void clear ()
Clears out the contents of a set.
- public Set copy ()
Allocate a copy of
set. - public void del (Codepoint codepoint)
Removes
codepointfromset. - public void del_range (Codepoint first, Codepoint last)
Removes all of the elements from
firsttolast( inclusive) fromset. - 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
codepointbelongs toset. - public uint hash ()
Creates a hash representing
set. - public void intersect (Set other)
Makes
setthe intersection ofsetandother. - 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
setandotherare equal (contain the same elements). - public Bool is_inverted ()
Returns whether the set is inverted.
- public Bool is_subset (Set larger_set)
Tests whether
setis a subset oflarger_set. - public Bool next (ref Codepoint codepoint)
Fetches the next element in
setthat is greater than current value ofcodepoint. - public uint next_many (Codepoint codepoint, Codepoint[] @out)
Finds the next element in
setthat is greater thancodepoint. - public Bool next_range (out Codepoint first, ref Codepoint last)
Fetches the next consecutive range of elements in
setthat are greater than current value oflast. - public Bool previous (ref Codepoint codepoint)
Fetches the previous element in
setthat is lower than current value ofcodepoint. - public Bool previous_range (ref Codepoint first, out Codepoint last)
Fetches the previous consecutive range of elements in
setthat are greater than current value oflast. - public void subtract (Set other)
Subtracts the contents of
otherfromset. - public void symmetric_difference (Set other)
Makes
setthe symmetric difference ofsetandother. - public void union (Set other)
Makes
setthe union ofsetandother.