Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
BlockProxy.h
Go to the documentation of this file.
1#ifndef BLOCK_PROXY_H
2#define BLOCK_PROXY_H
3
4#include <unordered_set>
5#include <string>
6
7#include "IBlockProxy.h"
8#include "BlockProvider.h"
9#include "APIAdapter.h"
10
51class BlockProxy : public IBlockProxy {
52public:
58 BlockProxy() : bp(), api() {}
59
69 bool exists(const std::string& blockname, ParameterType pt) override;
70
81 void log_all_blocks(ParameterType pt) override;
82
96 void log_block(ParameterType pt, const std::string& blockname) override;
97
107 std::unordered_set<BlockName> get_block_list(ParameterType pt) override;
108
119 std::map<LhaID, scalar_t> get_block(ParameterType pt, const std::string& blockname) override;
120
121private:
123 BlockProvider bp;
124
126 APIAdapter api;
127};
128
129#endif
High-level monitoring and access adapter for parameter and path information.
Concrete implementation of IBlockProvider for HyperISO parameter blocks.
ParameterType
Interface (port) for unified access to parameter block diagnostics.
Concrete adapter combining monitoring and path providing functionalities.
Definition APIAdapter.h:54
Block provider bound to HyperISO Parameters / ParameterType.
Unified proxy for block queries and diagnostics.
Definition BlockProxy.h:51
void log_all_blocks(ParameterType pt) override
Logs all blocks for a given ParameterType.
Definition BlockProxy.cpp:7
std::map< LhaID, scalar_t > get_block(ParameterType pt, const std::string &blockname) override
Retrieves the content of a block for a given ParameterType.
void log_block(ParameterType pt, const std::string &blockname) override
Logs a single block for a given ParameterType.
std::unordered_set< BlockName > get_block_list(ParameterType pt) override
Retrieves the set of block names for a given ParameterType.
bool exists(const std::string &blockname, ParameterType pt) override
Checks whether a block exists for the given ParameterType.
Definition BlockProxy.cpp:3
BlockProxy()
Default constructor.
Definition BlockProxy.h:58
Abstract interface for block inspection and logging.
Definition IBlockProxy.h:49