IdentifiedObject< model > Class Template Reference

The IdentifiedObject class. More...

Inheritance diagram for IdentifiedObject< model >:
IdentifiedObjectAbstract score::Entity< TimeSyncModel > score::Entity< IntervalModel > score::Entity< ProcessModel > score::Entity< StateModel > score::Entity< EventModel > Scenario::TimeSyncModel Scenario::IntervalModel Process::ProcessModel Scenario::StateModel Scenario::EventModel Control::ControlProcess< Info, typename > ControlSurface::Model Curve::CurveProcessModel FaustDSP::Fx< DSP > Gfx::Filter::Model Gfx::Images::Model Gfx::Text::Model Gfx::Video::Model Gradient::ProcessModel JS::ProcessModel Media::Merger::Model Media::Metro::Model Media::Sound::ProcessModel Media::Step::Model Midi::ProcessModel Nodal::Model Patternist::ProcessModel Pd::ProcessModel Scenario::ProcessModel Spline3D::ProcessModel Spline::ProcessModel YSFX::ProcessModel oscr::ProcessModel< Info > vst3::Model

Detailed Description

template<typename model>
class IdentifiedObject< model >

The IdentifiedObject class.

An object with an unique identifier. This identifier is used to find objects in a path.

A class should only have a single child of the same type with a given identifier since QObject::findChild is used.

Public Types

using model_type = model
 
using id_type = Id< model >
 
using object_type = IdentifiedObject< model >
 

Public Member Functions

 IdentifiedObject (id_type id, const QString &name, QObject *parent) noexcept
 
template<typename Visitor >
 IdentifiedObject (Visitor &&v, QObject *parent) noexcept
 
const id_typeid () const noexcept
 
int32_t id_val () const noexcept final override
 
void setId (const id_type &id) noexcept
 
void setId (id_type &&id) noexcept
 
void resetCache () const noexcept override
 
- Public Member Functions inherited from IdentifiedObjectAbstract
void identified_object_destroying (IdentifiedObjectAbstract *o)
 To be called by subclasses.
 
void identified_object_destroyed (IdentifiedObjectAbstract *o)
 Will be called in the IdentifiedObjectAbstract destructor.
 

Public Attributes

Path< model > m_path_cache
 

Static Public Attributes

static constexpr const bool identified_object_tag = true
 

Additional Inherited Members

- Protected Member Functions inherited from IdentifiedObjectAbstract
 IdentifiedObjectAbstract (const QString &name, QObject *parent) noexcept
 

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