![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qrefcount.h>
Public Member Functions | |
| bool | ref () noexcept |
| bool | deref () noexcept |
| bool | isStatic () const noexcept |
| bool | isShared () const noexcept |
| void | initializeOwned () noexcept |
| void | initializeUnsharable () noexcept |
Public Attributes | |
| QBasicAtomicInt | atomic |
\inmodule QtCore
QRefCount implements atomic ref counting for Qt's shared classes. It behaves very similar to QAtomicInt, but ignores negative ref counts.
This can be used to allow to implement e.g. const read-only QStringData objects. QString::shared_null and the qs(...) macro make use of this feature.
Definition at line 16 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 26 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 45 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 46 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 39 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 33 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 19 of file qrefcount.h.
| QBasicAtomicInt QtPrivate::RefCount::atomic |
Definition at line 48 of file qrefcount.h.