#include <datamodelhash.h>
Inheritance diagram for Gnome::Gda::DataModelHash:
Public Member Functions | |
virtual | ~DataModelHash () |
GdaDataModelHash* | gobj () |
Provides access to the underlying C GObject. | |
const GdaDataModelHash* | gobj () const |
Provides access to the underlying C GObject. | |
GdaDataModelHash* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | set_n_columns (int cols) |
Sets the number of columns for rows inserted in this model. | |
void | clear () |
Frees all the rows inserted in model . | |
void | insert_row (int rownum, const Glib::RefPtr<Row>& row) |
Inserts a row in the model . | |
Static Public Member Functions | |
static Glib::RefPtr<DataModelHash> | create (int cols) |
Protected Member Functions | |
DataModelHash (int cols) | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gnome::Gda::DataModelHash> | wrap (GdaDataModelHash* object, bool take_copy=false) |
virtual Gnome::Gda::DataModelHash::~DataModelHash | ( | ) | [virtual] |
Gnome::Gda::DataModelHash::DataModelHash | ( | int | cols | ) | [explicit, protected] |
void Gnome::Gda::DataModelHash::clear | ( | ) |
Frees all the rows inserted in model .
static Glib::RefPtr<DataModelHash> Gnome::Gda::DataModelHash::create | ( | int | cols | ) | [static] |
const GdaDataModelHash* Gnome::Gda::DataModelHash::gobj | ( | ) | const [inline] |
GdaDataModelHash* Gnome::Gda::DataModelHash::gobj | ( | ) | [inline] |
GdaDataModelHash* Gnome::Gda::DataModelHash::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Reimplemented from Gnome::Gda::DataModelRow.
void Gnome::Gda::DataModelHash::insert_row | ( | int | rownum, | |
const Glib::RefPtr<Row>& | row | |||
) |
Inserts a row in the model .
rownum | The number of the row. | |
row | The row to insert. The model is responsible of freeing it!. |
void Gnome::Gda::DataModelHash::set_n_columns | ( | int | 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.
cols | The number of columns for rows inserted in model . |
Glib::RefPtr<Gnome::Gda::DataModelHash> wrap | ( | GdaDataModelHash * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |