44 |
StmtFlags_t flags; ///< general completion status (i.e. success or failure) of the function call |
StmtFlags_t flags; ///< general completion status (i.e. success or failure) of the function call |
45 |
vmint value; ///< result value of the function call |
vmint value; ///< result value of the function call |
46 |
|
|
47 |
VMIntResult() : flags(STMT_SUCCESS) {} |
VMIntResult() : flags(STMT_SUCCESS), value(0) {} |
48 |
vmint evalInt() OVERRIDE { return value; } |
vmint evalInt() OVERRIDE { return value; } |
49 |
VMExpr* resultValue() OVERRIDE { return this; } |
VMExpr* resultValue() OVERRIDE { return this; } |
50 |
StmtFlags_t resultFlags() OVERRIDE { return flags; } |
StmtFlags_t resultFlags() OVERRIDE { return flags; } |
51 |
bool isConstExpr() const OVERRIDE { return false; } |
bool isConstExpr() const OVERRIDE { return false; } |
52 |
|
MetricPrefix_t unitPrefix(vmuint i) const OVERRIDE { return VM_NO_PREFIX; } |
53 |
|
StdUnit_t unitType() const OVERRIDE { return VM_NO_UNIT; } |
54 |
|
bool isFinal() const OVERRIDE { return false; } |
55 |
}; |
}; |
56 |
|
|
57 |
/** |
/** |
155 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
156 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
157 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; } |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; } |
158 |
|
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE; |
159 |
|
bool acceptsArgUnitPrefix(vmint iArg) const OVERRIDE; |
160 |
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
161 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
162 |
protected: |
protected: |