OpenCoverage

qqmltypewrapper_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmltypewrapper_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QQmlTypeNameCache;-
6class QQmlType;-
7class QQmlTypePrivate;-
8struct QQmlImportRef;-
9-
10namespace QV4 {-
11-
12namespace Heap {-
13-
14struct QQmlTypeWrapper : Object {-
15 enum TypeNameMode {-
16 IncludeEnums,-
17 ExcludeEnums-
18 };-
19-
20 void init();-
21 void destroy();-
22 TypeNameMode mode;-
23 QQmlQPointer<QObject> object;-
24-
25 QQmlType type() const;-
26-
27 QQmlTypePrivate *typePrivate;-
28 QQmlTypeNameCache *typeNamespace;-
29 const QQmlImportRef *importNamespace;-
30};-
31-
32struct QQmlScopedEnumWrapper : Object {-
33 void init() { Object::init(); }
never executed: end of block
0
34 void destroy();-
35 int scopeEnumIndex;-
36 QQmlTypePrivate *typePrivate;-
37 QQmlType type() const;-
38};-
39-
40}-
41-
42struct __attribute__((visibility("default"))) QQmlTypeWrapper : Object-
43{-
44 private: QQmlTypeWrapper() = delete; QQmlTypeWrapper(const QQmlTypeWrapper &) = delete; QQmlTypeWrapper &operator=(const QQmlTypeWrapper &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
executed 180132 times by 72 tests: end of block
Executed by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
typedef QV4::Heap::QQmlTypeWrapper Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
executed 630392 times by 72 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
&static_vtbl;
executed 630392 times by 72 tests: return &static_vtbl;
Executed by:
  • tst_examples
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlinstantiator
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • tst_qqmlmetatype
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlsqldatabase
  • ...
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QQmlTypeWrapper *d_unchecked() const { return
executed 1343350 times by 42 tests: return static_cast<QV4::Heap::QQmlTypeWrapper *>(m());
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflipable
  • tst_qquickgraphicsinfo
  • ...
static_cast<QV4::Heap::QQmlTypeWrapper *>(m());
executed 1343350 times by 42 tests: return static_cast<QV4::Heap::QQmlTypeWrapper *>(m());
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflipable
  • tst_qquickgraphicsinfo
  • ...
} QV4::Heap::QQmlTypeWrapper *d() const { QV4::Heap::QQmlTypeWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
executed 1193514 times by 42 tests: return dptr;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflipable
  • tst_qquickgraphicsinfo
  • ...
dptr;
executed 1193514 times by 42 tests: return dptr;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflipable
  • tst_qquickgraphicsinfo
  • ...
} static_assert(bool(std::is_trivial< QV4::Heap::QQmlTypeWrapper >::value), "std::is_trivial< QV4::Heap::QQmlTypeWrapper >::value");
0-1343350
45 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
executed 149828 times by 42 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmlstatemachine
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickanimatedimage
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickflipable
  • tst_qquickgraphicsinfo
  • ...
149828
46-
47 bool isSingleton() const;-
48 QObject *singletonObject() const;-
49-
50 QVariant toVariant() const;-
51-
52 static ReturnedValue create(ExecutionEngine *, QObject *, const QQmlType &,-
53 Heap::QQmlTypeWrapper::TypeNameMode = Heap::QQmlTypeWrapper::IncludeEnums);-
54 static ReturnedValue create(ExecutionEngine *, QObject *, const QQmlRefPointer<QQmlTypeNameCache> &, const QQmlImportRef *,-
55 Heap::QQmlTypeWrapper::TypeNameMode = Heap::QQmlTypeWrapper::IncludeEnums);-
56-
57protected:-
58 static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty);-
59 static bool virtualPut(Managed *m, PropertyKey id, const Value &value, Value *receiver);-
60 static PropertyAttributes virtualGetOwnProperty(Managed *m, PropertyKey id, Property *p);-
61 static bool virtualIsEqualTo(Managed *that, Managed *o);-
62 static ReturnedValue virtualInstanceOf(const Object *typeObject, const Value &var);-
63};-
64-
65struct __attribute__((visibility("default"))) QQmlScopedEnumWrapper : Object-
66{-
67 private: QQmlScopedEnumWrapper() = delete; QQmlScopedEnumWrapper(const QQmlScopedEnumWrapper &) = delete; QQmlScopedEnumWrapper &operator=(const QQmlScopedEnumWrapper &) = delete; public: template <typename Type> inline void qt_check_for_QMANAGED_macro(const Type *_q_argument) const { int i = qYouForgotTheQ_MANAGED_Macro(this, _q_argument); i = i + 1; }
never executed: end of block
typedef QV4::Heap::QQmlScopedEnumWrapper Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { return
never executed: return &static_vtbl;
&static_vtbl;
never executed: return &static_vtbl;
} void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }
never executed: end of block
QV4::Heap::QQmlScopedEnumWrapper *d_unchecked() const { return
never executed: return static_cast<QV4::Heap::QQmlScopedEnumWrapper *>(m());
static_cast<QV4::Heap::QQmlScopedEnumWrapper *>(m());
never executed: return static_cast<QV4::Heap::QQmlScopedEnumWrapper *>(m());
} QV4::Heap::QQmlScopedEnumWrapper *d() const { QV4::Heap::QQmlScopedEnumWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); return
never executed: return dptr;
dptr;
never executed: return dptr;
} static_assert(bool(std::is_trivial< QV4::Heap::QQmlScopedEnumWrapper >::value), "std::is_trivial< QV4::Heap::QQmlScopedEnumWrapper >::value");
0
68 static void virtualDestroy(QV4::Heap::Base *b) { static_cast<Data *>(b)->destroy(); }
never executed: end of block
0
69-
70 static ReturnedValue virtualGet(const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty);-
71};-
72-
73}-
74-
75-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0