Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
BlockProxy.cpp
Go to the documentation of this file.
1#include "BlockProxy.h"
2
3bool BlockProxy::exists(const std::string& blockname, ParameterType pt) {
4 return bp.exists(blockname, pt);
5}
6
10
11void BlockProxy::log_block(ParameterType pt, const std::string& blockname) {
12 bp.log_block(pt, blockname);
13}
14
15std::unordered_set<BlockName> BlockProxy::get_block_list(ParameterType pt) {
16 return api.get_blocks_list(pt);
17}
18
19std::map<LhaID, scalar_t> BlockProxy::get_block(ParameterType pt, const std::string& blockname) {
20 return bp.get_block(pt, blockname);
21}
Facade combining block existence/logging (BlockProvider) and block listing (APIAdapter).
ParameterType
std::unordered_set< BlockName > get_blocks_list(ParameterType param_type=ParameterType::SM)
Retrieves block names for a specific parameter type.
Definition APIAdapter.cpp:7
bool exists(const std::string &blockname, ParameterType) override
Checks whether a block exists for the given ParameterType.
void log_all_blocks(ParameterType type) override
Logs all blocks for a given ParameterType.
void log_block(ParameterType type, const std::string &blockname) override
Logs the content of a single block for a given ParameterType.
std::map< LhaID, scalar_t > get_block(ParameterType type, const std::string &blockname) override
Retrieve the content of a single block for a given ParameterType.
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