Blender V5.3
NOD_geometry_nodes_bundle_signature.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_vector_set.hh"
12
13#include "BKE_node.hh"
14
16
17namespace blender::nodes {
18
20 struct Item {
21 std::string key;
22 const bke::bNodeSocketType *type = nullptr;
24
25 friend bool operator==(const Item &a, const Item &b) = default;
26 };
27
30 {
31 return item.key;
32 }
33 };
34
36
37 friend bool operator==(const BundleSignature &a, const BundleSignature &b);
38 friend bool operator!=(const BundleSignature &a, const BundleSignature &b);
39
40 void add(std::string key, const eNodeSocketDatatype socket_type);
41
43 bool allow_auto_structure_type);
45 bool allow_auto_structure_type);
46
48};
49
60 bool has_type_definition() const;
61
62 std::optional<BundleSignature> get_merged_signature() const;
63};
64
66 const bNodeSocket &socket,
67 NodeSocketInterfaceStructureType stored_structure_type,
68 bool allow_auto_structure_type);
69
70} // namespace blender::nodes
NodeSocketInterfaceStructureType get_structure_type_for_bundle_signature(const bNodeSocket &socket, const NodeSocketInterfaceStructureType stored_structure_type, const bool allow_auto_structure_type)
VectorSet< T, InlineBufferCapacity, DefaultProbingStrategy, CustomIDHash< T, GetIDFn >, CustomIDEqual< T, GetIDFn > > CustomIDVectorSet
Defines a socket type.
Definition BKE_node.hh:163
friend bool operator==(const Item &a, const Item &b)=default
static BundleSignature from_separate_bundle_node(const bNode &node, bool allow_auto_structure_type)
CustomIDVectorSet< Item, ItemKeyGetter > items
void add(std::string key, const eNodeSocketDatatype socket_type)
friend bool operator!=(const BundleSignature &a, const BundleSignature &b)
friend bool operator==(const BundleSignature &a, const BundleSignature &b)
static BundleSignature from_combine_bundle_node(const bNode &node, bool allow_auto_structure_type)
std::optional< BundleSignature > get_merged_signature() const