Dv::Sql::binary_value_exp< L1, L2 > Class Template Reference

#include <select_exp.h>

Inheritance diagram for Dv::Sql::binary_value_exp< L1, L2 >:
Inheritance graph
[legend]
Collaboration diagram for Dv::Sql::binary_value_exp< L1, L2 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 binary_value_exp (const L1 &l1, BinaryFunction f, const L2 &l2)
 Constructor.
virtual ~binary_value_exp ()
 Destructor.
std::ostream & print (std::ostream &os, const Dv::Sql::Db &db) const
 Print this expression on a stream, using escapes for column values.

Public Attributes

const L1 arg_1
 argument.
const L2 arg_2
const BinaryFunction fun
 Function.

Detailed Description

template<typename L1, typename L2>
class Dv::Sql::binary_value_exp< L1, L2 >

Definition at line 283 of file select_exp.h.


Constructor & Destructor Documentation

template<typename L1 , typename L2 >
Dv::Sql::binary_value_exp< L1, L2 >::binary_value_exp ( const L1 &  l1,
BinaryFunction  f,
const L2 &  l2 
) [inline]

Constructor.

Parameters:
l left argument
o relational operator
r right argument
template<typename L1 , typename L2 >
virtual Dv::Sql::binary_value_exp< L1, L2 >::~binary_value_exp (  )  [inline, virtual]

Destructor.

Definition at line 302 of file select_exp.h.


Member Function Documentation

template<typename L1 , typename L2 >
std::ostream& Dv::Sql::binary_value_exp< L1, L2 >::print ( std::ostream &  os,
const Dv::Sql::Db db 
) const [inline, virtual]

Print this expression on a stream, using escapes for column values.

Parameters:
os stream to print to
db whose associated stringify functions will be used
Returns:
os

Implements Dv::Sql::value_exp.

Definition at line 310 of file select_exp.h.

References Dv::Sql::binary_value_exp< L1, L2 >::arg_1, Dv::Sql::binary_value_exp< L1, L2 >::arg_2, Dv::Sql::binary_value_exp< L1, L2 >::fun, and Dv::Sql::sql_string().


Member Data Documentation

template<typename L1 , typename L2 >
const L1 Dv::Sql::binary_value_exp< L1, L2 >::arg_1

argument.

Definition at line 286 of file select_exp.h.

Referenced by Dv::Sql::binary_value_exp< L1, L2 >::print().

template<typename L1 , typename L2 >
const L2 Dv::Sql::binary_value_exp< L1, L2 >::arg_2

Definition at line 287 of file select_exp.h.

Referenced by Dv::Sql::binary_value_exp< L1, L2 >::print().

template<typename L1 , typename L2 >
const BinaryFunction Dv::Sql::binary_value_exp< L1, L2 >::fun

Function.

Definition at line 289 of file select_exp.h.

Referenced by Dv::Sql::binary_value_exp< L1, L2 >::print().


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

dvmysql-1.0.3 [17 November, 2010]