![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Collection of functions to generate C code to declare methods. More...
Static Public Member Functions | |
| static void | generateMacrosForMethods (TypeParameterizedReactor tpr, CodeBuilder body) |
| Generate macro definitions for methods. | |
| static void | generateMacroUndefsForMethods (Reactor reactor, CodeBuilder body) |
| Generate macro undefinitions for methods. | |
| static String | generateMethod (Method method, TypeParameterizedReactor tpr, CTypes types, boolean suppressLineDirectives) |
| Generate a method function definition for a reactor. | |
| static void | generateMethods (TypeParameterizedReactor tpr, CodeBuilder code, CTypes types, boolean suppressLineDirectives) |
| Generate method functions definition for a reactor. | |
| static String | generateMethodSignature (Method method, TypeParameterizedReactor tpr, CTypes types) |
| Generate a method function signature for a reactor. | |
| static void | signatures (TypeParameterizedReactor tpr, CodeBuilder body, CTypes types) |
| Generate function signatures for methods. | |
Collection of functions to generate C code to declare methods.
|
static |
Generate macro definitions for methods.
| tpr | The reactor. |
| body | The place to put the macro definitions. |
|
static |
Generate macro undefinitions for methods.
| reactor | The reactor. |
| body | The place to put the macro definitions. |
|
static |
Generate a method function definition for a reactor.
This function will have a first argument that is a void* pointing to the self struct, followed by any arguments given in its definition.
| method | The method. |
| tpr | The concrete reactor class. |
| types | The C-specific type conversion functions. |
| suppressLineDirectives | Whether to suppress the generation of line directives. |
|
static |
Generate method functions definition for a reactor.
These functions have a first argument that is a void* pointing to the self struct.
| tpr | The reactor. |
| code | The place to put the code. |
| types | The C-specific type conversion functions. |
| suppressLineDirectives | Whether to suppress the generation of line directives. |
|
static |
Generate a method function signature for a reactor.
This function will have a first argument that is a void* pointing to the self struct, followed by any arguments given in its definition.
| method | The method. |
| tpr | The reactor declaration. |
| types | The C-specific type conversion functions. |
|
static |
Generate function signatures for methods.
This can be used to declare all the methods with signatures only before giving the full definition so that methods may call each other (and themselves) regardless of the order of definition.
| tpr | The reactor declaration. |
| body | The code builder for the body. |
| types | The C-specific type conversion functions. |