|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Interface for managing dependencies between parameter blocks or parameters. More...
#include <IDependency.h>

Public Member Functions | |
| virtual | ~IDependency ()=default |
| Virtual destructor for proper polymorphic cleanup. | |
| virtual void | add_block_dependency (const BlockName &name, const std::unordered_map< ParameterType, std::vector< std::string > > &source_names, ParameterType dest, DepUpdateFunc recalculateFunc)=0 |
| Adds a dependent block. | |
| virtual void | add_param_dependency (const ParamId &pid, const std::unordered_set< ParamId > &source_pids, DepParamUpdateFunc recalculateFunc)=0 |
| Adds a dependent parameter. | |
| virtual void | remove_dependency (const BlockName &name, ParameterType src)=0 |
| Removes a dependency by name and parameter type. | |
| virtual void | update_dependency (const BlockName &name, ParameterType src)=0 |
| Updates a dependency by name and parameter type. | |
Interface for managing dependencies between parameter blocks or parameters.
Provides an abstraction layer for adding, removing, and updating dependencies. Typical implementations (such as CompositeParamAdapter) internally rely on DependentBlock and DependentParameter, and orchestrate them via helper managers (e.g. DependentBlockManager).
Definition at line 43 of file IDependency.h.
|
virtualdefault |
Virtual destructor for proper polymorphic cleanup.
|
pure virtual |
Adds a dependent block.
Creates a new logical block whose contents are derived from other blocks.
| name | Name of the dependent block. |
| source_names | Map of source blocks per parameter type. |
| dest | Destination parameter type where the new block will be stored. |
| recalculateFunc | Function used to recalculate the dependent block. |
Implemented in CompositeParamAdapter.
|
pure virtual |
Adds a dependent parameter.
Registers a new parameter whose value is computed from one or more source parameters.
| pid | ID of the new dependent parameter. |
| source_pids | Set of source parameter IDs the new parameter depends on. |
| recalculateFunc | Function used to recalculate the dependent parameter. |
Implemented in CompositeParamAdapter.
|
pure virtual |
Removes a dependency by name and parameter type.
Usually targets a dependent block that should be removed (and unlinked from its sources/observers).
| name | Name of the dependency block. |
| src | Source parameter type. |
Implemented in CompositeParamAdapter.
|
pure virtual |
Updates a dependency by name and parameter type.
Typically forces a recomputation of a dependent block.
| name | Name of the dependency block. |
| src | Source parameter type. |
Implemented in CompositeParamAdapter.