Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
WilsonParamComposer.h
Go to the documentation of this file.
1#ifndef WILSONPARAMCOMPOSER_H
2#define WILSONPARAMCOMPOSER_H
3
4#include "IBlockComposer.h"
6
40public:
51 void compose_block(const std::string& block_name, const std::unordered_map<ParameterType, std::vector<std::string>>& source_names, const DepUpdateFunc& update_func) override;
52
63 void compose_parameter(const ParamId&, const std::unordered_set<ParamId>&, const DepParamUpdateFunc&) override;
64
68 void remove_block(const std::string&) override;
69
73 void update(const std::string& block_name) override;
74
81 void remove_all_composed_blocks() override;
82
83};
84
85#endif // WILSONPARAMCOMPOSER_H
std::function< void(const BlockSrc &, std::shared_ptr< DependentBlock >)> DepUpdateFunc
Function type used to recompute a DependentBlock from its sources.
Definition Block.h:56
std::function< void(const ParamSrc &, std::shared_ptr< DependentParameter >)> DepParamUpdateFunc
Function signature used to recompute a DependentParameter.
ParameterType
Interface for composing (creating/removing/updating) dependent blocks and parameters.
Abstract interface for composing dependent blocks and parameters.
Composer that registers dependent entities into ParameterType::WILSON.
void compose_parameter(const ParamId &, const std::unordered_set< ParamId > &, const DepParamUpdateFunc &) override
Creates a dependent parameter in the Wilson scope.
void compose_block(const std::string &block_name, const std::unordered_map< ParameterType, std::vector< std::string > > &source_names, const DepUpdateFunc &update_func) override
Creates a dependent block in the Wilson scope.
void remove_all_composed_blocks() override
Removes all dependent blocks composed via this composer.
void remove_block(const std::string &) override
Removes a dependent block from the Wilson scope and from the registry.
void update(const std::string &block_name) override
Triggers an update on a dependent block in the Wilson scope.
Composite identifier for a single parameter.
Definition ParamID.h:57