![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Generate code for state variables. More...
Static Public Member Functions | |
| static String | generateDeclarations (TypeParameterizedReactor reactor, CTypes types, boolean suppressLineDirectives) |
| Generate code for state variables of a reactor in the form "stateVar.type stateVar.name;". | |
| static String | generateInitializer (ReactorInstance instance, String selfRef, StateVar stateVar, ModeInstance mode, CTypes types) |
| If the state is initialized with a parameter, then do not use a temporary variable. | |
Generate code for state variables.
|
static |
Generate code for state variables of a reactor in the form "stateVar.type stateVar.name;".
| reactor | TypeParameterizedReactor |
| types | A helper object for types |
| suppressLineDirectives | Whether to suppress the generation of line directives. |
|
static |
If the state is initialized with a parameter, then do not use a temporary variable.
Otherwise, do, because static initializers for arrays and structs have to be handled this way, and there is no way to tell whether the type of the array is a struct.
| instance | ReactorInstance |
| selfRef | Reference to the self struct. |
| stateVar | The state variable (StateVar) |
| mode | ModeInstance |
| types | The C-specific type conversion functions. |