Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::utils::UuidIdentifiableObject< Derived > Class Template Reference

Base class for objects that need to be uniquely identified by UUID. More...

#include <src/utils/uuid_identifiable_object.h>

Data Structures

struct  Uuid
 

Public Member Functions

 UuidIdentifiableObject (const Uuid &id)
 
 UuidIdentifiableObject (const UuidIdentifiableObject &other)=default
 
UuidIdentifiableObjectoperator= (const UuidIdentifiableObject &other)=default
 
 UuidIdentifiableObject (UuidIdentifiableObject &&other)=default
 
UuidIdentifiableObjectoperator= (UuidIdentifiableObject &&other)=default
 
auto get_uuid () const
 

Friends

void init_from (UuidIdentifiableObject &obj, const UuidIdentifiableObject &other, utils::ObjectCloneType clone_type)
 
void to_json (nlohmann::json &j, const UuidIdentifiableObject &obj)
 
void from_json (const nlohmann::json &j, UuidIdentifiableObject &obj)
 
bool operator== (const UuidIdentifiableObject &lhs, const UuidIdentifiableObject &rhs)
 

Detailed Description

template<typename Derived>
class zrythm::utils::UuidIdentifiableObject< Derived >

Base class for objects that need to be uniquely identified by UUID.

Definition at line 23 of file uuid_identifiable_object.h.

Constructor & Destructor Documentation

◆ UuidIdentifiableObject() [1/2]

template<typename Derived>
zrythm::utils::UuidIdentifiableObject< Derived >::UuidIdentifiableObject ( )
inline

Definition at line 51 of file uuid_identifiable_object.h.

◆ UuidIdentifiableObject() [2/2]

template<typename Derived>
zrythm::utils::UuidIdentifiableObject< Derived >::UuidIdentifiableObject ( const Uuid & id)
inline

Definition at line 52 of file uuid_identifiable_object.h.

Member Function Documentation

◆ get_uuid()

template<typename Derived>
auto zrythm::utils::UuidIdentifiableObject< Derived >::get_uuid ( ) const
inline

Definition at line 60 of file uuid_identifiable_object.h.

Friends And Related Symbol Documentation

◆ from_json

template<typename Derived>
void from_json ( const nlohmann::json & j,
UuidIdentifiableObject< Derived > & obj )
friend

Definition at line 81 of file uuid_identifiable_object.h.

◆ init_from

template<typename Derived>
void init_from ( UuidIdentifiableObject< Derived > & obj,
const UuidIdentifiableObject< Derived > & other,
utils::ObjectCloneType clone_type )
friend

Definition at line 62 of file uuid_identifiable_object.h.

◆ operator==

template<typename Derived>
bool operator== ( const UuidIdentifiableObject< Derived > & lhs,
const UuidIdentifiableObject< Derived > & rhs )
friend

Definition at line 86 of file uuid_identifiable_object.h.

◆ to_json

template<typename Derived>
void to_json ( nlohmann::json & j,
const UuidIdentifiableObject< Derived > & obj )
friend

Definition at line 77 of file uuid_identifiable_object.h.


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