Top | ![]() |
![]() |
![]() |
![]() |
GdaDataModelHashGdaDataModelHash — An implementation of GdaDataModel based on a hash table |
GdaDataModel * | gda_data_model_hash_new () |
void | gda_data_model_hash_insert_row () |
void | gda_data_model_hash_set_n_columns () |
void | gda_data_model_hash_clear () |
Unlike GdaDataModelArray, this data model implementation stores the GdaRow in a hash table.
void gda_data_model_hash_insert_row (GdaDataModelHash *model
,gint rownum
,GdaRow *row
);
Inserts a row
in the model
.
model |
the GdaDataModelHash which is gonna hold the row. |
|
rownum |
the number of the row. |
|
row |
the row to insert. The model is responsible for freeing it with |
void gda_data_model_hash_set_n_columns (GdaDataModelHash *model
,gint cols
);
Sets the number of columns for rows inserted in this model.
cols
must be greater than or equal to 0.
Also clears model
's contents.
This function calls gda_data_model_hash_clear to free the existing rows if any.
void
gda_data_model_hash_clear (GdaDataModelHash *model
);
Frees all the rows inserted in model
.