Blender V5.3
blender::detail::UStringEntry Struct Reference

#include <BLI_ustring.hh>

Public Attributes

std::string str
uint64_t hash

Friends

bool operator== (const UStringEntry &a, const UStringEntry &b)
bool operator== (const UStringEntry &a, const StringRef b)

Detailed Description

Unique storage for a string. Owned by a global table. Comparing pointers to the unique values in the table is enough to test for equality. Do not access these fields directly.

Definition at line 25 of file BLI_ustring.hh.

◆ operator== [1/2]

bool operator== ( const UStringEntry & a,
const StringRef b )
friend

Definition at line 34 of file BLI_ustring.hh.

References b, and str.

◆ operator== [2/2]

bool operator== ( const UStringEntry & a,
const UStringEntry & b )
friend

Definition at line 29 of file BLI_ustring.hh.

References b, and str.

Member Data Documentation

◆ hash

uint64_t blender::detail::UStringEntry::hash

◆ str

std::string blender::detail::UStringEntry::str

Definition at line 26 of file BLI_ustring.hh.

Referenced by operator==, and operator==.


The documentation for this struct was generated from the following file: