|
Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
|
Untyped, reference-counted UUID reference into an IObjectRegistry. More...
#include <src/utils/uuid_reference.h>

Public Member Functions | |
| UuidReference (const QUuid &id, IObjectRegistry ®istry) | |
| UuidReference (IObjectRegistry ®istry) | |
| UuidReference (const UuidReference &other) | |
| UuidReference & | operator= (const UuidReference &other) |
| UuidReference (UuidReference &&other) noexcept | |
| UuidReference & | operator= (UuidReference &&other) noexcept |
| QUuid | id () const |
| void | set_id (const QUuid &id) |
| UuidIdentifiableBase * | get () const |
| UuidIdentifiableBase * | get_or_throw () const |
| bool | has_value () const |
| IObjectRegistry & | get_registry () const |
Protected Member Functions | |
| void | acquire_ref () |
| void | release_ref () |
Protected Attributes | |
| std::optional< QUuid > | id_ |
| IObjectRegistry * | registry_ = nullptr |
Friends | |
| void | to_json (nlohmann::json &j, const UuidReference &ref) |
| void | from_json (const nlohmann::json &j, UuidReference &ref) |
| bool | operator== (const UuidReference &lhs, const UuidReference &rhs) |
Untyped, reference-counted UUID reference into an IObjectRegistry.
Holds a raw QUuid and a pointer to IObjectRegistry. Acquires/releases reference counts on construction/destruction so the registry can manage object lifetimes. Returns UuidIdentifiableBase* from get() — callers that need a specific type should use TypedUuidReference<T> instead.
Can be in an unengaged state (no id) for deferred initialization during deserialization.
Definition at line 23 of file uuid_reference.h.
|
inline |
Definition at line 28 of file uuid_reference.h.
|
inline |
Definition at line 34 of file uuid_reference.h.
|
inline |
Definition at line 36 of file uuid_reference.h.
|
inlinenoexcept |
Definition at line 60 of file uuid_reference.h.
|
inline |
Definition at line 77 of file uuid_reference.h.
|
inlineprotected |
Definition at line 132 of file uuid_reference.h.
|
inline |
Definition at line 92 of file uuid_reference.h.
|
inline |
Definition at line 99 of file uuid_reference.h.
|
inline |
Definition at line 117 of file uuid_reference.h.
|
inline |
Definition at line 115 of file uuid_reference.h.
|
inline |
Definition at line 79 of file uuid_reference.h.
|
inline |
Definition at line 45 of file uuid_reference.h.
|
inlinenoexcept |
Definition at line 66 of file uuid_reference.h.
|
inlineprotected |
Definition at line 140 of file uuid_reference.h.
|
inline |
Definition at line 81 of file uuid_reference.h.
|
friend |
Definition at line 126 of file uuid_reference.h.
|
protected |
Definition at line 148 of file uuid_reference.h.
|
protected |
Definition at line 149 of file uuid_reference.h.