18 for (
const int i : this->
inputs.index_range()) {
20 if (item.
key == key) {
29 for (
const int i : this->
outputs.index_range()) {
31 if (item.
key == key) {
50 return a.
inputs.as_span() ==
b.inputs.as_span() && a.
outputs.as_span() ==
b.outputs.as_span();
59 const bool allow_auto_structure_type)
63 const bNode *input_node =
70 const bNodeSocket &socket = input_node->output_socket(i);
76 signature.
inputs.add({item.
name, stype, structure_type});
87 signature.
outputs.add({item.
name, stype, structure_type});
94 const bool allow_auto_structure_type)
106 signature.
inputs.add({item.
name, stype, structure_type});
116 signature.
outputs.add({item.
name, stype, structure_type});
127 signature.
inputs.add({.key =
"Index",
144 if (item.define_signature) {
154 for (
const Item &src_signature : this->
items) {
156 if (!signature.
inputs.add(item)) {
169 if (!signature.
outputs.add(item)) {
constexpr IndexRange()=default
const bNode * get_corresponding_input(const bNodeTree &tree, const bNode &output_bnode) const
friend bool operator==(const ClosureSignature &a, const ClosureSignature &b)
std::optional< int > find_output_index(StringRef key) const
CustomIDVectorSet< Item, ItemKeyGetter > inputs
std::optional< int > find_input_index(StringRef key) const
CustomIDVectorSet< Item, ItemKeyGetter > outputs
void set_auto_structure_types()
friend bool operator!=(const ClosureSignature &a, const ClosureSignature &b)
static ClosureSignature from_evaluate_closure_node(const bNode &node, bool allow_auto_structure_type)
static ClosureSignature from_closure_output_node(const bNode &node, bool allow_auto_structure_type)
static ClosureSignature from_closure_to_list_node(const bNode &node)
#define storage(slot, qualifiers)
const bNodeZoneType * zone_type_by_node_type(const int node_type)
bNodeSocketType * node_socket_type_find(StringRef idname)
bNodeSocketType * node_socket_type_find_static(int type, int subtype=0)
NodeSocketInterfaceStructureType get_structure_type_for_bundle_signature(const bNodeSocket &socket, const NodeSocketInterfaceStructureType stored_structure_type, const bool allow_auto_structure_type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
NodeSocketInterfaceStructureType
eNodeSocketDatatype socket_type
NodeSocketInterfaceStructureType structure_type
NodeSocketInterfaceStructureType structure_type
eNodeSocketDatatype socket_type
eNodeSocketDatatype socket_type
NodeSocketInterfaceStructureType structure_type
NodeSocketInterfaceStructureType structure_type
const bke::bNodeSocketType * type
bool has_type_definition() const
std::optional< ClosureSignature > get_merged_signature() const