* ggandiva_or_node_new: * @children: (element-type GGandivaNode): The children of the OR node. * * Returns: A newly created #GGandivaOrNode for the OR expression. * * Since: 0.17.0 */
| 1458 | * Since: 0.17.0 |
| 1459 | */ |
| 1460 | GGandivaOrNode * |
| 1461 | ggandiva_or_node_new(GList *children) |
| 1462 | { |
| 1463 | std::vector<std::shared_ptr<gandiva::Node>> gandiva_nodes; |
| 1464 | for (auto node = children; node; node = g_list_next(node)) { |
| 1465 | auto gandiva_node = ggandiva_node_get_raw(GGANDIVA_NODE(node->data)); |
| 1466 | gandiva_nodes.push_back(gandiva_node); |
| 1467 | } |
| 1468 | auto gandiva_node = gandiva::TreeExprBuilder::MakeOr(gandiva_nodes); |
| 1469 | return GGANDIVA_OR_NODE(ggandiva_boolean_node_new_raw(&gandiva_node, children)); |
| 1470 | } |
| 1471 | |
| 1472 | G_END_DECLS |
| 1473 |
nothing calls this directly
no test coverage detected