| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #ifndef QFLAGPOINTER_P_H | - |
| 41 | #define QFLAGPOINTER_P_H | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | #include <QtCore/qglobal.h> | - |
| 55 | | - |
| 56 | QT_BEGIN_NAMESPACE | - |
| 57 | | - |
| 58 | template<typename T> | - |
| 59 | class QFlagPointer { | - |
| 60 | public: | - |
| 61 | inline QFlagPointer(); | - |
| 62 | inline QFlagPointer(T *); | - |
| 63 | inline QFlagPointer(const QFlagPointer<T> &o); | - |
| 64 | | - |
| 65 | inline bool isNull() const; | - |
| 66 | | - |
| 67 | inline bool flag() const; | - |
| 68 | inline void setFlag(); | - |
| 69 | inline void clearFlag(); | - |
| 70 | inline void setFlagValue(bool); | - |
| 71 | | - |
| 72 | inline bool flag2() const; | - |
| 73 | inline void setFlag2(); | - |
| 74 | inline void clearFlag2(); | - |
| 75 | inline void setFlag2Value(bool); | - |
| 76 | | - |
| 77 | inline QFlagPointer<T> &operator=(const QFlagPointer &o); | - |
| 78 | inline QFlagPointer<T> &operator=(T *); | - |
| 79 | | - |
| 80 | inline T *operator->() const; | - |
| 81 | inline T *operator*() const; | - |
| 82 | | - |
| 83 | inline T *data() const; | - |
| 84 | | - |
| 85 | inline explicit operator bool() const; | - |
| 86 | | - |
| 87 | private: | - |
| 88 | quintptr ptr_value = 0; | - |
| 89 | | - |
| 90 | static const quintptr FlagBit = 0x1; | - |
| 91 | static const quintptr Flag2Bit = 0x2; | - |
| 92 | static const quintptr FlagsMask = FlagBit | Flag2Bit; | - |
| 93 | }; | - |
| 94 | | - |
| 95 | template<typename T, typename T2> | - |
| 96 | class QBiPointer { | - |
| 97 | public: | - |
| 98 | inline QBiPointer(); | - |
| 99 | inline QBiPointer(T *); | - |
| 100 | inline QBiPointer(T2 *); | - |
| 101 | inline QBiPointer(const QBiPointer<T, T2> &o); | - |
| 102 | | - |
| 103 | inline bool isNull() const; | - |
| 104 | inline bool isT1() const; | - |
| 105 | inline bool isT2() const; | - |
| 106 | | - |
| 107 | inline bool flag() const; | - |
| 108 | inline void setFlag(); | - |
| 109 | inline void clearFlag(); | - |
| 110 | inline void setFlagValue(bool); | - |
| 111 | | - |
| 112 | inline QBiPointer<T, T2> &operator=(const QBiPointer<T, T2> &o); | - |
| 113 | inline QBiPointer<T, T2> &operator=(T *); | - |
| 114 | inline QBiPointer<T, T2> &operator=(T2 *); | - |
| 115 | | - |
| 116 | inline T *asT1() const; | - |
| 117 | inline T2 *asT2() const; | - |
| 118 | | - |
| 119 | private: | - |
| 120 | quintptr ptr_value = 0; | - |
| 121 | | - |
| 122 | static const quintptr FlagBit = 0x1; | - |
| 123 | static const quintptr Flag2Bit = 0x2; | - |
| 124 | static const quintptr FlagsMask = FlagBit | Flag2Bit; | - |
| 125 | }; | - |
| 126 | | - |
| 127 | template<typename T> | - |
| 128 | QFlagPointer<T>::QFlagPointer() | - |
| 129 | { | - |
| 130 | } | - |
| 131 | | - |
| 132 | template<typename T> | - |
| 133 | QFlagPointer<T>::QFlagPointer(T *v) | - |
| 134 | : ptr_value(quintptr(v)) | - |
| 135 | { | - |
| 136 | Q_ASSERT((ptr_value & FlagsMask) == 0); | - |
| 137 | }executed 219089 times by 117 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- ...
| 219089 |
| 138 | | - |
| 139 | template<typename T> | - |
| 140 | QFlagPointer<T>::QFlagPointer(const QFlagPointer<T> &o) | - |
| 141 | : ptr_value(o.ptr_value) | - |
| 142 | { | - |
| 143 | }executed 1068 times by 34 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_examples
- tst_multipointtoucharea_interop
- tst_qmldiskcache
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlinstantiator
- tst_qqmllistmodel
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquickitemparticle
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| 1068 |
| 144 | | - |
| 145 | template<typename T> | - |
| 146 | bool QFlagPointer<T>::isNull() const | - |
| 147 | { | - |
| 148 | return 0 == (ptr_value & (~FlagsMask));executed 53744006 times by 137 tests: return 0 == (ptr_value & (~FlagsMask));Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- ...
| 53744006 |
| 149 | } | - |
| 150 | | - |
| 151 | template<typename T> | - |
| 152 | bool QFlagPointer<T>::flag() const | - |
| 153 | { | - |
| 154 | return ptr_value & FlagBit;executed 15775265 times by 146 tests: return ptr_value & FlagBit;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- ...
| 15775265 |
| 155 | } | - |
| 156 | | - |
| 157 | template<typename T> | - |
| 158 | void QFlagPointer<T>::setFlag() | - |
| 159 | { | - |
| 160 | ptr_value |= FlagBit; | - |
| 161 | }executed 4529404 times by 146 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- ...
| 4529404 |
| 162 | | - |
| 163 | template<typename T> | - |
| 164 | void QFlagPointer<T>::clearFlag() | - |
| 165 | { | - |
| 166 | ptr_value &= ~FlagBit; | - |
| 167 | }executed 3221716 times by 130 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 3221716 |
| 168 | | - |
| 169 | template<typename T> | - |
| 170 | void QFlagPointer<T>::setFlagValue(bool v) | - |
| 171 | { | - |
| 172 | if (v) setFlag();executed 3675196 times by 122 tests: setFlag();Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| TRUE | evaluated 3675196 times by 122 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| | FALSE | evaluated 3221642 times by 130 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
|
| 3221642-3675196 |
| 173 | else clearFlag();executed 3221642 times by 130 tests: clearFlag();Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 3221642 |
| 174 | } | - |
| 175 | | - |
| 176 | template<typename T> | - |
| 177 | bool QFlagPointer<T>::flag2() const | - |
| 178 | { | - |
| 179 | return ptr_value & Flag2Bit;executed 2372901 times by 122 tests: return ptr_value & Flag2Bit;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| 2372901 |
| 180 | } | - |
| 181 | | - |
| 182 | template<typename T> | - |
| 183 | void QFlagPointer<T>::setFlag2() | - |
| 184 | { | - |
| 185 | ptr_value|= Flag2Bit; | - |
| 186 | }executed 1120402 times by 122 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| 1120402 |
| 187 | | - |
| 188 | template<typename T> | - |
| 189 | void QFlagPointer<T>::clearFlag2() | - |
| 190 | { | - |
| 191 | ptr_value &= ~Flag2Bit; | - |
| 192 | }executed 1298 times by 30 tests: end of blockExecuted by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmltranslation
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- ...
| 1298 |
| 193 | | - |
| 194 | template<typename T> | - |
| 195 | void QFlagPointer<T>::setFlag2Value(bool v) | - |
| 196 | { | - |
| 197 | if (v) setFlag2();executed 559787 times by 122 tests: setFlag2();Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| TRUE | evaluated 559787 times by 122 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlprofilerservice
- ...
| | FALSE | evaluated 828 times by 28 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmltranslation
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickrepeater
- ...
|
| 828-559787 |
| 198 | else clearFlag2();executed 828 times by 28 tests: clearFlag2();Executed by:- tst_examples
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmltranslation
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickrepeater
- ...
| 828 |
| 199 | } | - |
| 200 | | - |
| 201 | template<typename T> | - |
| 202 | QFlagPointer<T> &QFlagPointer<T>::operator=(const QFlagPointer &o) | - |
| 203 | { | - |
| 204 | ptr_value = o.ptr_value; | - |
| 205 | return *this; never executed: return *this; | 0 |
| 206 | } | - |
| 207 | | - |
| 208 | template<typename T> | - |
| 209 | QFlagPointer<T> &QFlagPointer<T>::operator=(T *o) | - |
| 210 | { | - |
| 211 | Q_ASSERT((quintptr(o) & FlagsMask) == 0); | - |
| 212 | | - |
| 213 | ptr_value = quintptr(o) | (ptr_value & FlagsMask); | - |
| 214 | return *this;executed 8884583 times by 147 tests: return *this;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- ...
| 8884583 |
| 215 | } | - |
| 216 | | - |
| 217 | template<typename T> | - |
| 218 | T *QFlagPointer<T>::operator->() const | - |
| 219 | { | - |
| 220 | return (T *)(ptr_value & ~FlagsMask);executed 365061 times by 122 tests: return (T *)(ptr_value & ~FlagsMask);Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- ...
| 365061 |
| 221 | } | - |
| 222 | | - |
| 223 | template<typename T> | - |
| 224 | T *QFlagPointer<T>::operator*() const | - |
| 225 | { | - |
| 226 | return (T *)(ptr_value & ~FlagsMask);executed 30480592 times by 145 tests: return (T *)(ptr_value & ~FlagsMask);Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- ...
| 30480592 |
| 227 | } | - |
| 228 | | - |
| 229 | template<typename T> | - |
| 230 | T *QFlagPointer<T>::data() const | - |
| 231 | { | - |
| 232 | return (T *)(ptr_value & ~FlagsMask);executed 11258847 times by 143 tests: return (T *)(ptr_value & ~FlagsMask);Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qjsvalue
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- ...
| 11258847 |
| 233 | } | - |
| 234 | | - |
| 235 | template<typename T> | - |
| 236 | QFlagPointer<T>::operator bool() const | - |
| 237 | { | - |
| 238 | return data() != nullptr;executed 2098 times by 24 tests: return data() != nullptr;Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| 2098 |
| 239 | } | - |
| 240 | | - |
| 241 | template<typename T, typename T2> | - |
| 242 | QBiPointer<T, T2>::QBiPointer() | - |
| 243 | { | - |
| 244 | } | - |
| 245 | | - |
| 246 | template<typename T, typename T2> | - |
| 247 | QBiPointer<T, T2>::QBiPointer(T *v) | - |
| 248 | : ptr_value(quintptr(v)) | - |
| 249 | { | - |
| 250 | Q_ASSERT((quintptr(v) & FlagsMask) == 0); | - |
| 251 | }executed 95430 times by 132 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 95430 |
| 252 | | - |
| 253 | template<typename T, typename T2> | - |
| 254 | QBiPointer<T, T2>::QBiPointer(T2 *v) | - |
| 255 | : ptr_value(quintptr(v) | Flag2Bit) | - |
| 256 | { | - |
| 257 | Q_ASSERT((quintptr(v) & FlagsMask) == 0); | - |
| 258 | }executed 925589 times by 121 tests: end of blockExecuted by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlcpputils
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmlmetatype
- tst_qqmlmoduleplugin
- ...
| 925589 |
| 259 | | - |
| 260 | template<typename T, typename T2> | - |
| 261 | QBiPointer<T, T2>::QBiPointer(const QBiPointer<T, T2> &o) | - |
| 262 | : ptr_value(o.ptr_value) | - |
| 263 | { | - |
| 264 | } never executed: end of block | 0 |
| 265 | | - |
| 266 | template<typename T, typename T2> | - |
| 267 | bool QBiPointer<T, T2>::isNull() const | - |
| 268 | { | - |
| 269 | return 0 == (ptr_value & (~FlagsMask));executed 2179133 times by 137 tests: return 0 == (ptr_value & (~FlagsMask));Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlcpputils
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- ...
| 2179133 |
| 270 | } | - |
| 271 | | - |
| 272 | template<typename T, typename T2> | - |
| 273 | bool QBiPointer<T, T2>::isT1() const | - |
| 274 | { | - |
| 275 | return !(ptr_value & Flag2Bit);executed 19285698 times by 140 tests: return !(ptr_value & Flag2Bit);Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlcpputils
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- ...
| 19285698 |
| 276 | } | - |
| 277 | | - |
| 278 | template<typename T, typename T2> | - |
| 279 | bool QBiPointer<T, T2>::isT2() const | - |
| 280 | { | - |
| 281 | return ptr_value & Flag2Bit;executed 15749914 times by 138 tests: return ptr_value & Flag2Bit;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlcpputils
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 15749914 |
| 282 | } | - |
| 283 | | - |
| 284 | template<typename T, typename T2> | - |
| 285 | bool QBiPointer<T, T2>::flag() const | - |
| 286 | { | - |
| 287 | return ptr_value & FlagBit;executed 66496 times by 22 tests: return ptr_value & FlagBit;Executed by:- tst_examples
- tst_qmlcachegen
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquickbehaviors
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
- tst_quicktestmainwithsetup
- tst_scenegraph
- tst_testfiltering
| 66496 |
| 288 | } | - |
| 289 | | - |
| 290 | template<typename T, typename T2> | - |
| 291 | void QBiPointer<T, T2>::setFlag() | - |
| 292 | { | - |
| 293 | ptr_value |= FlagBit; | - |
| 294 | }executed 6454 times by 25 tests: end of blockExecuted by:- tst_examples
- tst_qmlcachegen
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmlproperty
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickimage
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquickvisualdatamodel
- tst_qrcqml
- tst_quicktestmainwithsetup
- tst_scenegraph
- tst_testfiltering
| 6454 |
| 295 | | - |
| 296 | template<typename T, typename T2> | - |
| 297 | void QBiPointer<T, T2>::clearFlag() | - |
| 298 | { | - |
| 299 | ptr_value &= ~FlagBit; | - |
| 300 | }executed 2 times by 1 test: end of block | 2 |
| 301 | | - |
| 302 | template<typename T, typename T2> | - |
| 303 | void QBiPointer<T, T2>::setFlagValue(bool v) | - |
| 304 | { | - |
| 305 | if (v) setFlag();executed 150 times by 14 tests: setFlag();Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmlproperty
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquicklayouts
- tst_qrcqml
- tst_quicktestmainwithsetup
- tst_scenegraph
- tst_testfiltering
| TRUE | evaluated 150 times by 14 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmlproperty
- tst_qqmltranslation
- tst_qqmlvaluetypes
- tst_qquickanimationcontroller
- tst_qquickbehaviors
- tst_qquickdesignersupport
- tst_qquicklayouts
- tst_qrcqml
- tst_quicktestmainwithsetup
- tst_scenegraph
- tst_testfiltering
| | FALSE | evaluated 2 times by 1 test |
| 2-150 |
| 306 | else clearFlag();executed 2 times by 1 test: clearFlag(); | 2 |
| 307 | } | - |
| 308 | | - |
| 309 | template<typename T, typename T2> | - |
| 310 | QBiPointer<T, T2> &QBiPointer<T, T2>::operator=(const QBiPointer<T, T2> &o) | - |
| 311 | { | - |
| 312 | ptr_value = o.ptr_value; | - |
| 313 | return *this;executed 22109 times by 97 tests: return *this;Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- ...
| 22109 |
| 314 | } | - |
| 315 | | - |
| 316 | template<typename T, typename T2> | - |
| 317 | QBiPointer<T, T2> &QBiPointer<T, T2>::operator=(T *o) | - |
| 318 | { | - |
| 319 | Q_ASSERT((quintptr(o) & FlagsMask) == 0); | - |
| 320 | | - |
| 321 | ptr_value = quintptr(o) | (ptr_value & FlagBit); | - |
| 322 | return *this;executed 4777402 times by 136 tests: return *this;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- ...
| 4777402 |
| 323 | } | - |
| 324 | | - |
| 325 | template<typename T, typename T2> | - |
| 326 | QBiPointer<T, T2> &QBiPointer<T, T2>::operator=(T2 *o) | - |
| 327 | { | - |
| 328 | Q_ASSERT((quintptr(o) & FlagsMask) == 0); | - |
| 329 | | - |
| 330 | ptr_value = quintptr(o) | (ptr_value & FlagBit) | Flag2Bit; | - |
| 331 | return *this;executed 2208258 times by 135 tests: return *this;Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlcpputils
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 2208258 |
| 332 | } | - |
| 333 | | - |
| 334 | template<typename T, typename T2> | - |
| 335 | T *QBiPointer<T, T2>::asT1() const | - |
| 336 | { | - |
| 337 | Q_ASSERT(isT1()); | - |
| 338 | return (T *)(ptr_value & ~FlagsMask);executed 4467976 times by 139 tests: return (T *)(ptr_value & ~FlagsMask);Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_parserstress
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginecleanup
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- ...
| 4467976 |
| 339 | } | - |
| 340 | | - |
| 341 | template<typename T, typename T2> | - |
| 342 | T2 *QBiPointer<T, T2>::asT2() const | - |
| 343 | { | - |
| 344 | Q_ASSERT(isT2()); | - |
| 345 | return (T2 *)(ptr_value & ~FlagsMask);executed 9802863 times by 138 tests: return (T2 *)(ptr_value & ~FlagsMask);Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qjsengine
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlcpputils
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlfileselector
- tst_qqmlimport
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- ...
| 9802863 |
| 346 | } | - |
| 347 | | - |
| 348 | QT_END_NAMESPACE | - |
| 349 | | - |
| 350 | #endif // QFLAGPOINTER_P_H | - |
| | |