Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmltypewrapper_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQmlTypeNameCache; | - |
6 | class QQmlType; | - |
7 | class QQmlTypePrivate; | - |
8 | struct QQmlImportRef; | - |
9 | - | |
10 | namespace QV4 { | - |
11 | - | |
12 | namespace Heap { | - |
13 | - | |
14 | struct 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 | - | |
32 | struct 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 | - | |
42 | struct __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: typedef QV4::Heap::QQmlTypeWrapper Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block Executed by:
executed 630392 times by 72 tests: &static_vtbl;return &static_vtbl; Executed by:
executed 630392 times by 72 tests: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl; Executed by:
never executed: QV4::Heap::QQmlTypeWrapper *d_unchecked() const { returnend of block executed 1343350 times by 42 tests: static_cast<QV4::Heap::QQmlTypeWrapper *>(m());return static_cast<QV4::Heap::QQmlTypeWrapper *>(m()); Executed by:
executed 1343350 times by 42 tests: } QV4::Heap::QQmlTypeWrapper *d() const { QV4::Heap::QQmlTypeWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QQmlTypeWrapper *>(m()); Executed by:
executed 1193514 times by 42 tests: dptr;return dptr; Executed by:
executed 1193514 times by 42 tests: } static_assert(bool(std::is_trivial< QV4::Heap::QQmlTypeWrapper >::value), "std::is_trivial< QV4::Heap::QQmlTypeWrapper >::value");return dptr; Executed by:
| 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:
| 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 | - | |
57 | protected: | - |
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 | - | |
65 | struct __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: typedef QV4::Heap::QQmlScopedEnumWrapper Data; typedef Object SuperClass; static const QV4::VTable static_vtbl; static inline const QV4::VTable *staticVTable() { returnend of block never executed: &static_vtbl;return &static_vtbl; never executed: } void __dataTest() { static_assert (sizeof(*this) == sizeof(Managed), "Classes derived from Managed can't have own data members."); }return &static_vtbl; never executed: QV4::Heap::QQmlScopedEnumWrapper *d_unchecked() const { returnend of block never executed: static_cast<QV4::Heap::QQmlScopedEnumWrapper *>(m());return static_cast<QV4::Heap::QQmlScopedEnumWrapper *>(m()); never executed: } QV4::Heap::QQmlScopedEnumWrapper *d() const { QV4::Heap::QQmlScopedEnumWrapper *dptr = d_unchecked(); dptr->_checkIsInitialized(); returnreturn static_cast<QV4::Heap::QQmlScopedEnumWrapper *>(m()); never executed: dptr;return dptr; never executed: } static_assert(bool(std::is_trivial< QV4::Heap::QQmlScopedEnumWrapper >::value), "std::is_trivial< QV4::Heap::QQmlScopedEnumWrapper >::value");return dptr; | 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 code | Preprocessed file |