Blender V5.3
blender::UUID Class Reference

#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] = {}

Detailed Description

Definition at line 63 of file BLI_uuid.hh.

Constructor & Destructor Documentation

◆ UUID() [1/4]

blender::UUID::UUID ( )
default

Default constructor, used with bUUID value{};, will initialize to the nil UUID.

References hash(), and str().

Referenced by blender::bke::project_asset_libraries_to_toml(), and blender::bke::project_asset_library_add().

◆ UUID() [2/4]

blender::UUID::UUID ( const bUUID & struct_uuid)

Initialize from the bUUID DNA struct.

Definition at line 157 of file uuid.cc.

◆ UUID() [3/4]

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.

◆ UUID() [4/4]

blender::UUID::UUID ( StringRefNull string_formatted_uuid)
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().

Member Function Documentation

◆ hash()

uint64_t blender::UUID::hash ( ) const

Definition at line 169 of file uuid.cc.

Referenced by UUID().

◆ str()

std::string blender::UUID::str ( ) const

The documentation for this class was generated from the following files: