IndexIterFunc


Description:

[ CCode ( instance_pos = 2.9 ) ]
public delegate bool IndexIterFunc (string key, ResultSet rows)

The signature of the function passed to @foreach.

Be cautious if you plan on modifying the rows in the model via the DeeModelIters you find. Your code may have to be reentrant since the index may change in reaction to the changes in the model. It's not impossible to do this in a non-broken manner, but it may likely require you calling dee_model_freeze_signals and dee_model_thaw_signals at strategic points.

Parameters:

key

A key in the index being traversed

rows

A ResultSet. Do not free or modify.

userdata

The pointer passed to @foreach

Returns:

false if iteration should stop, true if it should continue


Namespace: Dee
Package: dee-1.0