GLib.SList – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
SList
SList
@foreach
append
concat
copy
copy_deep
delete_link
find
find_custom
index
insert
insert_before
insert_sorted
insert_sorted_with_data
last
length
nth
nth_data
position
prepend
remove
remove_all
remove_link
reverse
search
sort
sort_with_data
data
next
SList
Object Hierarchy:
Description:
[
Compact
]
public
class
SList
<
G
>
Namespace:
GLib
Package:
glib-2.0
Content:
Creation methods:
public
SList
()
Methods:
public
void
append
(
owned
G
data)
public
void
prepend
(
owned
G
data)
public
void
insert
(
owned
G
data,
int
position)
public
void
insert_before
(
SList
<
G
> sibling,
owned
G
data)
public
void
insert_sorted
(
owned
G
data,
CompareFunc
<
G
> compare_func)
public
void
remove
(
G
data)
public
void
remove_link
(
SList
<
G
> llink)
public
void
delete_link
(
SList
<
G
> link_)
public
void
remove_all
(
G
data)
public
uint
length
()
public
SList
<
weak
G
>
copy
()
public
SList
<
G
>
copy_deep
(
CopyFunc
<
G
> func)
public
void
reverse
()
public
void
insert_sorted_with_data
(
owned
G
data,
CompareDataFunc
<
G
> compare_func)
public
void
sort
(
CompareFunc
<
G
> compare_func)
public
void
sort_with_data
(
CompareDataFunc
<
G
> compare_func)
public
void
concat
(
owned
SList
<
G
> list2)
public
void
@foreach
(
Func
<
G
> func)
public
unowned
SList
<
G
>
last
()
public
unowned
SList
<
G
>
nth
(
uint
n)
public
weak
G
nth_data
(
uint
n)
public
unowned
SList
<
G
>
find
(
G
data)
public
unowned
SList
<
G
>
find_custom
(
G
data,
CompareFunc
<
G
> func)
public
unowned
SList
<
G
>
search
<
T
> (
T
data,
SearchFunc
<
G
,
T
> func)
public
int
position
(
SList
<
G
> llink)
public
int
index
(
G
data)
Fields:
public
G
data
public
SList
<
G
>
next