Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IMappingDatabaseAdapter.h
Go to the documentation of this file.
1#ifndef IMAPPINGDATABASEADAPTER_H
2#define IMAPPINGDATABASEADAPTER_H
3
4#include <unordered_map>
5#include <string>
6#include <memory>
7#include <optional>
8
10
33public:
34 virtual ~IMappingDatabaseAdapter() = default;
35
41 virtual std::unordered_map<std::string, InterpretedParam>
42 getParams() const = 0;
43
51 virtual std::optional<InterpretedParam>
52 getParam(const std::string& name) const = 0;
53
62 virtual std::string instanceName() const = 0;
63};
64
65#endif // IMAPPINGDATABASEADAPTER_H
Interface for loading parameter mappings from an external source.
Abstract view of a parameter mapping database.
virtual std::unordered_map< std::string, InterpretedParam > getParams() const =0
Returns all parameter mappings stored in the database.
virtual std::optional< InterpretedParam > getParam(const std::string &name) const =0
Returns a single parameter mapping by name.
virtual ~IMappingDatabaseAdapter()=default
virtual std::string instanceName() const =0
Returns a human-readable name for this mapping instance.