insert_row_sorted


Description:

public abstract unowned ModelIter insert_row_sorted (Variant[] row_members, CompareRowFunc cmp_func)

Inserts a row in this according to the sorting specified by cmp_func.

If you use this method for insertion you should not use other methods as this method assumes the model to be already sorted by cmp_func.

Parameters:

this

The model to do a sorted insert on

row_members

An array of Variants with type signature matching those of the column schemas of this. If any of the variants have floating references they will be consumed.

cmp_func

Callback used for comparison or rows

user_data

Arbitrary pointer passed to cmp_func during search

Returns:

A ModelIter pointing to the new row




2022 vala-language.org