|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | blender::DefaultHash< SessionUID > |
Namespaces | |
| namespace | blender |
Functions | |
| SessionUID | BLI_session_uid_generate (void) |
| bool | BLI_session_uid_is_generated (const SessionUID *uid) |
| bool | BLI_session_uid_is_equal (const SessionUID *lhs, const SessionUID *rhs) |
| uint64_t | BLI_session_uid_hash_uint64 (const SessionUID *uid) |
| uint | BLI_session_uid_ghash_hash (const void *uid_v) |
| bool | BLI_session_uid_ghash_compare (const void *lhs_v, const void *rhs_v) |
| bool | blender::operator== (const SessionUID &lhs, const SessionUID &rhs) |
Functions for generating and handling "Session UIDs".
Note that these are not true universally-unique identifiers, but only unique during the current Blender session.
For true UUIDs, see BLI_uuid.h.
Definition in file BLI_session_uid.h.
| SessionUID BLI_session_uid_generate | ( | void | ) |
Generate new UID which is unique throughout the Blender session.
Definition at line 22 of file session_uid.cc.
References atomic_add_and_fetch_uint64(), BLI_session_uid_is_generated(), global_session_uid, and result.
Referenced by BKE_pose_channel_session_uid_generate(), blender::seq::relations_session_uid_generate(), and TEST().
| bool BLI_session_uid_ghash_compare | ( | const void * | lhs_v, |
| const void * | rhs_v ) |
Definition at line 59 of file session_uid.cc.
References BLI_session_uid_is_equal(), and rhs.
Referenced by BKE_pose_check_uids_unique_and_report(), and blender::seq::relations_check_uids_unique_and_report().
| uint BLI_session_uid_ghash_hash | ( | const void * | uid_v | ) |
Definition at line 53 of file session_uid.cc.
References SessionUID::uid_.
Referenced by BKE_pose_check_uids_unique_and_report(), and blender::seq::relations_check_uids_unique_and_report().
| uint64_t BLI_session_uid_hash_uint64 | ( | const SessionUID * | uid | ) |
Definition at line 48 of file session_uid.cc.
References SessionUID::uid_.
Referenced by blender::DefaultHash< SessionUID >::operator()().
| bool BLI_session_uid_is_equal | ( | const SessionUID * | lhs, |
| const SessionUID * | rhs ) |
Check whether two UIDs are identical.
Definition at line 43 of file session_uid.cc.
References rhs, and SessionUID::uid_.
Referenced by BLI_session_uid_ghash_compare(), BLI_session_uid_is_generated(), blender::operator==(), and TEST().
| bool BLI_session_uid_is_generated | ( | const SessionUID * | uid | ) |
Check whether the UID is properly generated.
Definition at line 38 of file session_uid.cc.
References BLI_session_uid_is_equal(), and global_session_uid_none.
Referenced by blender::deg::ObjectRuntimeBackup::backup_pose_channel_runtime_data(), BKE_pose_check_uids_unique_and_report(), BLI_session_uid_generate(), blender::seq::get_uids_cb(), blender::deg::strip_init_cb(), blender::deg::strip_restore_cb(), and TEST().