Dictionary
Object Hierarchy:
Description:
[ CCode ( type_id = "gsignond_dictionary_get_type ()" ) ]
public class Dictionary : Object
Opaque Dictionary data structure.
Content:
Creation methods:
Methods:
- public unowned Variant? @get (string key)
Retrieves a Variant value from the
dictionary.
- public bool @set (string key, Variant value)
Adds or replaces key-value pair in the dictionary.
- public bool contains (string key)
Checks if the this contains
key
.
- public Dictionary copy ()
Creates a copy of the dictionary.
- public bool get_boolean (string key, out bool value)
Retrieves a gboolean value.
- public bool get_int32 (string key, out int value)
Retrieves a int32 value.
- public bool get_int64 (string key, out int64 value)
Retrieves a int64 value.
- public unowned string? get_string (string key)
Retrieves a string value.
- public unowned HashTable<string,Variant> get_table ()
Get the GenericSet associated to the
Dictionary.
- public bool get_uint32 (string key, out uint value)
Retrieves a uint32 value.
- public bool get_uint64 (string key, out uint64 value)
Retrieves a uint64 value.
- public bool remove (string key)
Removes key-value pair in the dictionary as per key.
- public bool set_boolean (string key, bool value)
Sets or replaces a gboolean value in the dictionary.
- public bool set_int32 (string key, int value)
Sets or replaces a int32 value in the dictionary.
- public bool set_int64 (string key, int64 value)
Sets or replaces a int64 value in the dictionary.
- public bool set_string (string key, string value)
Sets or replaces a string value in the dictionary.
- public bool set_uint32 (string key, uint32 value)
Sets or replaces a uint32 value in the dictionary.
- public bool set_uint64 (string key, uint64 value)
Sets or replaces a uint64 value in the dictionary.
- public Variant? to_variant ()
Converts the Dictionary to a
Variant.
- public VariantBuilder? to_variant_builder ()
Converts the Dictionary to a
VariantBuilder of type G_VARIANT_TYPE_VARDICT.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref