![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore More...
#include <qrefcount.h>
Collaboration diagram for QtPrivate::RefCount: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.
References atomic, QBasicAtomicInteger< T >::deref(), and QBasicAtomicInteger< T >::loadRelaxed().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 44 of file qrefcount.h.
References atomic, and QBasicAtomicInteger< T >::storeRelaxed().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 45 of file qrefcount.h.
References atomic, and QBasicAtomicInteger< T >::storeRelaxed().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 38 of file qrefcount.h.
References atomic, and QBasicAtomicInteger< T >::loadRelaxed().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 32 of file qrefcount.h.
References atomic, and QBasicAtomicInteger< T >::loadRelaxed().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 18 of file qrefcount.h.
References atomic, QBasicAtomicInteger< T >::loadRelaxed(), and QBasicAtomicInteger< T >::ref().
Here is the call graph for this function:| QBasicAtomicInt QtPrivate::RefCount::atomic |
Definition at line 47 of file qrefcount.h.
Referenced by deref(), initializeOwned(), initializeUnsharable(), isShared(), isStatic(), and ref().