kexi

KexiDB::BinaryExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::BinaryExpr:

KexiDB::BaseExpr List of all members.

Detailed Description

A base class for binary operation
  • arithmetic operations: + - / * % << >> & | ||
  • relational operations: = (or ==) < > <= >= <> (or !=) LIKE IN 'SIMILAR TO' 'NOT SIMILAR TO'
  • logical operations: OR (or ||) AND (or &&) XOR
  • SpecialBinary "pseudo operators": e.g. "f1 f2" : token == 0 e.g. "f1 AS f2" : token == AS

Definition at line 175 of file expression.h.


Public Member Functions

 BinaryExpr (int aClass, BaseExpr *left_expr, int token, BaseExpr *right_expr)
 BinaryExpr (const BinaryExpr &expr)
virtual ~BinaryExpr ()
virtual BinaryExprcopy () const
virtual Field::Type type ()
virtual QString debugString ()
virtual QString toString (QuerySchemaParameterValueListIterator *params=0)
virtual void getQueryParameters (QuerySchemaParameterList &params)
BaseExprleft () const
BaseExprright () const
virtual bool validate (ParseInfo &parseInfo)
virtual QString tokenToString ()

Public Attributes

BaseExprm_larg
BaseExprm_rarg

Member Function Documentation

BinaryExpr * BinaryExpr::copy (  )  const [virtual]

Returns:
a deep copy of this object.

Implements KexiDB::BaseExpr.

Definition at line 353 of file expression.cpp.

QString BinaryExpr::toString ( QuerySchemaParameterValueListIterator params = 0  )  [virtual]

Returns:
string as a representation of this expression element by running recursive calls. param, if not 0, points to a list item containing value of a query parameter (used in QueryParameterExpr).

Implements KexiDB::BaseExpr.

Definition at line 455 of file expression.cpp.

void BinaryExpr::getQueryParameters ( QuerySchemaParameterList params  )  [virtual]

Collects query parameters (messages and types) reculsively and saves them to params. The leaf nodes are objects of QueryParameterExpr class.

Implements KexiDB::BaseExpr.

Definition at line 462 of file expression.cpp.

bool BinaryExpr::validate ( ParseInfo &  parseInfo  )  [virtual]

Reimplemented from KexiDB::BaseExpr.

Definition at line 358 of file expression.cpp.

QString BinaryExpr::tokenToString (  )  [virtual]

Returns:
string for token, like "<=" or ">"

Reimplemented from KexiDB::BaseExpr.

Definition at line 425 of file expression.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys