|
Blender V5.3
|
#include <BLI_uuid.hh>
Inherits blender::bUUID.
Public Member Functions | |
| UUID ()=default | |
| UUID (const bUUID &struct_uuid) | |
| UUID (std::initializer_list< uint32_t > field_values) | |
| UUID (StringRefNull string_formatted_uuid) | |
| std::string | str () const |
| uint64_t | hash () const |
Additional Inherited Members | |
| Public Attributes inherited from blender::bUUID | |
| uint32_t | time_low = 0 |
| uint16_t | time_mid = 0 |
| uint16_t | time_hi_and_version = 0 |
| uint8_t | clock_seq_hi_and_reserved = 0 |
| uint8_t | clock_seq_low = 0 |
| uint8_t | node [6] = {} |
Definition at line 63 of file BLI_uuid.hh.
|
default |
Default constructor, used with bUUID value{};, will initialize to the nil UUID.
Referenced by blender::bke::project_asset_libraries_to_toml(), and blender::bke::project_asset_library_add().
| blender::UUID::UUID | ( | const bUUID & | struct_uuid | ) |
| blender::UUID::UUID | ( | std::initializer_list< uint32_t > | field_values | ) |
Initialize from 11 integers, 5 for the regular fields and 6 for the node array.
Definition at line 132 of file uuid.cc.
References BLI_assert_msg, blender::bUUID::clock_seq_hi_and_reserved, blender::bUUID::clock_seq_low, blender::bUUID::time_hi_and_version, blender::bUUID::time_low, and blender::bUUID::time_mid.
|
explicit |
Initialize by parsing the string; undefined behavior when the string is invalid.
Definition at line 147 of file uuid.cc.
References blender::BLI_uuid_parse_string(), and blender::StringRefNull::c_str().
| uint64_t blender::UUID::hash | ( | ) | const |
| std::string blender::UUID::str | ( | ) | const |
Return the UUID as formatted ASCII string, see BLI_uuid_format().
Definition at line 162 of file uuid.cc.
References blender::BLI_uuid_format(), and blender::data.
Referenced by blender::ed::asset::index::init_value_from_file_indexer_entry(), blender::bke::project_asset_libraries_to_toml(), blender::tests::TEST(), and UUID().