Map
Object Hierarchy:
Description:
[ CCode ( cname = "hb_map_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "hb_gobject_map_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "map_t" ) ]
public class Map
Data type for holding integer-to-integer hash maps.
Content:
Static methods:
Methods:
- public Codepoint @get (Codepoint key)
Fetches the value stored for key in map.
- public void @set (Codepoint key, Codepoint value)
Stores key:value in the map.
- public Bool allocation_successful ()
Tests whether memory allocation for a set was successful.
- public void clear ()
Clears out the contents of map.
- public Map copy ()
Allocate a copy of map.
- public void del (Codepoint key)
Removes key and its stored value from map.
- public uint get_population ()
Returns the number of key-value pairs in the map.
- public Bool has (Codepoint key)
Tests whether key is an element of map.
- public uint hash ()
Creates a hash representing map.
- public Bool is_empty ()
Tests whether map is empty (contains no elements).
- public Bool is_equal (Map other)
Tests whether map and other are equal (contain the
same elements).
- public void keys (Set keys)
Add the keys of map to keys.
- public Bool next (ref int idx, out Codepoint key, out Codepoint value)
Fetches the next key/value paire in map.
- public void update (Map other)
Add the contents of other to map.
- public void values (Set values)
Add the values of map to values.