![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
This class is in charge of code generating functions and global variables related to the enclaves and environments. More...
Public Member Functions | |
| CEnclaveGenerator (ReactorInstance main, CEnclavedReactorTransformation ast, String lfModuleName, MessageReporter messageReporter) | |
| String | generateDeclarations () |
| Return declarations associated with environments to be inserted into the main C file. | |
| String | generateDefinitions (TargetConfig targetConfig) |
| Return the definitions associated with environments and enclaves to be inserted into the main C file. | |
| Set< CEnclaveInstance > | getEnclaves () |
| Return the set of enclaves in the program. | |
| int | numEnclaves () |
| Return the number of enclaves in the program. | |
This class is in charge of code generating functions and global variables related to the enclaves and environments.
An environment is the context in which an enclave exists. Each enclave has its own environment where queues, current tag, thread synchronization primitives etc. are stored.
| org.lflang.generator.c.CEnclaveGenerator.CEnclaveGenerator | ( | ReactorInstance | main, |
| CEnclavedReactorTransformation | ast, | ||
| String | lfModuleName, | ||
| MessageReporter | messageReporter ) |
| main | The main reactor instance of the program |
| ast | The AST transformation which has info about the enclave topology |
| lfModuleName | |
| messageReporter |
| String org.lflang.generator.c.CEnclaveGenerator.generateDeclarations | ( | ) |
Return declarations associated with environments to be inserted into the main C file.
| String org.lflang.generator.c.CEnclaveGenerator.generateDefinitions | ( | TargetConfig | targetConfig | ) |
Return the definitions associated with environments and enclaves to be inserted into the main C file.
| Set< CEnclaveInstance > org.lflang.generator.c.CEnclaveGenerator.getEnclaves | ( | ) |
Return the set of enclaves in the program.
| int org.lflang.generator.c.CEnclaveGenerator.numEnclaves | ( | ) |
Return the number of enclaves in the program.