|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
A class that generates code using a template manager. More...
#include <CodeGenerator.h>
Public Member Functions | |
| CodeGenerator (std::unique_ptr< TemplateManagerBase > manager) | |
| Constructs a CodeGenerator with a unique TemplateManagerBase instance. | |
| void | generate (const std::string &templateName, const std::string &outputPath) |
| Generates a code file based on a specified template. | |
A class that generates code using a template manager.
The CodeGenerator class utilizes a TemplateManagerBase-derived object (numerical or non-numerical) to generate Marty's code templates based on provided template names and output paths.
Definition at line 25 of file CodeGenerator.h.
| CodeGenerator::CodeGenerator | ( | std::unique_ptr< TemplateManagerBase > | manager | ) |
Constructs a CodeGenerator with a unique TemplateManagerBase instance.
| manager | A unique pointer to a TemplateManagerBase-derived object. |
Definition at line 3 of file CodeGenerator.cpp.
| void CodeGenerator::generate | ( | const std::string & | templateName, |
| const std::string & | outputPath | ||
| ) |
Generates a code file based on a specified template.
Uses the template manager to process a given Marty's template and generate a Marty file.
| templateName | The name of the template to use. |
| outputPath | The path where the generated file should be saved. |
Definition at line 5 of file CodeGenerator.cpp.