T-slist

Gnome::Glib::T-slist

#------------------------------------------------------------------------------- #--[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-SList

class N-SList:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has gpointer $.data;
    has N-Object $.next;
  }
  • 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.

#------------------------------------------------------------------------------- #--[Standalone Functions]------------------------------------------------------- #-------------------------------------------------------------------------------

Standalone Functions

#-------------------------------------------------------------------------------

clear-slist

Clears a pointer to a Gnome::Glib::T-slist, freeing it and, optionally, freeing its elements using $destroy. $slist-ptr must be a valid pointer. If $slist-ptr points to a null Gnome::Glib::T-slist, this does nothing.

method clear-slist ( N-SList() $slist-ptr, &destroy )
  • $slist-ptr; a Gnome::Glib::T-slist 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 ).

Gnome::Glib v0.1.12

Modules for package Gnome::Glib:api<2>. The language binding to GNOME's lowest level library

Authors

    License

    Artistic-2.0

    Dependencies

    Gnome::N:api<2>

    Test Dependencies

    Provides

    • Gnome::Glib::N-Array
    • Gnome::Glib::N-ByteArray
    • Gnome::Glib::N-Bytes
    • Gnome::Glib::N-Error
    • Gnome::Glib::N-List
    • Gnome::Glib::N-MainContext
    • Gnome::Glib::N-MainLoop
    • Gnome::Glib::N-PtrArray
    • Gnome::Glib::N-SList
    • Gnome::Glib::N-Variant
    • Gnome::Glib::N-VariantBuilder
    • Gnome::Glib::N-VariantDict
    • Gnome::Glib::N-VariantIter
    • Gnome::Glib::N-VariantType
    • Gnome::Glib::T-array
    • Gnome::Glib::T-error
    • Gnome::Glib::T-list
    • Gnome::Glib::T-main
    • Gnome::Glib::T-quark
    • Gnome::Glib::T-slist
    • Gnome::Glib::T-variant
    • Gnome::Glib::T-varianttype

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.