Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmlprofilereventtype_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | class QQmlProfilerEventType { | - |
4 | public: | - |
5 | QQmlProfilerEventType(Message message = MaximumMessage, RangeType rangeType = MaximumRangeType, | - |
6 | int detailType = -1, | - |
7 | const QQmlProfilerEventLocation &location = QQmlProfilerEventLocation(), | - |
8 | const QString &data = QString(), const QString displayName = QString()) : | - |
9 | m_displayName(displayName), m_data(data), m_location(location), m_message(message), | - |
10 | m_rangeType(rangeType), m_detailType(detailType) | - |
11 | {} executed 1636 times by 1 test: end of block Executed by:
| 1636 |
12 | - | |
13 | void setDisplayName(const QString &displayName) { m_displayName = displayName; } never executed: end of block | 0 |
14 | void setData(const QString &data) { m_data = data; } executed 64 times by 1 test: end of block Executed by:
| 64 |
15 | void setLocation(const QQmlProfilerEventLocation &location) { m_location = location; } executed 86 times by 1 test: end of block Executed by:
| 86 |
16 | - | |
17 | ProfileFeature feature() const; | - |
18 | QString displayName() const { return never executed: m_displayName;return m_displayName; never executed: }return m_displayName; | 0 |
19 | QString data() const { return executed 68 times by 1 test: m_data;return m_data; Executed by:
executed 68 times by 1 test: }return m_data; Executed by:
| 68 |
20 | QQmlProfilerEventLocation location() const { return executed 1900 times by 1 test: m_location;return m_location; Executed by:
executed 1900 times by 1 test: }return m_location; Executed by:
| 1900 |
21 | Message message() const { return executed 7783 times by 1 test: m_message;return m_message; Executed by:
executed 7783 times by 1 test: }return m_message; Executed by:
| 7783 |
22 | RangeType rangeType() const { return executed 3750 times by 1 test: m_rangeType;return m_rangeType; Executed by:
executed 3750 times by 1 test: }return m_rangeType; Executed by:
| 3750 |
23 | int detailType() const { return executed 2770 times by 1 test: m_detailType;return m_detailType; Executed by:
executed 2770 times by 1 test: }return m_detailType; Executed by:
| 2770 |
24 | - | |
25 | private: | - |
26 | friend QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventType &type); | - |
27 | friend QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventType &type); | - |
28 | - | |
29 | QString m_displayName; | - |
30 | QString m_data; | - |
31 | QQmlProfilerEventLocation m_location; | - |
32 | Message m_message; | - |
33 | RangeType m_rangeType; | - |
34 | int m_detailType; | - |
35 | }; | - |
36 | - | |
37 | QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventType &type); | - |
38 | QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventType &type); | - |
39 | - | |
40 | inline uint qHash(const QQmlProfilerEventType &type) | - |
41 | { | - |
42 | return executed 692 times by 1 test: qHash(type.location())return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000)); Executed by:
executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000)); Executed by:
| 692 |
43 | ^ (((type.message() << 12) & 0xf000) executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000)); Executed by:
| 692 |
44 | | ((type.rangeType() << 24) & 0xf000000) executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000)); Executed by:
| 692 |
45 | | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000)); executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000)); Executed by:
| 692 |
46 | } | - |
47 | - | |
48 | inline bool operator==(const QQmlProfilerEventType &type1, const QQmlProfilerEventType &type2) | - |
49 | { | - |
50 | return executed 462 times by 1 test: type1.message() == type2.message() && type1.rangeType() == type2.rangeType()return type1.message() == type2.message() && type1.rangeType() == type2.rangeType() && type1.detailType() == type2.detailType() && type1.location() == type2.location(); Executed by:
executed 462 times by 1 test: return type1.message() == type2.message() && type1.rangeType() == type2.rangeType() && type1.detailType() == type2.detailType() && type1.location() == type2.location(); Executed by:
| 462 |
51 | && type1.detailType() == type2.detailType() && type1.location() == type2.location(); executed 462 times by 1 test: return type1.message() == type2.message() && type1.rangeType() == type2.rangeType() && type1.detailType() == type2.detailType() && type1.location() == type2.location(); Executed by:
| 462 |
52 | } | - |
53 | - | |
54 | inline bool operator!=(const QQmlProfilerEventType &type1, const QQmlProfilerEventType &type2) | - |
55 | { | - |
56 | return never executed: !(type1 == type2);return !(type1 == type2); never executed: return !(type1 == type2); | 0 |
57 | } | - |
58 | - | |
59 | template<> class QTypeInfo<QQmlProfilerEventType > { public: enum { isSpecialized = true, isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QQmlProfilerEventType)>sizeof(void*)), isPointer = false, isIntegral = std::is_integral< QQmlProfilerEventType >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QQmlProfilerEventType) }; static inline const char *name() { return "QQmlProfilerEventType"; } }; | - |
60 | - | |
61 | - | |
62 | - | |
63 | template <> struct QMetaTypeId< QQmlProfilerEventType > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlProfilerEventType >("QQmlProfilerEventType", reinterpret_cast< QQmlProfilerEventType *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |