KDbUnaryExpression
#include <KDbExpression.h>

Public Member Functions | |
KDbUnaryExpression () | |
KDbUnaryExpression (const KDbUnaryExpression &expr) | |
KDbUnaryExpression (KDbToken token, const KDbExpression &arg) | |
KDbExpression | arg () const |
void | setArg (const KDbExpression &arg) |
![]() | |
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 | |
KDbUnaryExpression (const ExplicitlySharedExpressionDataPointer &ptr) | |
KDbUnaryExpression (KDbExpressionData *data) | |
![]() | |
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< ExplicitlySharedExpressionDataPointer > | children () 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 KDb::ExpressionClass | classForToken (KDbToken token) |
![]() | |
ExplicitlySharedExpressionDataPointer | d |
Detailed Description
The KDbUnaryExpression class represents unary expression (with a single argument).
operation: + - NOT (or !) ~ "IS NULL" "IS NOT NULL"
Definition at line 300 of file KDbExpression.h.
Constructor & Destructor Documentation
◆ KDbUnaryExpression() [1/3]
KDbUnaryExpression::KDbUnaryExpression | ( | ) |
Constructs a null unary expression.
- See also
- KDbExpression::isNull()
Definition at line 186 of file KDbUnaryExpression.cpp.
◆ KDbUnaryExpression() [2/3]
KDbUnaryExpression::KDbUnaryExpression | ( | KDbToken | token, |
const KDbExpression & | arg | ||
) |
Constructs unary expression with token token and argument arg.
Definition at line 192 of file KDbUnaryExpression.cpp.
◆ KDbUnaryExpression() [3/3]
KDbUnaryExpression::KDbUnaryExpression | ( | const KDbUnaryExpression & | 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 204 of file KDbUnaryExpression.cpp.
Member Function Documentation
◆ arg()
KDbExpression KDbUnaryExpression::arg | ( | ) | const |
- Returns
- expression that is argument for this unary expression
Definition at line 218 of file KDbUnaryExpression.cpp.
◆ setArg()
void KDbUnaryExpression::setArg | ( | const KDbExpression & | arg | ) |
Sets expression argument expr for this unary expression.
Definition at line 223 of file KDbUnaryExpression.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:12:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.