GenericSet
Object Hierarchy:
Description:
[ Version ( since = "2.32" ) ]
[ Compact ]
[ CCode ( cname = "GHashTable" , lower_case_cprefix = "g_hash_table_" , ref_function = "g_hash_table_ref" , type_id = "G_TYPE_HASH_TABLE" , type_signature = "a{%s}" , unref_function = "g_hash_table_unref" ) ]
public class GenericSet<T>
The GenericSet struct is an opaque data structure to represent a Hash Table.
It should only be accessed via the following functions.
Content:
Properties:
Creation methods:
Methods:
- public void @foreach (Func<T> func)
- public void add (owned T value)
This is a convenience function for using a
GenericSet as a set.
- public bool contains (T valule)
Checks if key
is in hash_table
.
- public List<unowned T> get_values ()
- public GenericSetIter<T> iterator ()
- public bool remove (T value)
Removes a key and its associated value from a
GenericSet.
- public void remove_all ()
Removes all keys and their associated values from a
GenericSet.