Dv::Sql::value_exp Class Reference

An abstract base class for value expressions. More...

#include <select_exp.h>

Inheritance diagram for Dv::Sql::value_exp:
Inheritance graph
[legend]

List of all members.

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::Settables () 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.

Detailed Description

An abstract base class for value expressions.

Definition at line 207 of file select_exp.h.


Constructor & Destructor Documentation

virtual Dv::Sql::value_exp::~value_exp (  )  [inline, virtual]

Destructor.

Definition at line 217 of file select_exp.h.


Member Function Documentation

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.

Parameters:
os stream to print to
db whose associated escape function will be used
Returns:
os

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.

Returns:
the set of tables involved in this expression

Definition at line 221 of file select_exp.h.

References tables_.

template<typename T >
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.

Parameters:
t expression component
See also:
Dv::Sql::boolexp::tables

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.

See also:
Dv::Sql::boolexp::tables
Dv::Sql::boolexp::add_table(const T&)
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.

See also:
Dv::Sql::boolexp::tables
Dv::Sql::boolexp::add_table(const T&)

Member Data Documentation

Set of tables mentioned in this expression.

Definition at line 225 of file select_exp.h.

Referenced by tables().


The documentation for this class was generated from the following file:

dvmysql-1.0.3 [17 November, 2010]