NO_TITLE
Table of Contents
Gnome::Glib::T-list§
Class initialization§
new§
Initialization of a type class is simple and only needed when the standalone functions are used.
method new ( )
Code
Record N-List§
class N-List:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has gpointer $.data;
has N-Object $.next;
has N-Object $.prev;
}
Code
- data; holds the element's data, which can be a pointer to any kind of data, or any integer value using the Type Conversion Macros
- next; contains the link to the next element in the list
- prev; contains the link to the previous element in the list
Standalone Functions§
clear-list§
Clears a pointer to a Gnome::Glib::T-list, freeing it and, optionally, freeing its elements using $destroy. $list-ptr must be a valid pointer. If $list-ptr points to a null Gnome::Glib::T-list, this does nothing.
method clear-list ( N-List() $list-ptr, &destroy )
Code
- $list-ptr; a Gnome::Glib::T-list return location.
- &destroy; the function to pass to .free-full() or undefined to not free elements. Tthe function must be specified with following signature; :( gpointer $data ).
About my projects, examples and tutorials