Table of Contents

Class Queue

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class Queue
Inheritance
Queue
Inherited Members

Constructors

Queue()

public Queue()

Queue(QueueOwnedHandle)

public Queue(QueueOwnedHandle handle)

Parameters

handle QueueOwnedHandle

Properties

Handle

public QueueOwnedHandle Handle { get; }

Property Value

QueueOwnedHandle

Length

public uint Length { get; set; }

Property Value

uint

Methods

Clear()

[Version("2.14")]
public void Clear()

Copy()

[Version("2.4")]
public Queue Copy()

Returns

Queue
[Version("2.4")]
public void DeleteLink(List link)

Parameters

link List

Equals(Queue?)

public bool Equals(Queue? other)

Parameters

other Queue

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Find(IntPtr)

[Version("2.4")]
public List Find(IntPtr data)

Parameters

data IntPtr

Returns

List

FindCustom(IntPtr, CompareFunc)

[Version("2.4")]
public List FindCustom(IntPtr data, CompareFunc func)

Parameters

data IntPtr
func CompareFunc

Returns

List

Foreach(Func)

[Version("2.4")]
public void Foreach(Func func)

Parameters

func Func

Free()

public void Free()

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetLength()

[Version("2.4")]
public uint GetLength()

Returns

uint

Index(IntPtr)

[Version("2.4")]
public int Index(IntPtr data)

Parameters

data IntPtr

Returns

int

Init()

[Version("2.14")]
public void Init()

InsertAfter(List?, IntPtr)

[Version("2.4")]
public void InsertAfter(List? sibling, IntPtr data)

Parameters

sibling List
data IntPtr
[Version("2.62")]
public void InsertAfterLink(List? sibling, List link)

Parameters

sibling List
link List

InsertBefore(List?, IntPtr)

[Version("2.4")]
public void InsertBefore(List? sibling, IntPtr data)

Parameters

sibling List
data IntPtr
[Version("2.62")]
public void InsertBeforeLink(List? sibling, List link)

Parameters

sibling List
link List

InsertSorted(IntPtr, CompareDataFunc)

[Version("2.4")]
public void InsertSorted(IntPtr data, CompareDataFunc func)

Parameters

data IntPtr
func CompareDataFunc

IsEmpty()

public bool IsEmpty()

Returns

bool

LinkIndex(List)

[Version("2.4")]
public int LinkIndex(List link)

Parameters

link List

Returns

int

New()

public static Queue New()

Returns

Queue

PeekHead()

public IntPtr PeekHead()

Returns

IntPtr
[Version("2.4")]
public List PeekHeadLink()

Returns

List

PeekNth(uint)

[Version("2.4")]
public IntPtr PeekNth(uint n)

Parameters

n uint

Returns

IntPtr
[Version("2.4")]
public List PeekNthLink(uint n)

Parameters

n uint

Returns

List

PeekTail()

public IntPtr PeekTail()

Returns

IntPtr
[Version("2.4")]
public List PeekTailLink()

Returns

List

PopHead()

public IntPtr PopHead()

Returns

IntPtr
public List PopHeadLink()

Returns

List

PopNth(uint)

[Version("2.4")]
public IntPtr PopNth(uint n)

Parameters

n uint

Returns

IntPtr
[Version("2.4")]
public List PopNthLink(uint n)

Parameters

n uint

Returns

List

PopTail()

public IntPtr PopTail()

Returns

IntPtr
public List PopTailLink()

Returns

List

PushHead(IntPtr)

public void PushHead(IntPtr data)

Parameters

data IntPtr
public void PushHeadLink(List link)

Parameters

link List

PushNth(IntPtr, int)

[Version("2.4")]
public void PushNth(IntPtr data, int n)

Parameters

data IntPtr
n int
[Version("2.4")]
public void PushNthLink(int n, List link)

Parameters

n int
link List

PushTail(IntPtr)

public void PushTail(IntPtr data)

Parameters

data IntPtr
public void PushTailLink(List link)

Parameters

link List

Remove(IntPtr)

[Version("2.4")]
public bool Remove(IntPtr data)

Parameters

data IntPtr

Returns

bool

RemoveAll(IntPtr)

[Version("2.4")]
public uint RemoveAll(IntPtr data)

Parameters

data IntPtr

Returns

uint

Reverse()

[Version("2.4")]
public void Reverse()

Sort(CompareDataFunc)

[Version("2.4")]
public void Sort(CompareDataFunc compareFunc)

Parameters

compareFunc CompareDataFunc
[Version("2.4")]
public void Unlink(List link)

Parameters

link List