score::Entity< T > Class Template Reference

Base for complex model objects. More...

Inheritance diagram for score::Entity< T >:
IdentifiedObject< T > IdentifiedObjectAbstract

Detailed Description

template<typename T>
class score::Entity< T >

Base for complex model objects.

This class should be used by plug-in authors to provide model classes with associated components.

It has :

  • Metadata : name, label, comments, color
  • Components : a way to extend models through plug-ins.
See also
score::Component

Public Types

using entity_type = Entity< T >
 
- Public Types inherited from IdentifiedObject< T >
using model_type = T
 
using id_type = Id< T >
 
using object_type = IdentifiedObject< T >
 

Public Member Functions

 Entity (Id< T > id, const QString &name, QObject *parent) noexcept
 
template<typename Visitor >
 Entity (Visitor &&vis, QObject *parent) noexcept
 
const score::Componentscomponents () const noexcept
 
score::Componentscomponents () noexcept
 
const score::ModelMetadatametadata () const noexcept
 
score::ModelMetadatametadata () noexcept
 
- Public Member Functions inherited from IdentifiedObject< T >
 IdentifiedObject (id_type id, const QString &name, QObject *parent) noexcept
 
 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.
 

Static Public Attributes

static constexpr const bool entity_tag = true
 
- Static Public Attributes inherited from IdentifiedObject< T >
static constexpr const bool identified_object_tag
 

Additional Inherited Members

- Public Attributes inherited from IdentifiedObject< T >
Path< T > m_path_cache
 
- Protected Member Functions inherited from IdentifiedObjectAbstract
 IdentifiedObjectAbstract (const QString &name, QObject *parent) noexcept
 

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