Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CodeGenerator Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CodeGenerator()

CodeGenerator::CodeGenerator ( std::unique_ptr< TemplateManagerBase manager)

Constructs a CodeGenerator with a unique TemplateManagerBase instance.

Parameters
managerA unique pointer to a TemplateManagerBase-derived object.

Definition at line 3 of file CodeGenerator.cpp.

Member Function Documentation

◆ generate()

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.

Parameters
templateNameThe name of the template to use.
outputPathThe path where the generated file should be saved.

Definition at line 5 of file CodeGenerator.cpp.


The documentation for this class was generated from the following files: