cexpression.h Source File¶
|
API
|
cexpression.h
42 explicit Context(cComponent *component, const char *baseDirectory, const cPar *targetPar=nullptr) :
146 virtual intval_t intValue(cComponent *contextComponent=nullptr, const char *expectedUnit=nullptr) const;
155 virtual double doubleValue(cComponent* contextComponent=nullptr, const char *expectedUnit=nullptr) const;
Contextual information for evaluating the expression.
Definition cexpression.h:40
virtual double doubleValue(cComponent *contextComponent=nullptr, const char *expectedUnit=nullptr) const
virtual std::string stringValue(cComponent *contextComponent=nullptr) const
virtual std::string stringValue(Context *context) const =0
cExpression & operator=(const cExpression &other)
Definition cexpression.h:71
virtual intval_t intValue(Context *context, const char *expectedUnit=nullptr) const =0
virtual double doubleValue(Context *context, const char *expectedUnit=nullptr) const =0
virtual intval_t intValue(cComponent *contextComponent=nullptr, const char *expectedUnit=nullptr) const
cExpression(const cExpression &other)=default
virtual cValue evaluate(Context *context) const =0
virtual int compare(const cExpression *other) const =0
virtual cValue evaluate(cComponent *contextComponent=nullptr) const
virtual void parse(const char *text)=0
virtual bool boolValue(Context *context) const =0
virtual cExpression * dup() const =0
virtual bool boolValue(cComponent *contextComponent=nullptr) const
virtual cXMLElement * xmlValue(cComponent *contextComponent=nullptr) const
virtual std::string getSourceLocation() const =0
virtual cXMLElement * xmlValue(Context *context) const =0
A variant-like value class used during evaluating NED expressions.
Definition cvalue.h:48
Represents an XML element in an XML configuration file.
Definition cxmlelement.h:76
int64_t intval_t
Signed integer type which is guaranteed to be at least 64 bits wide. It is used throughout the librar...
Definition simkerneldefs.h:101
Generated on for API by