Class Tree
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Tree : BoxedRecord, IEquatable<Tree>
- Inheritance
-
Tree
- Implements
- Inherited Members
Constructors
Tree(TreeOwnedHandle)
public Tree(TreeOwnedHandle handle)
Parameters
handle
TreeOwnedHandle
Properties
Handle
public TreeOwnedHandle Handle { get; }
Property Value
Methods
Destroy()
public void Destroy()
Equals(Tree?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Tree? other)
Parameters
other
TreeAn object to compare with this object.
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
Foreach(TraverseFunc)
public void Foreach(TraverseFunc func)
Parameters
func
TraverseFunc
ForeachNode(TraverseNodeFunc)
[Version("2.68")]
public void ForeachNode(TraverseNodeFunc func)
Parameters
func
TraverseNodeFunc
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Height()
public int Height()
Returns
Insert(IntPtr, IntPtr)
public void Insert(IntPtr key, IntPtr value)
Parameters
InsertNode(IntPtr, IntPtr)
[Version("2.68")]
public TreeNode? InsertNode(IntPtr key, IntPtr value)
Parameters
Returns
Lookup(IntPtr)
public IntPtr Lookup(IntPtr key)
Parameters
key
IntPtr
Returns
LookupExtended(IntPtr, out IntPtr, out IntPtr)
public bool LookupExtended(IntPtr lookupKey, out IntPtr origKey, out IntPtr value)
Parameters
Returns
LookupNode(IntPtr)
[Version("2.68")]
public TreeNode? LookupNode(IntPtr key)
Parameters
key
IntPtr
Returns
LowerBound(IntPtr)
[Version("2.68")]
public TreeNode? LowerBound(IntPtr key)
Parameters
key
IntPtr
Returns
Nnodes()
public int Nnodes()
Returns
NodeFirst()
[Version("2.68")]
public TreeNode? NodeFirst()
Returns
NodeLast()
[Version("2.68")]
public TreeNode? NodeLast()
Returns
Ref()
[Version("2.22")]
public Tree Ref()
Returns
Remove(IntPtr)
public bool Remove(IntPtr key)
Parameters
key
IntPtr
Returns
RemoveAll()
[Version("2.70")]
public void RemoveAll()
Replace(IntPtr, IntPtr)
public void Replace(IntPtr key, IntPtr value)
Parameters
ReplaceNode(IntPtr, IntPtr)
[Version("2.68")]
public TreeNode? ReplaceNode(IntPtr key, IntPtr value)
Parameters
Returns
Search(CompareFunc)
public IntPtr Search(CompareFunc searchFunc)
Parameters
searchFunc
CompareFunc
Returns
SearchNode(CompareFunc)
[Version("2.68")]
public TreeNode? SearchNode(CompareFunc searchFunc)
Parameters
searchFunc
CompareFunc
Returns
Steal(IntPtr)
public bool Steal(IntPtr key)
Parameters
key
IntPtr
Returns
Traverse(TraverseFunc, TraverseType)
public void Traverse(TraverseFunc traverseFunc, TraverseType traverseType)
Parameters
traverseFunc
TraverseFunctraverseType
TraverseType
Unref()
[Version("2.22")]
public void Unref()
UpperBound(IntPtr)
[Version("2.68")]
public TreeNode? UpperBound(IntPtr key)
Parameters
key
IntPtr