|
KSeExpr 4.0.4.0
|
Variable equals scalar control specification. More...
#include <ControlSpec.h>
Public Member Functions | |
| ExprScalarAssignSpec (const ExprAssignNode &node) | |
| std::string | toString () const override |
| Generates a replacement string based on changes to the spec. | |
| double | value () const |
| Public Member Functions inherited from KSeExpr::ControlSpec | |
| ControlSpec (const ExprNode &node) | |
| virtual | ~ControlSpec ()=default |
| ControlSpec & | operator= (const ControlSpec &)=default |
| ControlSpec & | operator= (ControlSpec &&)=default |
| ControlSpec (const ControlSpec &)=default | |
| ControlSpec (ControlSpec &&)=default | |
Static Public Member Functions | |
| static const ExprScalarAssignSpec * | match (const ExprNode *node) |
Private Attributes | |
| double | _min |
| Range of values. | |
| double | _max |
| double | _val |
| Current Value. | |
Additional Inherited Members | |
| Protected Attributes inherited from KSeExpr::ControlSpec | |
| std::string | _name |
| Name of control. | |
| int | _start |
| Start position of text in original source. | |
| int | _end |
| End position of text in original source. | |
Variable equals scalar control specification.
Definition at line 44 of file ControlSpec.h.
| KSeExpr::ExprScalarAssignSpec::ExprScalarAssignSpec | ( | const ExprAssignNode & | node | ) |
Definition at line 78 of file ControlSpec.cpp.
References _max, _min, KSeExpr::ControlSpec::_name, _val, KSeExpr::ControlSpec::ControlSpec(), KSeExpr::findComment(), KSeExpr::ExprAssignNode::name(), KSeExpr::Utils::parseRangeComment(), and value().
Referenced by match().
|
static |
Definition at line 116 of file ControlSpec.cpp.
References ExprScalarAssignSpec(), and KSeExpr::isScalarAssign().
Referenced by KSeExpr::SpecExaminer::examine().
|
overridevirtual |
Generates a replacement string based on changes to the spec.
Implements KSeExpr::ControlSpec.
Definition at line 107 of file ControlSpec.cpp.
References _max, _min, KSeExpr::ControlSpec::_name, and value().
|
inline |
Definition at line 49 of file ControlSpec.h.
References _val.
Referenced by ExprScalarAssignSpec(), and toString().
|
private |
Definition at line 57 of file ControlSpec.h.
Referenced by ExprScalarAssignSpec(), and toString().
|
private |
Range of values.
Definition at line 57 of file ControlSpec.h.
Referenced by ExprScalarAssignSpec(), and toString().
|
private |
Current Value.
Definition at line 59 of file ControlSpec.h.
Referenced by ExprScalarAssignSpec(), and value().