|  |  |  | GNOME Data Access manual |  | 
|---|---|---|---|---|
| GdaDataModelArrayGdaDataModelArray — An implementation of GdaDataModel based on an array | 
            GdaDataModelArray;
            GdaDataModelArrayClass;
            GdaDataModelArrayPrivate;
GdaDataModel* gda_data_model_array_new      (gint cols);
GdaDataModel* gda_data_model_array_new_with_g_types
                                            (gint cols,
                                             ...);
GdaDataModel* gda_data_model_array_copy_model
                                            (GdaDataModel *src,
                                             GError **error);
void        gda_data_model_array_set_n_columns
                                            (GdaDataModelArray *model,
                                             gint cols);
void        gda_data_model_array_clear      (GdaDataModelArray *model);
GObject +----GdaObject +----GdaDataModelRow +----GdaDataModelArray +----GdaDataModelFilterSQL
typedef struct {
	GdaDataModelRowClass parent_class;
} GdaDataModelArrayClass;
GdaDataModel* gda_data_model_array_new (gint cols);
Creates a new GdaDataModel object without initializing the column
types. Using gda_data_model_array_new_with_g_types() is usually better.
| cols: | number of columns for rows in this data model. | 
| Returns : | a pointer to the newly created GdaDataModel. | 
GdaDataModel* gda_data_model_array_new_with_g_types (gint cols, ...);
Creates a new GdaDataModel object with the column types as specified.
| cols: | number of columns for rows in this data model. | 
| ...: | types of the columns of the model to create as GType | 
| Returns : | a pointer to the newly created GdaDataModel. | 
GdaDataModel* gda_data_model_array_copy_model (GdaDataModel *src, GError **error);
Makes a copy of src into a new GdaDataModelArray object
| src: | a GdaDataModel to copy data from | 
| error: | a place to store errors, or NULL | 
| Returns : | a new data model, or NULLif an error occurred | 
void        gda_data_model_array_set_n_columns
                                            (GdaDataModelArray *model,
                                             gint cols);
Sets the number of columns for rows inserted in this model. 
cols must be greated than or equal to 0.
Also clears model's contents.
| model: | the GdaDataModelArray. | 
| cols: | number of columns for rows this data model should use. | 
void gda_data_model_array_clear (GdaDataModelArray *model);
Frees all the rows in model.
| model: | the model to clear. |