202 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
203 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
204 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return STRING_EXPR; } |
|
205 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
206 |
}; |
}; |
207 |
|
|
214 |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
vmint minRequiredArgs() const OVERRIDE { return 0; } |
215 |
vmint maxAllowedArgs() const OVERRIDE; |
vmint maxAllowedArgs() const OVERRIDE; |
216 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
217 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE; |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE; |
218 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE; |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE; |
219 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE; |
bool acceptsArgFinal(vmint iArg) const OVERRIDE; |
233 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
234 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE; |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE; |
235 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE; |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
236 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
237 |
protected: |
protected: |
238 |
ScriptVM* vm; |
ScriptVM* vm; |
252 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
253 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
254 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
255 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
256 |
}; |
}; |
257 |
|
|
270 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
271 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
272 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
273 |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
274 |
std::function<void(String)> wrn) OVERRIDE; |
std::function<void(String)> wrn) OVERRIDE; |
275 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
285 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
286 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
287 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_ARR_EXPR; } |
|
288 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
289 |
}; |
}; |
290 |
|
|
302 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
303 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
304 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
305 |
bool modifiesArg(vmint iArg) const OVERRIDE { return true; } |
bool modifiesArg(vmint iArg) const OVERRIDE { return true; } |
306 |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
307 |
std::function<void(String)> wrn) OVERRIDE; |
std::function<void(String)> wrn) OVERRIDE; |
322 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
323 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
324 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
325 |
bool modifiesArg(vmint iArg) const OVERRIDE { return true; } |
bool modifiesArg(vmint iArg) const OVERRIDE { return true; } |
326 |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
327 |
std::function<void(String)> wrn) OVERRIDE; |
std::function<void(String)> wrn) OVERRIDE; |
339 |
vmint minRequiredArgs() const OVERRIDE { return 3; } |
vmint minRequiredArgs() const OVERRIDE { return 3; } |
340 |
vmint maxAllowedArgs() const OVERRIDE { return 3; } |
vmint maxAllowedArgs() const OVERRIDE { return 3; } |
341 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
342 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
343 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
344 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
357 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
358 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
359 |
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; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
360 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
361 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
362 |
}; |
}; |
371 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
372 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
373 |
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; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
374 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
375 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
376 |
}; |
}; |
387 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
388 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
389 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
390 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
391 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
392 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
407 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
408 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
409 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
410 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
411 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
412 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
426 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
427 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
428 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_ARR_EXPR; } |
|
429 |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
430 |
std::function<void(String)> wrn) OVERRIDE; |
std::function<void(String)> wrn) OVERRIDE; |
431 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
442 |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
vmint minRequiredArgs() const OVERRIDE { return 2; } |
443 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
444 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE; |
|
445 |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
void checkArgs(VMFnArgs* args, std::function<void(String)> err, |
446 |
std::function<void(String)> wrn) OVERRIDE; |
std::function<void(String)> wrn) OVERRIDE; |
447 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
455 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
456 |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
vmint maxAllowedArgs() const OVERRIDE { return 2; } |
457 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE; |
|
ExprType_t argType(vmint iArg) const OVERRIDE; |
|
458 |
bool modifiesArg(vmint iArg) const OVERRIDE { return iArg == 0; } |
bool modifiesArg(vmint iArg) const OVERRIDE { return iArg == 0; } |
459 |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
VMFnResult* exec(VMFnArgs* args) OVERRIDE; |
460 |
}; |
}; |
471 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
472 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
473 |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == REAL_EXPR; } |
bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == REAL_EXPR; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return REAL_EXPR; } |
|
474 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
475 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
476 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
489 |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
vmint minRequiredArgs() const OVERRIDE { return 1; } |
490 |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
vmint maxAllowedArgs() const OVERRIDE { return 1; } |
491 |
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; } |
|
ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; } |
|
492 |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
493 |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; } |
494 |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |
bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; } |