umbrello 25.12.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
moc_umlinstance.cpp
Go to the documentation of this file.
1/****************************************************************************
2** Meta object code from reading C++ file 'umlinstance.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.9.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
10#include <QtCore/qmetatype.h>
11
12#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'umlinstance.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.9.3. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
35} // unnamed namespace
36
37template <> constexpr inline auto UMLInstance::qt_create_metaobjectdata<qt_meta_tag_ZN11UMLInstanceE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "UMLInstance",
42 "attributeAdded",
43 "",
44 "UMLClassifierListItem*",
45 "attributeRemoved"
46 };
47
48 QtMocHelpers::UintData qt_methods {
49 // Slot 'attributeAdded'
50 QtMocHelpers::SlotData<void(UMLClassifierListItem *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
51 { 0x80000000 | 3, 2 },
52 }}),
53 // Slot 'attributeRemoved'
54 QtMocHelpers::SlotData<void(UMLClassifierListItem *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
55 { 0x80000000 | 3, 2 },
56 }}),
57 };
58 QtMocHelpers::UintData qt_properties {
59 };
60 QtMocHelpers::UintData qt_enums {
61 };
62 return QtMocHelpers::metaObjectData<UMLInstance, qt_meta_tag_ZN11UMLInstanceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
63 qt_methods, qt_properties, qt_enums);
64}
65Q_CONSTINIT const QMetaObject UMLInstance::staticMetaObject = { {
66 QMetaObject::SuperData::link<UMLCanvasObject::staticMetaObject>(),
67 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11UMLInstanceE_t>.stringdata,
68 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11UMLInstanceE_t>.data,
69 qt_static_metacall,
70 nullptr,
71 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11UMLInstanceE_t>.metaTypes,
72 nullptr
73} };
74
75void UMLInstance::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
76{
77 auto *_t = static_cast<UMLInstance *>(_o);
78 if (_c == QMetaObject::InvokeMetaMethod) {
79 switch (_id) {
80 case 0: _t->attributeAdded((*reinterpret_cast< std::add_pointer_t<UMLClassifierListItem*>>(_a[1]))); break;
81 case 1: _t->attributeRemoved((*reinterpret_cast< std::add_pointer_t<UMLClassifierListItem*>>(_a[1]))); break;
82 default: ;
83 }
84 }
85}
86
87const QMetaObject *UMLInstance::metaObject() const
88{
89 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
90}
91
92void *UMLInstance::qt_metacast(const char *_clname)
93{
94 if (!_clname) return nullptr;
95 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11UMLInstanceE_t>.strings))
96 return static_cast<void*>(this);
97 return UMLCanvasObject::qt_metacast(_clname);
98}
99
100int UMLInstance::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
101{
102 _id = UMLCanvasObject::qt_metacall(_c, _id, _a);
103 if (_id < 0)
104 return _id;
105 if (_c == QMetaObject::InvokeMetaMethod) {
106 if (_id < 2)
107 qt_static_metacall(this, _c, _id, _a);
108 _id -= 2;
109 }
110 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
111 if (_id < 2)
112 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
113 _id -= 2;
114 }
115 return _id;
116}
117QT_WARNING_POP
UMLInstance(const QString &instanceName=QString(), Uml::ID::Type id=Uml::ID::None, UMLClassifier *classifier=nullptr)
Definition umlinstance.cpp:34
#define Q_CONSTINIT
Definition moc_parser.cpp:27
Definition moc_parser.cpp:33