Tuples

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

The #GTuples struct is used to return records (or tuples) from the #GRelation by g_relation_select(). It only contains one public member - the number of records that matched. To access the matched records, you must use g_tuples_index().

Constructors

Link copied to clipboard
constructor()

Allocate a new Tuples.

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

Allocate a new Tuples using the provided AutofreeScope.

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

Allocate a new Tuples.

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

Allocate a new Tuples 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 glibTuplesPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?
Link copied to clipboard
var len: <Error class: unknown class>

the number of records that matched.

Functions

Link copied to clipboard
fun destroy()

Frees the records which were returned by g_relation_select(). This should always be called after g_relation_select() when you are finished with the records. The records are not removed from the #GRelation.

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
open override fun hashCode(): Int
Link copied to clipboard
fun index(index: <Error class: unknown class>, field: <Error class: unknown class>): <Error class: unknown class>?

Gets a field from the records returned by g_relation_select(). It returns the given field of the record at the given index. The returned value should not be changed.

Link copied to clipboard
open override fun toString(): String