Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
APIAdapter.h
Go to the documentation of this file.
1#ifndef APIADAPTER_H
2#define APIADAPTER_H
3
4#include <unordered_set>
5#include <map>
6
7#include "Include.h"
8#include "IMonitor.h"
9#include "IPathProvider.h"
10#include "IPathsProvider.h"
11#include "IDataMonitor.h"
12#include "MemoryManager.h"
13#include "Parameters.h"
14
52class APIAdapter : public IMonitor<ExternalFlag>,
53 public IPathProvider<APIPath>,
54 public IDataMonitor {
55public:
64 bool check_flag(ExternalFlag flag);
65
76 fs::path get_path(APIPath path_name) override;
77
86 std::unordered_set<BlockName> get_all_blocks();
87
96 std::unordered_set<BlockName> get_blocks_list(ParameterType param_type = ParameterType::SM);
97
107 std::map<LhaID, scalar_t> get_block_infos(const BlockName& block, ParameterType param_type = ParameterType::SM);
108
118 std::vector<ParameterType> get_type_of_block(const BlockName& block);
119};
120
121
122#endif // APIADAPTER_H
ExternalFlag
Flags describing external input characteristics.
Definition Config.h:13
ParameterType
Generic interface for monitoring flags within the framework.
Interface for providing concrete filesystem paths based on enum identifiers.
APIPath
Enumerates the filesystem paths exposed through the public API.
Manages memory caching, parameter blocks, and LHA reader instances.
Model-dependent parameter repository and initialization strategies.
Concrete adapter combining monitoring and path providing functionalities.
Definition APIAdapter.h:54
fs::path get_path(APIPath path_name) override
Retrieves a specific filesystem path exposed by APIPath.
std::unordered_set< BlockName > get_blocks_list(ParameterType param_type=ParameterType::SM)
Retrieves block names for a specific parameter type.
Definition APIAdapter.cpp:7
std::unordered_set< BlockName > get_all_blocks()
Retrieves all block names across all available model types.
std::vector< ParameterType > get_type_of_block(const BlockName &block)
Retrieves the list of parameter types that own a specific block.
bool check_flag(ExternalFlag flag)
Checks the status of a specific external flag.
std::map< LhaID, scalar_t > get_block_infos(const BlockName &block, ParameterType param_type=ParameterType::SM)
Retrieves all parameter values inside a given block.
Definition APIAdapter.cpp:3
Block identifier with alias support.
Definition BlockName.h:59
Interface for monitoring and retrieving information about parameter blocks.
Interface for monitoring flags inside the framework (internal or external).
Definition IMonitor.h:32
Interface for providing specific filesystem paths based on enumerated identifiers.
Interface for monitoring and retrieving information about parameter blocks.