24 DBUG(
"Create Function property {:s}.", property_name);
26 std::vector<std::string> value_expressions;
31 for (
auto const& p : value_config.getConfigSubtreeList(
"expression"))
33 value_expressions.emplace_back(p.getValue<std::string>());
37 std::vector<std::pair<std::string, std::vector<std::string>>>
44 dvalue_config.getConfigParameter<std::string>(
"variable_name");
46 std::vector<std::string> expressions;
47 auto const& expression_configs =
49 dvalue_config.getConfigSubtreeList(
"expression");
51 expressions.reserve(expression_configs.size());
52 std::transform(std::begin(expression_configs),
53 std::end(expression_configs),
54 std::back_inserter(expressions),
56 {
return p.getValue<std::string>(); });
58 dvalue_expressions.emplace_back(std::move(variable_name),
59 std::move(expressions));
62 return std::make_unique<MaterialPropertyLib::Function>(
63 std::move(property_name), value_expressions, dvalue_expressions);