HashTableIter

class HashTableIter(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null) : ProxyInstance

A GHashTableIter structure represents an iterator that can be used to iterate over the elements of a #GHashTable. GHashTableIter structures are typically allocated on the stack and then initialized with g_hash_table_iter_init().

The iteration order of a #GHashTableIter over the keys/values in a hash table is not defined.

Skipped during bindings generation

  • parameter key: key: Out parameter is not supported

Constructors

Link copied to clipboard
constructor()

Allocate a new HashTableIter.

constructor(scope: <Error class: unknown class>)

Allocate a new HashTableIter using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val glibHashTableIterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard

Returns the #GHashTable associated with @iter.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun init(hashTable: HashTable)

Initializes a key/value pair iterator and associates it with

Link copied to clipboard
fun remove()

Removes the key/value pair currently pointed to by the iterator from its associated #GHashTable. Can only be called after g_hash_table_iter_next() returned true, and cannot be called more than once for the same key/value pair.

Link copied to clipboard
fun replace(value: <Error class: unknown class>? = null)

Replaces the value currently pointed to by the iterator from its associated #GHashTable. Can only be called after g_hash_table_iter_next() returned true.

Link copied to clipboard
fun steal()

Removes the key/value pair currently pointed to by the iterator from its associated #GHashTable, without calling the key and value destroy functions. Can only be called after g_hash_table_iter_next() returned true, and cannot be called more than once for the same key/value pair.