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
Length
public uint Length { get; set; }
Property Value
Methods
Clear()
[Version("2.14")]
public void Clear()
Copy()
[Version("2.4")]
public Queue Copy()
Returns
DeleteLink(List)
[Version("2.4")]
public void DeleteLink(List link)
Parameters
link
List
Equals(Queue?)
public bool Equals(Queue? other)
Parameters
other
Queue
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Find(IntPtr)
[Version("2.4")]
public List Find(IntPtr data)
Parameters
data
IntPtr
Returns
FindCustom(IntPtr, CompareFunc)
[Version("2.4")]
public List FindCustom(IntPtr data, CompareFunc func)
Parameters
data
IntPtrfunc
CompareFunc
Returns
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
Index(IntPtr)
[Version("2.4")]
public int Index(IntPtr data)
Parameters
data
IntPtr
Returns
Init()
[Version("2.14")]
public void Init()
InsertAfter(List?, IntPtr)
[Version("2.4")]
public void InsertAfter(List? sibling, IntPtr data)
Parameters
InsertAfterLink(List?, List)
[Version("2.62")]
public void InsertAfterLink(List? sibling, List link)
Parameters
InsertBefore(List?, IntPtr)
[Version("2.4")]
public void InsertBefore(List? sibling, IntPtr data)
Parameters
InsertBeforeLink(List?, List)
[Version("2.62")]
public void InsertBeforeLink(List? sibling, List link)
Parameters
InsertSorted(IntPtr, CompareDataFunc)
[Version("2.4")]
public void InsertSorted(IntPtr data, CompareDataFunc func)
Parameters
data
IntPtrfunc
CompareDataFunc
IsEmpty()
public bool IsEmpty()
Returns
LinkIndex(List)
[Version("2.4")]
public int LinkIndex(List link)
Parameters
link
List
Returns
New()
public static Queue New()
Returns
PeekHead()
public IntPtr PeekHead()
Returns
PeekHeadLink()
[Version("2.4")]
public List PeekHeadLink()
Returns
PeekNth(uint)
[Version("2.4")]
public IntPtr PeekNth(uint n)
Parameters
n
uint
Returns
PeekNthLink(uint)
[Version("2.4")]
public List PeekNthLink(uint n)
Parameters
n
uint
Returns
PeekTail()
public IntPtr PeekTail()
Returns
PeekTailLink()
[Version("2.4")]
public List PeekTailLink()
Returns
PopHead()
public IntPtr PopHead()
Returns
PopHeadLink()
public List PopHeadLink()
Returns
PopNth(uint)
[Version("2.4")]
public IntPtr PopNth(uint n)
Parameters
n
uint
Returns
PopNthLink(uint)
[Version("2.4")]
public List PopNthLink(uint n)
Parameters
n
uint
Returns
PopTail()
public IntPtr PopTail()
Returns
PopTailLink()
public List PopTailLink()
Returns
PushHead(IntPtr)
public void PushHead(IntPtr data)
Parameters
data
IntPtr
PushHeadLink(List)
public void PushHeadLink(List link)
Parameters
link
List
PushNth(IntPtr, int)
[Version("2.4")]
public void PushNth(IntPtr data, int n)
Parameters
PushNthLink(int, List)
[Version("2.4")]
public void PushNthLink(int n, List link)
Parameters
PushTail(IntPtr)
public void PushTail(IntPtr data)
Parameters
data
IntPtr
PushTailLink(List)
public void PushTailLink(List link)
Parameters
link
List
Remove(IntPtr)
[Version("2.4")]
public bool Remove(IntPtr data)
Parameters
data
IntPtr
Returns
RemoveAll(IntPtr)
[Version("2.4")]
public uint RemoveAll(IntPtr data)
Parameters
data
IntPtr
Returns
Reverse()
[Version("2.4")]
public void Reverse()
Sort(CompareDataFunc)
[Version("2.4")]
public void Sort(CompareDataFunc compareFunc)
Parameters
compareFunc
CompareDataFunc
Unlink(List)
[Version("2.4")]
public void Unlink(List link)
Parameters
link
List