50 while (elem_a !=
nullptr && elem_b !=
nullptr) {
54 elem_a = elem_a->
next;
55 elem_b = elem_b->
next;
57 if (elem_a ==
nullptr && elem_b ==
nullptr) {
150 return viewer_path_elem_struct_size(ViewerPathElemType(elem.type));
222 elem->base.type = type;
315 new_elem->
id = old_elem->id;
327 new_elem->
node_id = old_elem->node_id;
339 new_elem->
node_id = old_elem->node_id;
346 new_elem->iteration = old_elem->iteration;
354 new_elem->index = old_elem->index;
361 new_elem->evaluate_node_id = old_elem->evaluate_node_id;
362 new_elem->source_node_tree = old_elem->source_node_tree;
373 if (a->
type !=
b->type) {
385 return a_elem->
id == b_elem->id;
395 return a_elem->
node_id == b_elem->node_id;
405 return a_elem->
node_id == b_elem->node_id;
412 a_elem->iteration == b_elem->iteration);
419 a_elem->index == b_elem->index);
425 a_elem->evaluate_node_id == b_elem->evaluate_node_id &&
426 a_elem->source_node_tree == b_elem->source_node_tree;
438 return get_default_hash(elem.
type, typed_elem.id ? typed_elem.id->session_uid : 0);
442 return get_default_hash(elem.
type, typed_elem.modifier_uid);
446 return get_default_hash(elem.
type, typed_elem.node_id);
450 return get_default_hash(elem.
type, typed_elem.sim_output_node_id);
454 return get_default_hash(elem.
type, typed_elem.node_id);
458 return get_default_hash(elem.
type, typed_elem.repeat_output_node_id, typed_elem.iteration);
463 return get_default_hash(elem.
type, typed_elem.zone_output_node_id, typed_elem.index);
467 return get_default_hash(
469 typed_elem.evaluate_node_id,
470 typed_elem.source_output_node_id,
471 typed_elem.source_node_tree ?
472 reinterpret_cast<const ID *
>(typed_elem.source_node_tree)->
session_uid :
@ IDWALK_CB_DIRECT_WEAK_LINK
#define BKE_LIB_FOREACHID_PROCESS_ID(data_, id_, cb_flag_)
@ VIEWER_PATH_EQUAL_FLAG_IGNORE_ITERATION
@ VIEWER_PATH_EQUAL_FLAG_CONSIDER_UI_NAME
#define BLI_assert_unreachable()
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE void BLI_listbase_clear(ListBase *lb)
#define LISTBASE_FOREACH_MUTABLE(type, var, list)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
#define BLO_write_struct(writer, struct_name, data_ptr)
void BLO_read_struct_list_with_type_size(BlendDataReader *reader, size_t base_size, ListBase *list, blender::FunctionRef< size_t(const void *data)> type_size_fn)
void BLO_read_string(BlendDataReader *reader, char **ptr_p)
void BLO_write_string(BlendWriter *writer, const char *data_ptr)
@ VIEWER_PATH_ELEM_TYPE_GROUP_NODE
@ VIEWER_PATH_ELEM_TYPE_SIMULATION_ZONE
@ VIEWER_PATH_ELEM_TYPE_FOREACH_GEOMETRY_ELEMENT_ZONE
@ VIEWER_PATH_ELEM_TYPE_VIEWER_NODE
@ VIEWER_PATH_ELEM_TYPE_REPEAT_ZONE
@ VIEWER_PATH_ELEM_TYPE_MODIFIER
@ VIEWER_PATH_ELEM_TYPE_EVALUATE_CLOSURE
@ VIEWER_PATH_ELEM_TYPE_ID
struct ViewerNodeViewerPathElem ViewerNodeViewerPathElem
struct GroupNodeViewerPathElem GroupNodeViewerPathElem
struct IDViewerPathElem IDViewerPathElem
struct ViewerPathElem ViewerPathElem
struct SimulationZoneViewerPathElem SimulationZoneViewerPathElem
struct ForeachGeometryElementZoneViewerPathElem ForeachGeometryElementZoneViewerPathElem
struct EvaluateClosureNodeViewerPathElem EvaluateClosureNodeViewerPathElem
struct ModifierViewerPathElem ModifierViewerPathElem
struct RepeatZoneViewerPathElem RepeatZoneViewerPathElem
Read Guarded memory(de)allocation.
IDRemapperApplyResult apply(ID **r_id_ptr, IDRemapperApplyOptions options, ID *id_self=nullptr) const
void * MEM_callocN(size_t len, const char *str)
void MEM_freeN(void *vmemh)
uint64_t get_default_hash(const T &v, const Args &...args)
unsigned __int64 uint64_t
int32_t source_output_node_id
int repeat_output_node_id
int32_t sim_output_node_id
struct ViewerPathElem * next
void BKE_viewer_path_copy(ViewerPath *dst, const ViewerPath *src)
static size_t viewer_path_elem_struct_size(const ViewerPathElemType type)
void BKE_viewer_path_id_remap(ViewerPath *viewer_path, const blender::bke::id::IDRemapper &mappings)
uint64_t BKE_viewer_path_elem_hash(const ViewerPathElem &elem)
EvaluateClosureNodeViewerPathElem * BKE_viewer_path_elem_new_evaluate_closure()
ViewerPathElem * BKE_viewer_path_elem_copy(const ViewerPathElem *src)
ViewerNodeViewerPathElem * BKE_viewer_path_elem_new_viewer_node()
ViewerPathElem * BKE_viewer_path_elem_new(const ViewerPathElemType type)
void BKE_viewer_path_elem_free(ViewerPathElem *elem)
void BKE_viewer_path_foreach_id(LibraryForeachIDData *data, ViewerPath *viewer_path)
void BKE_viewer_path_clear(ViewerPath *viewer_path)
void BKE_viewer_path_init(ViewerPath *viewer_path)
SimulationZoneViewerPathElem * BKE_viewer_path_elem_new_simulation_zone()
ForeachGeometryElementZoneViewerPathElem * BKE_viewer_path_elem_new_foreach_geometry_element_zone()
GroupNodeViewerPathElem * BKE_viewer_path_elem_new_group_node()
static T * make_elem(const ViewerPathElemType type)
IDViewerPathElem * BKE_viewer_path_elem_new_id()
bool BKE_viewer_path_elem_equal(const ViewerPathElem *a, const ViewerPathElem *b, const ViewerPathEqualFlag flag)
ModifierViewerPathElem * BKE_viewer_path_elem_new_modifier()
void BKE_viewer_path_blend_read_data(BlendDataReader *reader, ViewerPath *viewer_path)
uint64_t BKE_viewer_path_hash(const ViewerPath &viewer_path)
bool BKE_viewer_path_equal(const ViewerPath *a, const ViewerPath *b, const ViewerPathEqualFlag flag)
RepeatZoneViewerPathElem * BKE_viewer_path_elem_new_repeat_zone()
void BKE_viewer_path_blend_write(BlendWriter *writer, const ViewerPath *viewer_path)