evaluates a structured expression in HIL More...
#include <Struct_expr.hpp>
Public Member Functions | |
| Struct_expr (std::string code) | |
| std::vector< double > | eval (Interpreter &) const |
| executes the code and returns the values of the output variables. | |
Public Attributes | |
| const std::vector< std::string > | names |
| names of output variables | |
| const std::vector< std::string > | exprs |
| expressions for values of output variables | |
evaluates a structured expression in HIL
| hexed::Struct_expr::Struct_expr | ( | std::string | code | ) |
| code | A structured expression, meaning an expression that always assigns to the same numeric variables, regardless of the environment in which it was executed. Specifically, it must satisfy the following requirements
|
| std::vector< double > hexed::Struct_expr::eval | ( | Interpreter & | inter | ) | const |
executes the code and returns the values of the output variables.
Variables are returned in the same order as names. Evaluates the expressions with the provided interpreter.