|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Factory for creating LHA/FLHA elements from a prototype and a line. More...
#include <lha_elements.h>
Static Public Member Functions | |
| static std::shared_ptr< AbstractElement > | createElement (const Prototype &prototype, const std::vector< std::string > &line) |
| Creates an element of the appropriate type for a given line. | |
Factory for creating LHA/FLHA elements from a prototype and a line.
The factory is responsible for choosing the appropriate template instantiation of LhaElement<T> based on the block prototype. For example:
Definition at line 250 of file lha_elements.h.
|
static |
Creates an element of the appropriate type for a given line.
The decision on the value type (e.g. double vs std::string) is based on the prototype's blockName. The created element is always returned via a shared pointer to AbstractElement.
| prototype | Description of the LHA/FLHA block. |
| line | Parsed line tokens for a single entry. |
| std::runtime_error | If the line is inconsistent with the prototype. |
Definition at line 123 of file lha_elements.cpp.