|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete implementation of IDependency using DependentBlockManager. More...
#include <CompositeParamCreator.h>


Public Member Functions | |
| void | add_block_dependency (const BlockName &name, const std::unordered_map< ParameterType, std::vector< std::string > > &source_names, ParameterType dest, DepUpdateFunc recalculateFunc) override |
| Adds a dependent block using DependentBlockManager. | |
| void | add_param_dependency (const ParamId &pid, const std::unordered_set< ParamId > &source_pids, DepParamUpdateFunc recalculateFunc) override |
| Adds a dependent parameter using DependentBlockManager. | |
| void | remove_dependency (const BlockName &name, ParameterType src) override |
| Removes a dependent block using DependentBlockManager. | |
| void | update_dependency (const BlockName &name, ParameterType src) override |
| Manually triggers an update on a dependent block using DependentBlockManager. | |
Public Member Functions inherited from IDependency | |
| virtual | ~IDependency ()=default |
| Virtual destructor for proper polymorphic cleanup. | |
Concrete implementation of IDependency using DependentBlockManager.
This adapter glues high-level dependency management code (e.g. configuration, model setup) to the underlying mechanisms based on:
All methods simply forward to the static helpers in DependentBlockManager:
This indirection allows you to:
Definition at line 45 of file CompositeParamCreator.h.
|
overridevirtual |
Adds a dependent block using DependentBlockManager.
Creates a new DependentBlock whose content is computed from a set of source blocks, possibly coming from different Parameters instances.
Internally, this calls:
| name | Name of the dependent block to create. |
| source_names | Map associating each source ParameterType to the list of block names that will serve as inputs. |
| dest | Destination ParameterType in which the new block will be registered. |
| recalculateFunc | Lambda used to recompute the block from its sources. |
Implements IDependency.
Definition at line 3 of file CompositeParamCreator.cpp.
|
overridevirtual |
Adds a dependent parameter using DependentBlockManager.
Creates a DependentParameter whose value is computed from one or several source parameters, possibly across different ParameterType instances.
Internally, this calls:
| pid | ID of the dependent parameter to create. |
| source_pids | Set of IDs for the source parameters. |
| recalculateFunc | Lambda used to recompute the parameter value. |
Implements IDependency.
Definition at line 12 of file CompositeParamCreator.cpp.
|
overridevirtual |
Removes a dependent block using DependentBlockManager.
Internally, this calls:
| name | Name of the dependent block to remove. |
| src | ParameterType (model) where the block is registered. |
Implements IDependency.
Definition at line 20 of file CompositeParamCreator.cpp.
|
overridevirtual |
Manually triggers an update on a dependent block using DependentBlockManager.
Internally, this calls:
| name | Name of the dependent block to update. |
| src | ParameterType (model) where the block is located. |
Implements IDependency.
Definition at line 24 of file CompositeParamCreator.cpp.