44 return {&
storage->input_items.items,
45 &
storage->input_items.items_num,
46 &
storage->input_items.active_index};
57 MEM_SAFE_DELETE(item->
name);
91 return "Item_" + std::to_string(item.
identifier);
118 return {&
storage->output_items.items,
119 &
storage->output_items.items_num,
120 &
storage->output_items.active_index};
131 MEM_SAFE_DELETE(item->
name);
165 return "Item_" + std::to_string(item.
identifier);
192 return {&
storage->input_items.items,
193 &
storage->input_items.items_num,
194 &
storage->input_items.active_index};
205 MEM_SAFE_DELETE(item->
name);
240 return "Item_" + std::to_string(item.
identifier);
267 return {&
storage->output_items.items,
268 &
storage->output_items.items_num,
269 &
storage->output_items.active_index};
280 MEM_SAFE_DELETE(item->
name);
315 return "Item_" + std::to_string(item.
identifier);
#define storage(slot, qualifiers)
bool node_tree_type_supports_socket_type_static(const int ntree_type, const eNodeSocketDatatype socket_type)
void set_item_name_and_make_unique(bNode &node, typename Accessor::ItemT &item, const char *value)
const bNodeSocket * evaluate_closure_node_internally_linked_input(const bNodeSocket &output_socket)
bool socket_type_supported_in_closure(const eNodeSocketDatatype socket_type, const int ntree_type)
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
eNodeSocketDatatype socket_type
eNodeSocketDatatype socket_type
static constexpr StringRefNull remove_item
static constexpr StringRefNull add_item
static constexpr StringRefNull move_item
static constexpr StringRefNull items
static constexpr StringRefNull active_index
static constexpr StringRefNull list
static socket_items::SocketItemsRef< ItemT > get_items_from_node(bNode &node)
static void init_with_socket_type_and_name(bNode &node, ItemT &item, const eNodeSocketDatatype socket_type, const char *name)
static void destruct_item(ItemT *item)
static constexpr bool has_type
static void copy_item(const ItemT &src, ItemT &dst)
static void blend_write_item(BlendWriter *writer, const ItemT &item)
static constexpr bool has_name
static std::string socket_identifier_for_item(const ItemT &item)
static char ** get_name(ItemT &item)
static eNodeSocketDatatype get_socket_type(const ItemT &item)
static void blend_read_data_item(BlendDataReader *reader, ItemT &item)
static StructRNA ** item_srna
static constexpr StringRefNull node_idname
NodeClosureOutputItem ItemT
static bool supports_socket_type(const eNodeSocketDatatype socket_type, const int ntree_type)
static constexpr StringRefNull move_item
static constexpr StringRefNull remove_item
static constexpr StringRefNull add_item
static constexpr StringRefNull active_index
static constexpr StringRefNull items
static constexpr StringRefNull list
static constexpr StringRefNull node_idname
static void copy_item(const ItemT &src, ItemT &dst)
static void blend_read_data_item(BlendDataReader *reader, ItemT &item)
static void blend_write_item(BlendWriter *writer, const ItemT &item)
static socket_items::SocketItemsRef< ItemT > get_items_from_node(bNode &node)
NodeEvaluateClosureOutputItem ItemT
static std::string socket_identifier_for_item(const ItemT &item)
static constexpr bool has_name
static void destruct_item(ItemT *item)
static void init_with_socket_type_and_name(bNode &node, ItemT &item, const eNodeSocketDatatype socket_type, const char *name)
static constexpr bool has_type
static StructRNA ** item_srna
static bool supports_socket_type(const eNodeSocketDatatype socket_type, const int ntree_type)
static eNodeSocketDatatype get_socket_type(const ItemT &item)
static char ** get_name(ItemT &item)