Table of Contents

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

TreeOwnedHandle

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 Tree

An object to compare with this object.

Returns

bool

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

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.

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

Type

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

int

Insert(IntPtr, IntPtr)

public void Insert(IntPtr key, IntPtr value)

Parameters

key IntPtr
value IntPtr

InsertNode(IntPtr, IntPtr)

[Version("2.68")]
public TreeNode? InsertNode(IntPtr key, IntPtr value)

Parameters

key IntPtr
value IntPtr

Returns

TreeNode

Lookup(IntPtr)

public IntPtr Lookup(IntPtr key)

Parameters

key IntPtr

Returns

IntPtr

LookupExtended(IntPtr, out IntPtr, out IntPtr)

public bool LookupExtended(IntPtr lookupKey, out IntPtr origKey, out IntPtr value)

Parameters

lookupKey IntPtr
origKey IntPtr
value IntPtr

Returns

bool

LookupNode(IntPtr)

[Version("2.68")]
public TreeNode? LookupNode(IntPtr key)

Parameters

key IntPtr

Returns

TreeNode

LowerBound(IntPtr)

[Version("2.68")]
public TreeNode? LowerBound(IntPtr key)

Parameters

key IntPtr

Returns

TreeNode

Nnodes()

public int Nnodes()

Returns

int

NodeFirst()

[Version("2.68")]
public TreeNode? NodeFirst()

Returns

TreeNode

NodeLast()

[Version("2.68")]
public TreeNode? NodeLast()

Returns

TreeNode

Ref()

[Version("2.22")]
public Tree Ref()

Returns

Tree

Remove(IntPtr)

public bool Remove(IntPtr key)

Parameters

key IntPtr

Returns

bool

RemoveAll()

[Version("2.70")]
public void RemoveAll()

Replace(IntPtr, IntPtr)

public void Replace(IntPtr key, IntPtr value)

Parameters

key IntPtr
value IntPtr

ReplaceNode(IntPtr, IntPtr)

[Version("2.68")]
public TreeNode? ReplaceNode(IntPtr key, IntPtr value)

Parameters

key IntPtr
value IntPtr

Returns

TreeNode

Search(CompareFunc)

public IntPtr Search(CompareFunc searchFunc)

Parameters

searchFunc CompareFunc

Returns

IntPtr

SearchNode(CompareFunc)

[Version("2.68")]
public TreeNode? SearchNode(CompareFunc searchFunc)

Parameters

searchFunc CompareFunc

Returns

TreeNode

Steal(IntPtr)

public bool Steal(IntPtr key)

Parameters

key IntPtr

Returns

bool

Traverse(TraverseFunc, TraverseType)

public void Traverse(TraverseFunc traverseFunc, TraverseType traverseType)

Parameters

traverseFunc TraverseFunc
traverseType TraverseType

Unref()

[Version("2.22")]
public void Unref()

UpperBound(IntPtr)

[Version("2.68")]
public TreeNode? UpperBound(IntPtr key)

Parameters

key IntPtr

Returns

TreeNode