| Top |
| guint | dee_result_set_get_n_rows () |
| DeeModelIter * | dee_result_set_next () |
| gboolean | dee_result_set_has_next () |
| DeeModelIter * | dee_result_set_peek () |
| void | dee_result_set_seek () |
| guint | dee_result_set_tell () |
| DeeModel * | dee_result_set_get_model () |
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().
guint
dee_result_set_get_n_rows (DeeResultSet *self);
Get the number of DeeModelIters held in a DeeResultSet.
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.
gboolean
dee_result_set_has_next (DeeResultSet *self);
Check if a call to dee_result_set_next() will succeed.
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
.
guint
dee_result_set_tell (DeeResultSet *self);
Get the current position of the cursor.
DeeModel *
dee_result_set_get_model (DeeResultSet *self);
Get the model associated with a result set