|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete IMappingDatabasePort that delegates to an adapter. More...
#include <MappingDatabaseProxy.h>


Public Member Functions | |
| MappingDatabaseProxy (std::shared_ptr< IMappingDatabaseAdapter > adapter) | |
| Constructs a new proxy from an existing adapter. | |
| std::unordered_map< std::string, InterpretedParam > | getParams () const override |
| Returns all parameters stored in the database. | |
| std::optional< InterpretedParam > | getParam (const std::string &name) const override |
| Retrieves a parameter mapping by name. | |
| std::string | instanceName () const override |
| Returns a logical name for this database instance. | |
Public Member Functions inherited from IMappingDatabasePort | |
| virtual | ~IMappingDatabasePort ()=default |
Static Public Member Functions | |
| static std::shared_ptr< MappingDatabaseProxy > | fromFactory (const IMappingAdapterFactory &factory, const std::string &instanceName, const std::string &jsonFilePath, std::shared_ptr< IParamMappingSource > loader=nullptr) |
| Factory helper to create a proxy with a given adapter factory. | |
Concrete IMappingDatabasePort that delegates to an adapter.
This class:
Definition at line 32 of file MappingDatabaseProxy.h.
|
explicit |
Constructs a new proxy from an existing adapter.
| adapter | Concrete mapping database adapter (must be non-null). |
| std::runtime_error | If adapter is null. |
Definition at line 14 of file MappingDatabaseProxy.cpp.
|
static |
Factory helper to create a proxy with a given adapter factory.
| factory | Adapter factory that knows how to read the mapping file. |
| instanceName | Logical name of this database instance (e.g. model name). |
| jsonFilePath | Path to the mapping JSON file. |
| loader | Optional mapping source loader (may be null). |
Definition at line 4 of file MappingDatabaseProxy.cpp.
|
overridevirtual |
Retrieves a parameter mapping by name.
| name | Symbolic parameter name as used in the generated code. |
std::nullopt otherwise. Implements IMappingDatabasePort.
Definition at line 25 of file MappingDatabaseProxy.cpp.
|
overridevirtual |
Returns all parameters stored in the database.
Implements IMappingDatabasePort.
Definition at line 20 of file MappingDatabaseProxy.cpp.
|
overridevirtual |
Returns a logical name for this database instance.
Typically this is the model name, e.g. "SM" or "THDM".
Implements IMappingDatabasePort.
Definition at line 29 of file MappingDatabaseProxy.cpp.