Hyperiso
1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
Extractor.h
Go to the documentation of this file.
1
#ifndef EXTRACTOR_H
2
#define EXTRACTOR_H
3
4
#include <string>
5
#include <vector>
6
#include <regex>
7
#include <fstream>
8
32
class
Extractor
{
33
public
:
42
struct
Parameter
{
43
std::string
type
;
44
std::string
name
;
45
bool
complex
;
46
};
47
58
static
std::vector<Parameter>
extract
(
const
std::string& filename);
59
};
60
61
#endif
// EXTRACTOR_H
Extractor
Parses C++ code to find MARTY parameter declarations.
Definition
Extractor.h:32
Extractor::extract
static std::vector< Parameter > extract(const std::string &filename)
Extracts all parameter declarations from a given C++ file.
Definition
Extractor.cpp:3
Extractor::Parameter
Simple descriptor for a discovered parameter.
Definition
Extractor.h:42
Extractor::Parameter::complex
bool complex
True for complex_t, false for real_t.
Definition
Extractor.h:45
Extractor::Parameter::type
std::string type
C++ variable name.
Definition
Extractor.h:43
Extractor::Parameter::name
std::string name
Logical parameter name from the initializer.
Definition
Extractor.h:44
Hyperiso
core
src
ExternalIntegration
MartyInterface
NumericalScriptProcessing
Extractor.h
Generated by
1.9.8