Blender V5.3
BKE_node_socket_value_iter.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_function_ref.hh"
12
13namespace blender::fn {
14class GField;
15}
16
17namespace blender::bke {
18
19struct GeometrySet;
23
24} // namespace blender::bke
25
27
36 static bool needs_edit(const bool value)
37 {
38 return value;
39 }
40
41 static bool continue_check(const bool value)
42 {
43 return !value;
44 }
45
50 bool check_non_editable = false;
56
57 /* Note, since these are #FunctionRef, you must not assign a lambda to them directly! Instead the
58 * lambda must be stored in a separate variable first. */
59
62
65};
66
73void edit_recursive(SocketValueVariant &value, const VisitParams &params);
74void edit_recursive(GeometrySet &value, const VisitParams &params);
75
79void check_recursive(const SocketValueVariant &value, const VisitParams &params);
80void check_recursive(const GeometrySet &value, const VisitParams &params);
81
82} // namespace blender::bke::socket_value_visitor
void edit_recursive(SocketValueVariant &value, const VisitParams &params)
void check_recursive(const SocketValueVariant &value, const VisitParams &params)
FunctionRef< bool(const AttributeAccessor &)> check_AttributeAccessor
FunctionRef< void(MutableAttributeAccessor &)> edit_AttributeAccessor
FunctionRef< bool(const fn::GField &)> check_GField