A Row<T>::Column object should be considered as a reference to a Table::Column object. More...
#include <row.h>
Public Member Functions | |
Column (size_t i) | |
Constructor. | |
const Dv::Sql::Table::Column & | convert () const |
Convert this object to a (reference to a) Table::Column object. | |
operator const Dv::Sql::Table::Column & () const | |
Convert this object to a (reference to a) Table::Column object. |
A Row<T>::Column object should be considered as a reference to a Table::Column object.
This class is useful because a Row<T>::Column object can be meaningfully initialized (i.e. with static storage) before the associated database is actually opened while Table::Column objects need an open database.
Definition at line 130 of file row.h.
Dv::Sql::Row< database_table >::Column::Column | ( | size_t | i | ) | [inline] |
const Dv::Sql::Table::Column& Dv::Sql::Row< database_table >::Column::convert | ( | ) | const [inline] |
Convert this object to a (reference to a) Table::Column object.
Definition at line 136 of file row.h.
References Dv::Sql::Column::index().
Referenced by Dv::Sql::Row< database_table >::Column::operator const Dv::Sql::Table::Column &().
Dv::Sql::Row< database_table >::Column::operator const Dv::Sql::Table::Column & | ( | ) | const [inline] |
Convert this object to a (reference to a) Table::Column object.
Note that this conversion function is necessary in order to support select expressions such as in
Dv::Sql::Row<Database::customer>::Column Customer::id(0); Customer::Row cust(Customer::id == cust_id)
std::logic_error | if the database_table (template parameter) is 0. |
Definition at line 158 of file row.h.
References Dv::Sql::Row< database_table >::Column::convert().
dvmysql-1.0.3 | [17 November, 2010] |