Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
MappingDatabase.h
Go to the documentation of this file.
1#ifndef MAPPING_DATABASE_H
2#define MAPPING_DATABASE_H
3
4#include <unordered_map>
5#include <string>
6#include <memory>
7#include "IParamMappingSource.h"
8
33public:
47 MappingDatabase(const std::string& instanceName, const std::string& jsonFilePath,
48 std::shared_ptr<IParamMappingSource> loader);
49
58 std::unordered_map<std::string, InterpretedParam> getParams() const;
59
60private:
70 void load(const std::string& jsonFilePath,
71 const std::shared_ptr<IParamMappingSource>& loader);
72
73private:
75 std::unordered_map<std::string, InterpretedParam> paramsMap;
76};
77
78#endif // MAPPING_DATABASE_H
Interface for loading parameter mappings from an external source.
Lightweight container for InterpretedParam mappings.
std::unordered_map< std::string, InterpretedParam > getParams() const
Returns the current parameter mapping.