KexiDB::BinaryExpr Class Reference
#include <expression.h>
Inheritance diagram for KexiDB::BinaryExpr:

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 161 of file expression.h.
Public Member Functions | |
| BinaryExpr (int aClass, BaseExpr *left_expr, int token, BaseExpr *right_expr) | |
| virtual | ~BinaryExpr () |
| virtual Field::Type | type () |
| virtual QString | debugString () |
| virtual QString | toString (QuerySchemaParameterValueListIterator *params=0) |
| virtual void | getQueryParameters (QuerySchemaParameterList ¶ms) |
| BaseExpr * | left () const |
| BaseExpr * | right () const |
| virtual bool | validate (ParseInfo &parseInfo) |
| virtual QString | tokenToString () |
Public Attributes | |
| BaseExpr * | m_larg |
| BaseExpr * | m_rarg |
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Definition at line 304 of file expression.cpp. References KexiDB::BaseExpr::m_cl, m_larg, m_rarg, and KexiDB::BaseExpr::setParent(). |
|
|
Definition at line 316 of file expression.cpp. |
Member Function Documentation
|
|
Reimplemented from KexiDB::BaseExpr. Definition at line 379 of file expression.cpp. References KexiDB::BaseExpr::debugString(), KexiDB::Driver::defaultSQLTypeName(), KexiDB::exprClassName(), KexiDB::BaseExpr::m_cl, m_larg, m_rarg, KexiDB::BaseExpr::tokenToDebugString(), and type(). |
|
|
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 426 of file expression.cpp. References KexiDB::BaseExpr::getQueryParameters(), m_larg, and m_rarg. |
|
|
Definition at line 170 of file expression.h. Referenced by KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Definition at line 171 of file expression.h. Referenced by KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(). |
|
|
Reimplemented from KexiDB::BaseExpr. Definition at line 389 of file expression.cpp. References AND, BITWISE_SHIFT_LEFT, BITWISE_SHIFT_RIGHT, CONCATENATION, GREATER_OR_EQUAL, LESS_OR_EQUAL, LIKE, KexiDB::BaseExpr::m_token, NOT_EQUAL, NOT_EQUAL2, NOT_SIMILAR_TO, OR, SIMILAR_TO, SQL_IN, KexiDB::BaseExpr::tokenToDebugString(), and XOR. Referenced by KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(), KexiQueryDesignerGuiEditor::slotBeforeCellChanged(), and toString(). |
|
|
Implements KexiDB::BaseExpr. Definition at line 419 of file expression.cpp. References INFIX, and tokenToString(). |
|
|
Reimplemented from KexiDB::BaseExpr. Definition at line 345 of file expression.cpp. References BITWISE_SHIFT_LEFT, BITWISE_SHIFT_RIGHT, KexiDB::Field::Boolean, CONCATENATION, KexiDB::Field::Double, KexiDB::Field::Float, KexiDB::Field::InvalidType, KexiDB::Field::isFPNumericType(), KexiDB::Field::isIntegerType(), m_larg, m_rarg, KexiDB::BaseExpr::m_token, KexiDB::maximumForIntegerTypes(), KexiDB::Field::Null, OR, and KexiDB::BaseExpr::type(). Referenced by debugString(). |
|
|
Reimplemented from KexiDB::BaseExpr. Definition at line 322 of file expression.cpp. References m_larg, m_rarg, KexiDB::BaseExpr::toQueryParameter(), KexiDB::BaseExpr::type(), and KexiDB::BaseExpr::validate(). |
Member Data Documentation
|
|
Definition at line 175 of file expression.h. Referenced by BinaryExpr(), debugString(), getQueryParameters(), type(), validate(), and ~BinaryExpr(). |
|
|
Definition at line 176 of file expression.h. Referenced by BinaryExpr(), debugString(), getQueryParameters(), type(), validate(), and ~BinaryExpr(). |
The documentation for this class was generated from the following files:
