16 std::unordered_map<std::string, std::shared_ptr<ConfiguredParameter>>
20 const auto nbParameters = parameters.
size ();
21 std::unordered_map<std::string, std::shared_ptr<ConfiguredParameter>> map;
22 for (std::size_t i = 0; i < nbParameters; ++i)
24 const auto& param = parameters[i];
26 map.emplace (param.getName (),
27 ConfiguredParameter::create (c, {std::move(value)}, param));
32 std::unordered_map<std::string, std::shared_ptr<ConfiguredParameter>>
36 const auto nbParameters = parameters.
size ();
37 std::unordered_map<std::string, std::shared_ptr<ConfiguredParameter>> map;
38 for (std::size_t i = 0; i < nbParameters; ++i)
40 const auto& param = parameters[i];
42 map.emplace (param.getName (),
43 ConfiguredParameter::create (c, {std::move(value)}, param));
49 const std::function<
NodeRef (
const std::string&)>& parameter)
52 const auto nbParameters = parameters.
size ();
54 for (std::size_t i = 0; i < nbParameters; ++i)
56 auto dep = parameter(parameters[i].getName ());
59 throw Exception (
"createDependencyVector (Parametrizable): parameter not found: " + parameters[i].getName ());
61 deps[i] = std::move (dep);
67 const std::function<
NodeRef (
const std::string&)>& parameter)
70 const auto nbParameters = parameters.
size ();
72 for (std::size_t i = 0; i < nbParameters; ++i)
74 auto dep = parameter(parameters[i].getName ());
77 throw Exception (
"createDependencyVector (Parametrizable): parameter not found: " + parameters[i].getName ());
79 deps[i] = std::move (dep);
Context for dataflow node construction.
virtual const ParameterList & getIndependentParameters() const=0
virtual const ParameterList & getParameters() const=0
Defines the basic types of data flow nodes.
std::unordered_map< std::string, std::shared_ptr< ConfiguredParameter > > createParameterMap(Context &c, const Parametrizable ¶metrizable)
NodeRefVec createDependencyVector(const ParameterAliasable ¶metrizable, const std::function< NodeRef(const std::string &)> ¶meter)
std::vector< NodeRef > NodeRefVec
Alias for a dependency vector (of NodeRef).
std::shared_ptr< Node_DF > NodeRef