KDbConstExpression
#include <KDbExpression.h>
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 KDbConstExpression class represents const expression.
Types are string, integer, float constants. Also includes NULL value. Token can be: IDENTIFIER, SQL_NULL, SQL_TRUE, SQL_FALSE, CHARACTER_STRING_LITERAL, INTEGER_CONST, REAL_CONST, DATE_CONST, DATETIME_CONST, TIME_CONST.
- Note
- For REAL_CONST accepted values can be of type qreal, double and QPoint. In the case of QPoint, integer value (with a sign) is stored in QPoint::x and the fraction part (that should be always positive) is stored in QPoint::y. This gives 31 bits for the integer part (10 decimal digits) and 31 bits for the part (10 decimal digits).
Definition at line 386 of file KDbExpression.h.
Constructor & Destructor Documentation
◆ KDbConstExpression() [1/6]
KDbConstExpression::KDbConstExpression | ( | ) |
Constructs a null const expression.
- See also
- KDbExpression::isNull()
Definition at line 166 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [2/6]
Constructs const expression token token and value value.
Definition at line 172 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [3/6]
KDbConstExpression::KDbConstExpression | ( | const KDbConstExpression & | expr | ) |
Constructs a copy of other const expression expr. Resulting object is not a deep copy but rather a reference to the object expr.
Definition at line 193 of file KDbConstExpression.cpp.
◆ ~KDbConstExpression()
|
override |
Definition at line 198 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [4/6]
|
protected |
Internal, used by KDbQueryParameterExpression(const QString& message).
Definition at line 177 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [5/6]
|
explicitprotected |
Definition at line 183 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [6/6]
|
explicitprotected |
Definition at line 188 of file KDbConstExpression.cpp.
Member Function Documentation
◆ setValue()
void KDbConstExpression::setValue | ( | const QVariant & | value | ) |
Definition at line 207 of file KDbConstExpression.cpp.
◆ value()
QVariant KDbConstExpression::value | ( | ) | const |
Definition at line 202 of file KDbConstExpression.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.