![]() |
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 15 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 25 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 44 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 45 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 38 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 32 of file qrefcount.h.
|
inlinenoexcept |
Definition at line 18 of file qrefcount.h.
QBasicAtomicInt QtPrivate::RefCount::atomic |
Definition at line 47 of file qrefcount.h.