Table of Contents

Class HashTable

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class HashTable : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<HashTable>, IDisposable
Inheritance
HashTable
Implements
Inherited Members

Constructors

HashTable(HashTableOwnedHandle)

public HashTable(HashTableOwnedHandle handle)

Parameters

handle HashTableOwnedHandle

Properties

Handle

public HashTableOwnedHandle Handle { get; }

Property Value

HashTableOwnedHandle

Methods

Add(HashTable, nint)

[Version("2.32")]
public static bool Add(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

Contains(HashTable, nint)

[Version("2.32")]
public static bool Contains(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

Destroy(HashTable)

public static void Destroy(HashTable hashTable)

Parameters

hashTable HashTable

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(HashTable?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(HashTable? other)

Parameters

other HashTable

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.

Find(HashTable, HRFunc)

[Version("2.4")]
public static nint Find(HashTable hashTable, HRFunc predicate)

Parameters

hashTable HashTable
predicate HRFunc

Returns

nint

Foreach(HashTable, HFunc)

public static void Foreach(HashTable hashTable, HFunc func)

Parameters

hashTable HashTable
func HFunc

ForeachRemove(HashTable, HRFunc)

public static uint ForeachRemove(HashTable hashTable, HRFunc func)

Parameters

hashTable HashTable
func HRFunc

Returns

uint

ForeachSteal(HashTable, HRFunc)

public static uint ForeachSteal(HashTable hashTable, HRFunc func)

Parameters

hashTable HashTable
func HRFunc

Returns

uint

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.

Insert(HashTable, nint, nint)

public static bool Insert(HashTable hashTable, nint key, nint value)

Parameters

hashTable HashTable
key nint
value nint

Returns

bool

Lookup(HashTable, nint)

public static nint Lookup(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

nint

LookupExtended(HashTable, nint, out nint, out nint)

public static bool LookupExtended(HashTable hashTable, nint lookupKey, out nint origKey, out nint value)

Parameters

hashTable HashTable
lookupKey nint
origKey nint
value nint

Returns

bool

NewSimilar(HashTable)

[Version("2.72")]
public static HashTable NewSimilar(HashTable otherHashTable)

Parameters

otherHashTable HashTable

Returns

HashTable

Ref(HashTable)

[Version("2.10")]
public static HashTable Ref(HashTable hashTable)

Parameters

hashTable HashTable

Returns

HashTable

Remove(HashTable, nint)

public static bool Remove(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

RemoveAll(HashTable)

[Version("2.12")]
public static void RemoveAll(HashTable hashTable)

Parameters

hashTable HashTable

Replace(HashTable, nint, nint)

public static bool Replace(HashTable hashTable, nint key, nint value)

Parameters

hashTable HashTable
key nint
value nint

Returns

bool

Size(HashTable)

public static uint Size(HashTable hashTable)

Parameters

hashTable HashTable

Returns

uint

Steal(HashTable, nint)

public static bool Steal(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

StealAll(HashTable)

[Version("2.12")]
public static void StealAll(HashTable hashTable)

Parameters

hashTable HashTable

StealExtended(HashTable, nint, out nint, out nint)

[Version("2.58")]
public static bool StealExtended(HashTable hashTable, nint lookupKey, out nint stolenKey, out nint stolenValue)

Parameters

hashTable HashTable
lookupKey nint
stolenKey nint
stolenValue nint

Returns

bool

Unref(HashTable)

[Version("2.10")]
public static void Unref(HashTable hashTable)

Parameters

hashTable HashTable