Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxEvalSetConst Class Reference

Provides different standard constants.

#include <QtxEvalExpr.h>

Inheritance diagram for QtxEvalSetConst:
Inheritance graph

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...
 

Constructor & Destructor Documentation

QtxEvalSetConst::QtxEvalSetConst ( )
QtxEvalSetConst::~QtxEvalSetConst ( )
virtual

Member Function Documentation

void QtxEvalSetConst::bracketsList ( QStringList &  ,
bool  open 
) const
virtual
Parameters
listreturning list of brackets (not used)
openif true, collect opening brackets, or closing brackets otherwise (not used)

Implements QtxEvalSet.

QtxEvalExpr::Error QtxEvalSetConst::calculate ( const QString &  ,
QVariant &  ,
QVariant &   
) const
virtual

Always returns QtxEvalExpr::InvalidOperation.

Parameters
opoperation name (not used)
v1first argument (not valid for unary prefix operations) (not used)
v2second argument (not valid for unary postfix operations) (not used)
Returns
error code (QtxEvalExpr::Error)

Implements QtxEvalSet.

References QtxEvalExpr::InvalidOperation.

bool QtxEvalSetConst::createValue ( const QString &  str,
QVariant &  val 
) const
virtual

Convert constant name to its value.

Parameters
strstring representration of the constant
valreturning value
Returns
true if str can be evaluated as custom value and false otherwise (parameter)

Reimplemented from QtxEvalSet.

QtxEvalExpr::Error QtxEvalSetConst::isValid ( const QString &  ,
const QVariant::Type  ,
const QVariant::Type   
) const
virtual

Always returns QtxEvalExpr::InvalidOperation.

Parameters
opoperation (not used)
t1first operand type (not used)
t2second operand type (not used)
Returns
error code (QtxEvalExpr::Error)

Implements QtxEvalSet.

References QtxEvalExpr::InvalidOperation.

QString QtxEvalSetConst::Name ( )
static
Returns
operations set name
QString QtxEvalSetConst::name ( ) const
virtual
Returns
operations set name

Implements QtxEvalSet.

References Name().

void QtxEvalSetConst::operationList ( QStringList &  ) const
virtual
Parameters
listreturning list of operations supported by the class (not used)

Implements QtxEvalSet.

int QtxEvalSetConst::priority ( const QString &  ,
bool  isBin 
) const
virtual

Operation priority counts from 1. If the operation is impossible, this function returns value <= 0.

Parameters
opoperation (not used)
isBintrue if the operation is binary and false if it is unary (not used)
Returns
operation priority

Implements QtxEvalSet.


The documentation for this class was generated from the following files: