1#ifndef WILSONPARAMCOMPOSER_H
2#define WILSONPARAMCOMPOSER_H
73 void update(
const std::string& block_name)
override;
std::function< void(const BlockSrc &, std::shared_ptr< DependentBlock >)> DepUpdateFunc
Function type used to recompute a DependentBlock from its sources.
std::function< void(const ParamSrc &, std::shared_ptr< DependentParameter >)> DepParamUpdateFunc
Function signature used to recompute a DependentParameter.
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.