#include <datamodelindex.h>
Public Member Functions | |
DataModelIndex () | |
DataModelIndex (GdaDataModelIndex* gobject, bool make_a_copy=true) | |
DataModelIndex (const DataModelIndex& other) | |
DataModelIndex& | operator= (const DataModelIndex& other) |
~DataModelIndex () | |
void | swap (DataModelIndex& other) |
GdaDataModelIndex* | gobj () |
Provides access to the underlying C instance. | |
const GdaDataModelIndex* | gobj () const |
Provides access to the underlying C instance. | |
GdaDataModelIndex* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
Glib::ustring | get_name () const |
void | gda_data_set_name (const Glib::ustring& name) |
Sets the name of dmi to name . | |
Glib::ustring | get_table_name () const |
void | set_table_name (const Glib::ustring& name) |
Sets the table name of dmi to table_name . | |
bool | get_primary_key () const |
void | set_primary_key (bool pk=true) |
Sets if a Gda::DataModelIndex is a primary key. | |
bool | get_unique_key () const |
void | set_unique_key (bool uk=true) |
Sets if a Gda::DataModelIndex is a unique key. | |
Glib::ustring | get_references () const |
void | set_references (const Glib::ustring& ref) |
Sets dmi 's references . | |
Protected Attributes | |
GdaDataModelIndex* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const DataModelIndex& lhs, const DataModelIndex& rhs) |
bool | operator!= (const DataModelIndex& lhs, const DataModelIndex& rhs) |
void | swap (DataModelIndex& lhs, DataModelIndex& rhs) |
Gnome::Gda::DataModelIndex | wrap (GdaDataModelIndex* object, bool take_copy=false) |
Gnome::Gda::DataModelIndex::DataModelIndex | ( | ) |
Gnome::Gda::DataModelIndex::DataModelIndex | ( | GdaDataModelIndex * | gobject, | |
bool | make_a_copy = true | |||
) | [explicit] |
Gnome::Gda::DataModelIndex::DataModelIndex | ( | const DataModelIndex& | other | ) |
Gnome::Gda::DataModelIndex::~DataModelIndex | ( | ) |
void Gnome::Gda::DataModelIndex::gda_data_set_name | ( | const Glib::ustring & | name | ) |
Sets the name of dmi to name .
name | The new name of dmi . |
Glib::ustring Gnome::Gda::DataModelIndex::get_name | ( | ) | const |
bool Gnome::Gda::DataModelIndex::get_primary_key | ( | ) | const |
true
if primary key. Glib::ustring Gnome::Gda::DataModelIndex::get_references | ( | ) | const |
Glib::ustring Gnome::Gda::DataModelIndex::get_table_name | ( | ) | const |
bool Gnome::Gda::DataModelIndex::get_unique_key | ( | ) | const |
true
if unique key. const GdaDataModelIndex* Gnome::Gda::DataModelIndex::gobj | ( | ) | const [inline] |
Provides access to the underlying C instance.
GdaDataModelIndex* Gnome::Gda::DataModelIndex::gobj | ( | ) | [inline] |
Provides access to the underlying C instance.
GdaDataModelIndex* Gnome::Gda::DataModelIndex::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
DataModelIndex& Gnome::Gda::DataModelIndex::operator= | ( | const DataModelIndex& | other | ) |
void Gnome::Gda::DataModelIndex::set_primary_key | ( | bool | pk = true |
) |
void Gnome::Gda::DataModelIndex::set_references | ( | const Glib::ustring & | ref | ) |
Sets dmi 's references .
ref | References. |
void Gnome::Gda::DataModelIndex::set_table_name | ( | const Glib::ustring & | name | ) |
Sets the table name of dmi to table_name .
name | The new name of dmi . |
void Gnome::Gda::DataModelIndex::set_unique_key | ( | bool | uk = true |
) |
void Gnome::Gda::DataModelIndex::swap | ( | DataModelIndex& | other | ) |
bool operator!= | ( | const DataModelIndex& | lhs, | |
const DataModelIndex& | rhs | |||
) | [related] |
lhs | The left-hand side | |
rhs | The right-hand side |
bool operator== | ( | const DataModelIndex& | lhs, | |
const DataModelIndex& | rhs | |||
) | [related] |
lhs | The left-hand side | |
rhs | The right-hand side |
void swap | ( | DataModelIndex& | lhs, | |
DataModelIndex& | rhs | |||
) | [related] |
lhs | The left-hand side | |
rhs | The right-hand side |
Gnome::Gda::DataModelIndex wrap | ( | GdaDataModelIndex * | 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. |
GdaDataModelIndex* Gnome::Gda::DataModelIndex::gobject_ [protected] |