Class

GrlData

Description

class Grl.Data : GObject.Object
{
  priv: GrlDataPrivate*,
  _grl_reserved: None
}
No description available.

Ancestors

Descendants

Constructors

grl_data_new

Creates a new data object.

since: 0.1.4

Instance methods

grl_data_add_binary

Appends a new binary value for key in data.

since: 0.1.10

grl_data_add_boxed

Appends a new boxed value for key in data.

since: 0.2.0

grl_data_add_float

Appends a new float value for key in data.

since: 0.1.10

grl_data_add_for_id

Appends the value associated with key_name to data. This key_name is used to create a new GParamSpec instance, which is further used to create and register a key using grl_registry_register_metadata_key().

since: 0.3.6

grl_data_add_int

Appends a new int value for key in data.

since: 0.1.10

grl_data_add_int64

Appends a new int64 value for key in data.

since: 0.2.12

grl_data_add_related_keys

Adds a new set of values into data.

since: 0.1.10

grl_data_add_string

Appends a new string value for key in data.

since: 0.1.10

grl_data_dup

Makes a deep copy of data and all its contents.

since: 0.1.10

grl_data_get

Get the first value from data associated with key.

since: 0.1.4

grl_data_get_binary

Returns the first binary value associated with key from data. If key has no first value, or value is not a gfloat, or key is not in data, then NULL is returned.

since: 0.1.9

grl_data_get_boolean
No description available.

since: 0.2.3

grl_data_get_boxed

Returns the first boxed value associated with key from data. If key has no first value, that value is not of a boxed type, or key is not in data, then NULL is returned.

since: 0.2.0

grl_data_get_float

Returns the first float value associated with key from data. If key has no first value, or value is not a gfloat, or key is not in data, then 0 is returned.

since: 0.1.5

grl_data_get_int

Returns the first int value associated with key from data. If key has no first value, or value is not a gint, or key is not in data, then 0 is returned.

since: 0.1.4

grl_data_get_int64

Returns the first int64 value associated with key from data. If key has no first value, or value is not a gint, or key is not in data, then 0 is returned.

since: 0.2.12

grl_data_get_keys

Returns a list with keys contained in data.

since: 0.1.4

grl_data_get_related_keys

Returns a set containing the values for key and related keys at position index from data.

since: 0.1.10

grl_data_get_single_values_for_key

Returns all non-NULL values for key from data. This ignores related keys.

since: 0.1.13

grl_data_get_single_values_for_key_string

Returns all non-NULL values for key from data. key must have been registered as a string-type key. This ignores related keys.

since: 0.1.13

grl_data_get_string

Returns the first string value associated with key from data. If key has no first value, or value is not string, or key is not in data, then NULL is returned.

since: 0.1.4

grl_data_has_key

Checks if key is in data.

since: 0.1.4

grl_data_length

Returns how many values key or related keys have in data: if key has no value, but a related key has, then it is counted as positive.

since: 0.1.10

grl_data_remove

Removes the first value for key from data. If there are other keys related to key their values will also be removed from data.

since: 0.1.4

grl_data_remove_nth

Removes the value at position index for key from data. If there are other keys related to key, their values at position index will also be removed from data.

since: 0.1.10

grl_data_set

Sets the first value associated with key in data. If key already has a value old value is freed and the new one is set.

since: 0.1.4

grl_data_set_binary

Sets the first binary value associated with key in data. If key already has a first value old value is replaced by the new one.

since: 0.1.9

grl_data_set_boolean

Sets the first boolean value associated with key in data. If key already has a first value, old value is replaced by the new one.

since: 0.2.3

grl_data_set_boxed

Sets the first boxed value associated with key in data. If key already has a value, the old value is freed and the new one is set.

since: 0.2.0

grl_data_set_float

Sets the first float value associated with key in data. If key already has a first value old value is replaced by the new one.

since: 0.1.5

grl_data_set_for_id

Sets the first value associated with key_name in data. This key_name is used to create a new GParamSpec instance, which is further used to create and register a key using grl_registry_register_metadata_key(). If key_name already has a first value, old value is replaced by the new one.

since: 0.3.6

grl_data_set_int

Sets the first int value associated with key in data. If key already has a first value old value is replaced by the new one.

since: 0.1.4

grl_data_set_int64

Sets the first int64 value associated with key in data. If key already has a first value old value is replaced by the new one.

since: 0.2.12

grl_data_set_related_keys

Updates the values at position index in data with values in relkeys.

since: 0.1.10

grl_data_set_string

Sets the first string value associated with key in data. If key already has a value old value is freed and the new one is set.

since: 0.1.4

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GrlDataClass {
  GObjectClass parent_class;
  
}

Grilo Data class.

Class members
parent_class: GObjectClass

The parent class structure.