Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
IdentifiedObject< model > Class Template Reference
The IdentifiedObject class. More...
Inheritance diagram for IdentifiedObject< model >:
Detailed Description
template<typename model>
class IdentifiedObject< 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_type & | id () 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 const constexpr bool | identified_object_tag = true |
Additional Inherited Members | |
Protected Member Functions inherited from IdentifiedObjectAbstract | |
| IdentifiedObjectAbstract (const QString &name, QObject *parent) noexcept | |
Member Function Documentation
◆ id_val()
template<typename model >
|
inlinefinaloverridevirtualnoexcept |
Implements IdentifiedObjectAbstract.
◆ resetCache()
template<typename model >
|
inlineoverridevirtualnoexcept |
Implements IdentifiedObjectAbstract.
The documentation for this class was generated from the following file:
Public Member Functions inherited from