Blender V4.5
blender::bUUID Class Reference

#include <BLI_uuid.h>

Inherits bUUID.

Public Member Functions

 bUUID ()=default
 
 bUUID (const ::bUUID &struct_uuid)
 
 bUUID (std::initializer_list< uint32_t > field_values)
 
 bUUID (StringRefNull string_formatted_uuid)
 
std::string str () const
 
uint64_t hash () const
 

Additional Inherited Members

- Public Attributes inherited from bUUID
uint32_t time_low
 
uint16_t time_mid
 
uint16_t time_hi_and_version
 
uint8_t clock_seq_hi_and_reserved
 
uint8_t clock_seq_low
 
uint8_t node [6]
 

Detailed Description

Definition at line 62 of file BLI_uuid.h.

Constructor & Destructor Documentation

◆ bUUID() [1/4]

blender::bUUID::bUUID ( )
default

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

◆ bUUID() [2/4]

bUUID::bUUID ( const ::bUUID & struct_uuid)

Initialize from the bUUID DNA struct.

Definition at line 166 of file uuid.cc.

◆ bUUID() [3/4]

bUUID::bUUID ( 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 141 of file uuid.cc.

References BLI_assert_msg, bUUID::clock_seq_hi_and_reserved, bUUID::clock_seq_low, this, bUUID::time_hi_and_version, bUUID::time_low, and bUUID::time_mid.

◆ bUUID() [4/4]

bUUID::bUUID ( StringRefNull string_formatted_uuid)
explicit

Initialize by parsing the string; undefined behavior when the string is invalid.

Definition at line 156 of file uuid.cc.

References BLI_uuid_parse_string(), and blender::StringRefNull::c_str().

Member Function Documentation

◆ hash()

uint64_t bUUID::hash ( ) const

Definition at line 178 of file uuid.cc.

◆ str()

std::string bUUID::str ( ) const

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