Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IMappingDatabasePort.h
Go to the documentation of this file.
1#ifndef IMAPPING_DATABASE_PORT_H
2#define IMAPPING_DATABASE_PORT_H
3
4#include <memory>
5#include <string>
6#include <unordered_map>
7#include <optional>
8
10#include "InterpretedParam.h"
11
32public:
33 virtual ~IMappingDatabasePort() = default;
34
40 virtual std::unordered_map<std::string, InterpretedParam>
41 getParams() const = 0;
42
49 virtual std::optional<InterpretedParam>
50 getParam(const std::string& name) const = 0;
51
59 virtual std::string instanceName() const = 0;
60};
61
62#endif
Interface for loading parameter mappings from an external source.
Lightweight key describing an interpreted LHA/SLHA parameter.
Interface for accessing a parameter-mapping database.
virtual std::string instanceName() const =0
Returns a logical name for this database instance.
virtual std::optional< InterpretedParam > getParam(const std::string &name) const =0
Retrieves a parameter mapping by name.
virtual std::unordered_map< std::string, InterpretedParam > getParams() const =0
Returns all parameters stored in the database.
virtual ~IMappingDatabasePort()=default