GLib.Datalist – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Datalist
Datalist
@foreach
clear
get_data
id_get_data
id_remove_data
id_remove_no_notify
id_set_data
id_set_data_full
remove_data
remove_no_notify
set_data
set_data_full
Datalist
Object Hierarchy:
Description:
public
struct
Datalist
<
G
>
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
Datalist
()
Resets the datalist to
null
.
Methods:
public
void
clear
()
Frees all the data elements of the datalist.
public
weak
G
id_get_data
(
Quark
key_id)
Retrieves the data element corresponding to
key_id
.
public
void
id_set_data
(
Quark
key_id,
owned
G
data)
public
void
id_set_data_full
(
Quark
key_id,
owned
G
data,
DestroyNotify
? destroy_func)
Sets the data corresponding to the given
Quark
id, and the function to be called when the element is removed from the datalist.
public
void
id_remove_data
(
Quark
key_id)
public
G
id_remove_no_notify
(
Quark
key_id)
Removes an element, without calling its destroy notification function.
public
void
@foreach
(
DataForeachFunc
func)
Calls the given function for each data element of the datalist.
public
weak
G
get_data
(
string
key)
Gets a data element, using its string identifier.
public
void
set_data_full
(
string
key,
owned
G
data,
DestroyNotify
? destry_func)
public
G
remove_no_notify
(
string
key)
public
void
set_data
(
string
key,
owned
G
data)
public
void
remove_data
(
string
key)