|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Parses C++ code to find MARTY parameter declarations. More...
#include <Extractor.h>
Classes | |
| struct | Parameter |
| Simple descriptor for a discovered parameter. More... | |
Static Public Member Functions | |
| static std::vector< Parameter > | extract (const std::string &filename) |
| Extracts all parameter declarations from a given C++ file. | |
Parses C++ code to find MARTY parameter declarations.
The Extractor looks for lines of the form:
and returns a vector of lightweight descriptors containing the variable name, the human-readable name and whether the parameter is complex.
Definition at line 32 of file Extractor.h.
|
static |
Extracts all parameter declarations from a given C++ file.
The function scans the file with regular expressions looking for csl::InitSanitizer<real_t> and csl::InitSanitizer<complex_t> patterns.
| filename | Path to the C++ file to analyze. |
Definition at line 3 of file Extractor.cpp.