This class implements a value‐semantic Guid type.

Synopsis

Declared in <bdlb_guid.h>

class Guid;

Description

Each object represents an unconstrained Guid object, but its uniqueness is not guaranteed, and this component provides no ability to generate a GUID.

This class provides a constructor and several accessors with names and parameters phrased using RFC 4122 field names. These names are used (by RFC 4122 and this component) as designators for parts of the GUID even when those names do not accurately describe the parts (for example, time low names bytes 0‐3 of the GUID regardless of whether the values of those bytes come from a clock or are generated randomly).

Enums

Name

Description

Unnamed enum

GUID layout constants.

Member Functions

Name

Description

Guid [constructor]

Constructors

operator=

Assignment operators

begin

Return a pointer to the first byte of this GUID.

clockSeqHi

Return the 5‐bit value of the clk_seq_hi_res field of this guid as specified in RFC 4122, excluding the variant bits.

clockSeqHiRes

Return the 8‐bit clk_seq_hi_res field of this guid as specified in RFC 4122.

clockSeqLow

Return the 8‐bit clk_seq_low field of this guid as specified in RFC 4122.

data

Return a pointer offering unmodifiable access to the most significant byte of this guid object.

end

Return a pointer one past the end of the least significant byte of this guid object.

format

Write the value of this object to the specified output buffer.

node

Return the 48‐bit node field of this guid as specified in RFC 4122.

operator[]

Return the byte at the specified offset in this guid.

print

Write the value of this object to the specified output stream.

timeHi

Return the 12‐bit value of the time_hi_and_version field of this guid as specified in RFC 4122, excluding the version bits.

timeHiAndVersion

Return the 16‐bit time_hi_and_version field of this guid as specified in RFC 4122.

timeLow

Return the 32‐bit time_low field of this guid as specified in RFC 4122.

timeMid

Return the 16‐bit time_mid field of this guid as specified in RFC 4122.

variant

Return the 3‐bit variant portion of the clk_seq_hi_res field of this guid as specified in RFC 4122.

version

Return the four‐bit version portion of the time_hi_and_version field of this guid as specified in RFC 4122.

operator BloombergLP::bslmf::NestedTraitDeclaration<Guid, is_trivially_copyable>

Declare that this type is bitwise equality comparable.

Friends

Name

Description

BloombergLP::bdlb::operator!=

Return true if the specified lhs and rhs have different values.

BloombergLP::bdlb::operator==

Return true if the specified lhs and rhs have the same value.

Non-Member Functions

Name

Description

operator<

Return true if the specified lhs is less than the specified rhs.

operator<=

Return true if the specified lhs is less than or equal to rhs.

operator>

Return true if the specified lhs is greater than the specified rhs.

operator>=

Return true if the specified lhs is greater than or equal to rhs.

Created with MrDocs