libgdamm Reference Documentation
Main Page   Namespaces   Book  

Gnome::Gda::DataModelHash Class Reference
[Data Models]

An implementation of GdaDataModel based on a hash table. More...

Inheritance diagram for Gnome::Gda::DataModelHash:

[legend]
List of all members.

Public Member Functions

void clear ()
 Frees all the rows inserted in model .
const GdaDataModelHash* gobj () const
 Provides access to the underlying C GObject.
GdaDataModelHash* gobj ()
 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 insert_row (int rownum, const Glib::RefPtr<Row>& row)
 Inserts a row in the model .
void set_n_columns (int cols)
 Sets the number of columns for rows inserted in this model.
virtual ~DataModelHash ()

Static Public Member Functions

static Glib::RefPtr<DataModelHashcreate (int cols)

Protected Member Functions

 DataModelHash (int cols)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gnome::Gda::DataModelHashwrap (GdaDataModelHash* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Detailed Description

An implementation of GdaDataModel based on a hash table.


Constructor & Destructor Documentation

virtual Gnome::Gda::DataModelHash::~DataModelHash (  )  [virtual]

Gnome::Gda::DataModelHash::DataModelHash ( int  cols  )  [explicit, protected]


Member Function Documentation

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]

Provides access to the underlying C GObject.

Reimplemented from Gnome::Gda::DataModelRow.

GdaDataModelHash* Gnome::Gda::DataModelHash::gobj (  )  [inline]

Provides access to the underlying C GObject.

Reimplemented from Gnome::Gda::DataModelRow.

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 .

Parameters:
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.

Parameters:
cols The number of columns for rows inserted in model .


Friends And Related Function Documentation

Glib::RefPtr<Gnome::Gda::DataModelHash> wrap ( GdaDataModelHash *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
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.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated for libgdamm by Doxygen 1.5.1 © 1997-2001