| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/3rdparty/masm/stubs/wtf/RefCounted.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | template <typename Base> | - | ||||||
| 2 | class RefCounted { | - | ||||||
| 3 | public: | - | ||||||
| 4 | RefCounted() : m_refCount(1) {} executed 1163817 times by 153 tests: end of blockExecuted by:
| 1163817 | ||||||
| 5 | ~RefCounted() | - | ||||||
| 6 | { | - | ||||||
| 7 | deref(); | - | ||||||
| 8 | } executed 1164532 times by 153 tests: end of blockExecuted by:
| 1164532 | ||||||
| 9 | - | |||||||
| 10 | void ref() | - | ||||||
| 11 | { | - | ||||||
| 12 | ++m_refCount; | - | ||||||
| 13 | } executed 3506859 times by 153 tests: end of blockExecuted by:
| 3506859 | ||||||
| 14 | - | |||||||
| 15 | void deref() | - | ||||||
| 16 | { | - | ||||||
| 17 | if (!--m_refCount
| 1164456-4670921 | ||||||
| 18 | delete static_cast<Base*>(this); executed 1164465 times by 153 tests: delete static_cast<Base*>(this);Executed by:
| 1164465 | ||||||
| 19 | } executed 5835240 times by 153 tests: end of blockExecuted by:
| 5835240 | ||||||
| 20 | - | |||||||
| 21 | protected: | - | ||||||
| 22 | int m_refCount; | - | ||||||
| 23 | }; | - | ||||||
| Switch to Source code | Preprocessed file |