An abstract base class for value expressions. More...
#include <select_exp.h>
Public Member Functions | |
virtual std::ostream & | print (std::ostream &os, const Dv::Sql::Db &db) const =0 |
Print this expression on a stream, using escapes for column values. | |
virtual | ~value_exp () |
Destructor. | |
const Dv::Sql::Table::Set & | tables () const |
The set of tables involved in this expression. | |
Protected Member Functions | |
template<typename T > | |
void | add_table (const T &t) |
Add the table(s) mentioned in a (component) of an expression to the list of involved tables. | |
void | add_table (const Dv::Sql::Table::Column &c) |
Add the table of this column to the list of involved tables. | |
void | add_table (const Dv::Sql::value_exp &e) |
Add the tables involved in an expression to the list of involved tables. | |
Protected Attributes | |
Dv::Sql::Table::Set | tables_ |
Set of tables mentioned in this expression. |
An abstract base class for value expressions.
Definition at line 207 of file select_exp.h.
virtual Dv::Sql::value_exp::~value_exp | ( | ) | [inline, virtual] |
Destructor.
Definition at line 217 of file select_exp.h.
virtual std::ostream& Dv::Sql::value_exp::print | ( | std::ostream & | os, | |
const Dv::Sql::Db & | db | |||
) | const [pure virtual] |
Print this expression on a stream, using escapes for column values.
os | stream to print to | |
db | whose associated escape function will be used |
Implemented in Dv::Sql::unary_value_exp< L >, and Dv::Sql::binary_value_exp< L1, L2 >.
const Dv::Sql::Table::Set& Dv::Sql::value_exp::tables | ( | ) | const [inline] |
The set of tables involved in this expression.
Definition at line 221 of file select_exp.h.
References tables_.
void Dv::Sql::value_exp::add_table | ( | const T & | t | ) | [inline, protected] |
Add the table(s) mentioned in a (component) of an expression to the list of involved tables.
t | expression component |
Definition at line 232 of file select_exp.h.
void Dv::Sql::value_exp::add_table | ( | const Dv::Sql::Table::Column & | c | ) | [protected] |
Add the table of this column to the list of involved tables.
void Dv::Sql::value_exp::add_table | ( | const Dv::Sql::value_exp & | e | ) | [protected] |
Add the tables involved in an expression to the list of involved tables.
Dv::Sql::Table::Set Dv::Sql::value_exp::tables_ [protected] |
Set of tables mentioned in this expression.
Definition at line 225 of file select_exp.h.
Referenced by tables().
dvmysql-1.0.3 | [17 November, 2010] |