|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Abstract base class for model source modifiers. More...
#include <ModelModifier.h>

Public Member Functions | |
| virtual | ~ModelModifier ()=default |
| Virtual destructor for safe polymorphic use. | |
| virtual void | modifyLine (std::string &line)=0 |
| Modifies a single line of source code in place. | |
| virtual void | addLine (std::ofstream &outputFile, const std::string ¤tLine) |
| Writes a (possibly modified) line to the output file. | |
Protected Attributes | |
| std::string | wilson {} |
| Name of the Wilson operator basis used in the model. | |
Abstract base class for model source modifiers.
A ModelModifier receives each line of a template source file and:
Concrete subclasses (e.g. GeneralModelModifier) implement the actual logic to adapt a generic MARTY template to a specific model/Wilson configuration.
Definition at line 30 of file ModelModifier.h.
|
virtualdefault |
Virtual destructor for safe polymorphic use.
|
inlinevirtual |
Writes a (possibly modified) line to the output file.
Default behavior simply writes currentLine followed by a newline. Derived classes can override this to inject additional lines before or after the current one, depending on addBefore.
| outputFile | Output stream to write to. |
| currentLine | Line to be written. |
Reimplemented in GeneralModelModifier.
Definition at line 55 of file ModelModifier.h.
|
pure virtual |
Modifies a single line of source code in place.
Implementations may, for example, replace occurrences of "SM" with another model name, or adjust class templates.
| line | The line of code to modify. |
Implemented in GeneralModelModifier.
|
protected |
Name of the Wilson operator basis used in the model.
Definition at line 59 of file ModelModifier.h.