Dictionary
Object Hierarchy:
Description:
Opaque Dictionary data structure.
All known sub-classes:
Namespace: GSignond
Package: gsignond
Content:
Creation methods:
- public Dictionary ()
Creates a new instance of Dictionary.
- public Dictionary.from_variant (Variant variant)
Converts the Variant to Dictionary.
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