![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Generates C code to declare and initialize ports. More...
Static Public Member Functions | |
| static String | generateAuxiliaryStruct (TypeParameterizedReactor tpr, Port port, Target target, MessageReporter messageReporter, CTypes types, CodeBuilder federatedExtension, boolean userFacing, ReactorDecl decl) |
| Generate the struct type definitions for the port of the reactor. | |
| static void | generateDeclarations (TypeParameterizedReactor tpr, ReactorDecl decl, CodeBuilder body, CodeBuilder constructorCode) |
| Generate fields in the self struct for input and output ports. | |
| static String | initializeInputMultiport (PortInstance input, String reactorSelfStruct) |
| Allocate memory for the input port. | |
| static String | initializeOutputMultiport (PortInstance output, String reactorSelfStruct, CTypes types) |
| Allocate memory for the output port. | |
| static String | localPortName (TypeParameterizedReactor tpr, ReactorDecl decl, String portName) |
Generates C code to declare and initialize ports.
|
static |
Generate the struct type definitions for the port of the reactor.
| tpr | The reactor |
| port | The port to generate the struct |
| target | The target of the code generation (C, CCpp or Python) |
| messageReporter | The error reporter |
| types | The helper object for types related stuff |
| federatedExtension | The code needed to support federated execution |
| userFacing | Whether this struct is to be presented in a user-facing header |
| decl | The reactorDecl if this struct is for the header of this reactor's container; null otherwise |
|
static |
Generate fields in the self struct for input and output ports.
|
static |
Allocate memory for the input port.
| input | The input port |
| reactorSelfStruct | The name of the self struct |
|
static |
Allocate memory for the output port.
| output | The output port |
| reactorSelfStruct | The name of the self struct |
| types | The C-specific type conversion functions. |
|
static |