Data
Object Hierarchy:
Description:
All known sub-classes:
Namespace: Grl
Package: grilo-0.3
Content:
Creation methods:
- public Data ()
Creates a new data object.
Methods:
- public unowned Value? @get (KeyID key)
Get the first value from this associated with
key
. - public void @set (KeyID key, Value value)
Sets the first value associated with
key
in this. - public void add_binary (KeyID key, uint8 buf, size_t size)
Appends a new binary value for
key
in this. - public void add_boxed (KeyID key, void* boxed)
Appends a new boxed value for
key
in this. - public void add_float (KeyID key, float floatvalue)
Appends a new float value for
key
in this. - public bool add_for_id (string key_name, Value value)
Appends the value associated with
key_name
to this. - public void add_int (KeyID key, int intvalue)
Appends a new int value for
key
in this. - public void add_int64 (KeyID key, int64 intvalue)
Appends a new int64 value for
key
in this. - public void add_related_keys (owned RelatedKeys relkeys)
Adds a new set of values into this.
- public void add_string (KeyID key, string strvalue)
Appends a new string value for
key
in this. - public Data dup ()
Makes a deep copy of this and all its contents.
- public uint8 get_binary (KeyID key, out size_t size)
Returns the first binary value associated with
key
from this. - public bool get_boolean (KeyID key)
- public void* get_boxed (KeyID key)
Returns the first boxed value associated with
key
from this. - public float get_float (KeyID key)
Returns the first float value associated with
key
from this. - public int get_int (KeyID key)
Returns the first int value associated with
key
from this. - public int64 get_int64 (KeyID key)
Returns the first int64 value associated with
key
from this. - public List<KeyID> get_keys ()
Returns a list with keys contained in this .
- public unowned RelatedKeys get_related_keys (KeyID key, uint index)
Returns a set containing the values for
key
and related keys at positionindex
from this. - public List<unowned Value?> get_single_values_for_key (KeyID key)
Returns all non-null values for
key
from this. - public List<unowned string> get_single_values_for_key_string (KeyID key)
Returns all non-null values for
key
from this. - public unowned string get_string (KeyID key)
Returns the first string value associated with
key
from this. - public bool has_key (KeyID key)
Checks if
key
is in this. - public uint length (KeyID key)
Returns how many values
key
or related keys have in this: ifkey
has no value, but a related key has, then it is counted as positive. - public void remove (KeyID key)
Removes the first value for
key
from this. - public void remove_nth (KeyID key, uint index)
Removes the value at position
index
forkey
from this. - public void set_binary (KeyID key, uint8 buf, size_t size)
Sets the first binary value associated with
key
in this. - public void set_boolean (KeyID key, bool boolvalue)
Sets the first boolean value associated with
key
in this. - public void set_boxed (KeyID key, void* boxed)
Sets the first boxed value associated with
key
in this. - public void set_float (KeyID key, float floatvalue)
Sets the first float value associated with
key
in this. - public bool set_for_id (string key_name, Value value)
Sets the first value associated with
key_name
in this. - public void set_int (KeyID key, int intvalue)
Sets the first int value associated with
key
in this. - public void set_int64 (KeyID key, int64 intvalue)
Sets the first int64 value associated with
key
in this. - public void set_related_keys (RelatedKeys relkeys, uint index)
Updates the values at position
index
in this with values inrelkeys
. - public void set_string (KeyID key, string strvalue)
Sets the first string value associated with
key
in this.
Fields:
- public unowned void*[] _grl_reserved
Inherited Members:
All known members inherited from class GLib.Object