|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
A reference-counted RAII wrapper for a UUID in a registry. More...
#include <src/utils/uuid_identifiable_object.h>
Public Types | |
| using | UuidType = typename RegistryT::UuidType |
| using | VariantType = typename RegistryT::VariantType |
Public Member Functions | |
| UuidReference (RegistryT ®istry) | |
| UuidReference (const UuidType &id, RegistryT ®istry) | |
| UuidReference (const UuidReference &other) | |
| UuidReference & | operator= (const UuidReference &other) |
| UuidReference (UuidReference &&other) | |
| UuidReference & | operator= (UuidReference &&other) |
| auto | id () const -> UuidType |
| void | set_id (const UuidType &id) |
| To be used when using the Registry-only constructor. | |
| VariantType | get_object () const |
| template<typename ObjectT> requires IsInVariant<ObjectT *, VariantType> | |
| ObjectT * | get_object_as () const |
| RegistryT::BaseType * | get_object_base () const |
| template<typename... Args> | |
| UuidReference | clone_new_identity (Args &&... args) const |
| auto | get_iterator_in_registry () const |
| auto | get_iterator_in_registry () |
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) |
A reference-counted RAII wrapper for a UUID in a registry.
Objects that refer to an object's UUID must use this wrapper.
| RegistryT |
Definition at line 138 of file uuid_identifiable_object.h.
| using zrythm::utils::UuidReference< RegistryT >::UuidType = typename RegistryT::UuidType |
Definition at line 141 of file uuid_identifiable_object.h.
| using zrythm::utils::UuidReference< RegistryT >::VariantType = typename RegistryT::VariantType |
Definition at line 142 of file uuid_identifiable_object.h.
|
inline |
Definition at line 145 of file uuid_identifiable_object.h.
|
inline |
Definition at line 147 of file uuid_identifiable_object.h.
|
inline |
Definition at line 153 of file uuid_identifiable_object.h.
|
inline |
Definition at line 172 of file uuid_identifiable_object.h.
|
inline |
Definition at line 196 of file uuid_identifiable_object.h.
|
inline |
Definition at line 237 of file uuid_identifiable_object.h.
|
inline |
Definition at line 251 of file uuid_identifiable_object.h.
|
inline |
Definition at line 246 of file uuid_identifiable_object.h.
|
inline |
Definition at line 218 of file uuid_identifiable_object.h.
|
inline |
Definition at line 225 of file uuid_identifiable_object.h.
|
inline |
Definition at line 231 of file uuid_identifiable_object.h.
|
inline |
Definition at line 198 of file uuid_identifiable_object.h.
|
inline |
Definition at line 161 of file uuid_identifiable_object.h.
|
inline |
Definition at line 180 of file uuid_identifiable_object.h.
|
inline |
To be used when using the Registry-only constructor.
This is useful when deserializing UuidReference types: First construct with just the registry, then from_json() should call this to set the ID and acquire a reference.
Definition at line 207 of file uuid_identifiable_object.h.
|
friend |
Definition at line 282 of file uuid_identifiable_object.h.
|
friend |
Definition at line 290 of file uuid_identifiable_object.h.
|
friend |
Definition at line 277 of file uuid_identifiable_object.h.