Top | ![]() |
![]() |
![]() |
![]() |
DeeModel * | dee_result_set_get_model () |
guint | dee_result_set_get_n_rows () |
gboolean | dee_result_set_has_next () |
DeeModelIter * | dee_result_set_next () |
DeeModelIter * | dee_result_set_peek () |
void | dee_result_set_seek () |
guint | dee_result_set_tell () |
Interface for results returned by dee_index_lookup()
.
This interface utilizes a cursor-like metaphor. You advance the cursor
by calling dee_result_set_next()
or adjust it manually by calling
dee_result_set_seek()
.
Calling dee_result_set_next()
will also return the row at the
current cursor position. You may retrieve the current row without advancing
the cursor by calling dee_result_set_peek()
.
DeeModel *
dee_result_set_get_model (DeeResultSet *self
);
Get the model associated with a result set
guint
dee_result_set_get_n_rows (DeeResultSet *self
);
Get the number of DeeModelIters held in a DeeResultSet.
gboolean
dee_result_set_has_next (DeeResultSet *self
);
Check if a call to dee_result_set_next()
will succeed.
DeeModelIter *
dee_result_set_next (DeeResultSet *self
);
Get the current row from the result set and advance the cursor.
To ensure that calls to this method will succeed you can call
dee_result_set_has_next()
.
To retrieve the current row without advancing the cursor call
dee_result_set_peek()
in stead of this method.
DeeModelIter *
dee_result_set_peek (DeeResultSet *self
);
Get the row at the current cursor position.
To retrieve the current row and advance the cursor position call
dee_result_set_next()
in stead of this method.
void dee_result_set_seek (DeeResultSet *self
,guint pos
);
Set the cursor position. Following calls to dee_result_set_peek()
or dee_result_set_next()
will read the row at position pos
.
struct DeeResultSetIface { GTypeInterface g_iface; guint (*get_n_rows) (DeeResultSet *self); DeeModelIter* (*next) (DeeResultSet *self); gboolean (*has_next) (DeeResultSet *self); DeeModelIter* (*peek) (DeeResultSet *self); void (*seek) (DeeResultSet *self, guint pos); guint (*tell) (DeeResultSet *self); DeeModel* (*get_model) (DeeResultSet *self); };