Provides different standard constants. More...
#include <QtxEvalExpr.h>

Public Member Functions | |
| QtxEvalSetConst () | |
| virtual | ~QtxEvalSetConst () |
| Destructor. More... | |
| virtual QString | name () const |
| Get operations set name. More... | |
| virtual bool | createValue (const QString &, QVariant &) const |
| Create value from its string representation. More... | |
| virtual void | operationList (QStringList &) const |
| Get the list of possible operations. More... | |
| virtual void | bracketsList (QStringList &, bool open) const |
| Get list of brackets. More... | |
| virtual int | priority (const QString &, bool isBin) const |
| Get the operation priority. More... | |
| virtual QtxEvalExpr::Error | isValid (const QString &, const QVariant::Type, const QVariant::Type) const |
| Check operation validity. More... | |
| virtual QtxEvalExpr::Error | calculate (const QString &, QVariant &, QVariant &) const |
| Calculate the operation. More... | |
Public Member Functions inherited from QtxEvalSet | |
| QtxEvalSet () | |
| Constructor. More... | |
| virtual | ~QtxEvalSet () |
| Destructor. More... | |
Static Public Member Functions | |
| static QString | Name () |
| Get operations set name. More... | |
Provides different standard constants.
| QtxEvalSetConst::QtxEvalSetConst | ( | ) |
|
virtual |
Destructor.
|
virtual |
Get list of brackets.
| list | returning list of brackets (not used) |
| open | if true, collect opening brackets, or closing brackets otherwise (not used) |
Implements QtxEvalSet.
|
virtual |
Calculate the operation.
Always returns QtxEvalExpr::InvalidOperation.
| op | operation name (not used) |
| v1 | first argument (not valid for unary prefix operations) (not used) |
| v2 | second argument (not valid for unary postfix operations) (not used) |
Implements QtxEvalSet.
References QtxEvalExpr::InvalidOperation.
|
virtual |
Create value from its string representation.
Convert constant name to its value.
| str | string representration of the constant |
| val | returning value |
true if str can be evaluated as custom value and false otherwise (parameter) Reimplemented from QtxEvalSet.
|
virtual |
Check operation validity.
Always returns QtxEvalExpr::InvalidOperation.
| op | operation (not used) |
| t1 | first operand type (not used) |
| t2 | second operand type (not used) |
Implements QtxEvalSet.
References QtxEvalExpr::InvalidOperation.
|
static |
Get operations set name.
|
virtual |
|
virtual |
Get the list of possible operations.
| list | returning list of operations supported by the class (not used) |
Implements QtxEvalSet.
|
virtual |
Get the operation priority.
Operation priority counts from 1. If the operation is impossible, this function returns value <= 0.
| op | operation (not used) |
| isBin | true if the operation is binary and false if it is unary (not used) |
Implements QtxEvalSet.