KDbBinaryExpression

Search for usage in LXR

#include <KDbExpression.h>

Inheritance diagram for KDbBinaryExpression:

Public Member Functions

 KDbBinaryExpression ()
 
 KDbBinaryExpression (const KDbBinaryExpression &expr)
 
 KDbBinaryExpression (const KDbExpression &leftExpr, KDbToken token, const KDbExpression &rightExpr)
 
KDbExpression left () const
 
KDbExpression right () const
 
void setLeft (const KDbExpression &leftExpr)
 
void setRight (const KDbExpression &rightExpr)
 
- Public Member Functions inherited from KDbExpression
 KDbExpression ()
 
KDbExpression clone () const
 
QDebug debug (QDebug dbg, KDb::ExpressionCallStack *callStack) const
 
KDb::ExpressionClass expressionClass () const
 
void getQueryParameters (QList< KDbQuerySchemaParameter > *params)
 
bool isBinary () const
 
bool isConst () const
 
bool isDateTimeType () const
 
bool isFPNumericType () const
 
bool isFunction () const
 
bool isIntegerType () const
 
bool isNArg () const
 
bool isNull () const
 
bool isNumericType () const
 
bool isQueryParameter () const
 
bool isTextType () const
 
bool isUnary () const
 
bool isValid () const
 
bool isVariable () const
 
bool operator!= (const KDbExpression &e) const
 
bool operator== (const KDbExpression &e) const
 
KDbExpression parent () const
 
void setExpressionClass (KDb::ExpressionClass aClass)
 
void setToken (KDbToken token)
 
KDbBinaryExpression toBinary () const
 
KDbConstExpression toConst () const
 
KDbFunctionExpression toFunction () const
 
KDbToken token () const
 
KDbNArgExpression toNArg () const
 
KDbQueryParameterExpression toQueryParameter () const
 
KDbEscapedString toString (const KDbDriver *driver, KDbQuerySchemaParameterValueListIterator *params=nullptr, KDb::ExpressionCallStack *callStack=nullptr) const
 
KDbUnaryExpression toUnary () const
 
KDbVariableExpression toVariable () const
 
KDbField::Type type () const
 
bool validate (KDbParseInfo *parseInfo)
 

Protected Member Functions

 KDbBinaryExpression (const ExplicitlySharedExpressionDataPointer &ptr)
 
 KDbBinaryExpression (KDbExpressionData *data)
 
- Protected Member Functions inherited from KDbExpression
 KDbExpression (const ExplicitlySharedExpressionDataPointer &ptr)
 
 KDbExpression (KDbExpressionData *data)
 
 KDbExpression (KDbExpressionData *data, KDb::ExpressionClass aClass, KDbToken token)
 
void appendChild (const ExplicitlySharedExpressionDataPointer &child)
 
void appendChild (const KDbExpression &child)
 
bool checkBeforeInsert (const ExplicitlySharedExpressionDataPointer &child)
 
QList< ExplicitlySharedExpressionDataPointerchildren () const
 
int indexOfChild (const KDbExpression &child, int from=0) const
 
void insertChild (int i, const KDbExpression &child)
 
void insertEmptyChild (int i)
 
int lastIndexOfChild (const KDbExpression &child, int from=-1) const
 
void prependChild (const KDbExpression &child)
 
bool removeChild (const KDbExpression &child)
 
void removeChild (int i)
 
void setLeftOrRight (const KDbExpression &right, int index)
 
KDbExpression takeChild (int i)
 

Additional Inherited Members

- Static Public Member Functions inherited from KDbExpression
static KDb::ExpressionClass classForToken (KDbToken token)
 
- Protected Attributes inherited from KDbExpression
ExplicitlySharedExpressionDataPointer d
 

Detailed Description

The KDbBinaryExpression class represents binary operation.

Definition at line 340 of file KDbExpression.h.

Constructor & Destructor Documentation

◆ KDbBinaryExpression() [1/5]

KDbBinaryExpression::KDbBinaryExpression ( )

Constructs a null binary expression.

See also
KDbExpression::isNull()

Definition at line 374 of file KDbBinaryExpression.cpp.

◆ KDbBinaryExpression() [2/5]

KDbBinaryExpression::KDbBinaryExpression ( const KDbExpression & leftExpr,
KDbToken token,
const KDbExpression & rightExpr )

Constructs binary expression with left expression leftExpr, token token, and right expression rightExpr.

Definition at line 380 of file KDbBinaryExpression.cpp.

◆ KDbBinaryExpression() [3/5]

KDbBinaryExpression::KDbBinaryExpression ( const KDbBinaryExpression & expr)

Constructs a copy of other unary expression expr. Resulting object is not a deep copy but rather a reference to the object expr.

Definition at line 391 of file KDbBinaryExpression.cpp.

◆ ~KDbBinaryExpression()

KDbBinaryExpression::~KDbBinaryExpression ( )
override

Definition at line 407 of file KDbBinaryExpression.cpp.

◆ KDbBinaryExpression() [4/5]

KDbBinaryExpression::KDbBinaryExpression ( KDbExpressionData * data)
explicitprotected

Definition at line 396 of file KDbBinaryExpression.cpp.

◆ KDbBinaryExpression() [5/5]

KDbBinaryExpression::KDbBinaryExpression ( const ExplicitlySharedExpressionDataPointer & ptr)
explicitprotected

Definition at line 402 of file KDbBinaryExpression.cpp.

Member Function Documentation

◆ left()

KDbExpression KDbBinaryExpression::left ( ) const

Definition at line 411 of file KDbBinaryExpression.cpp.

◆ right()

KDbExpression KDbBinaryExpression::right ( ) const

Definition at line 421 of file KDbBinaryExpression.cpp.

◆ setLeft()

void KDbBinaryExpression::setLeft ( const KDbExpression & leftExpr)

Definition at line 416 of file KDbBinaryExpression.cpp.

◆ setRight()

void KDbBinaryExpression::setRight ( const KDbExpression & rightExpr)

Definition at line 426 of file KDbBinaryExpression.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:01 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.