T-list
Gnome::Glib::T-list
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
Initialization of a type class is simple and only needed when the standalone functions are used.
method new ( )
#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------
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;
}
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]------------------------------------------------------- #-------------------------------------------------------------------------------
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 )
$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 ).