![]()  | 
  
    Qt 6.x
    
   The Qt SDK 
   | 
 
\inmodule QtCore More...
#include <qatomic.h>
 Inheritance diagram for QAtomicInt:
 Collaboration diagram for QAtomicInt:Public Member Functions | |
| constexpr | QAtomicInt (int value=0) noexcept | 
| Constructs a QAtomicInt with the given value.   | |
  Public Member Functions inherited from QAtomicInteger< int > | |
| constexpr | QAtomicInteger (int value=0) noexcept | 
| Constructs a QAtomicInteger with the given value.   | |
| QAtomicInteger (const QAtomicInteger &other) noexcept | |
| Constructs a copy of other.   | |
| QAtomicInteger & | operator= (const QAtomicInteger &other) noexcept | 
| Assigns other to this QAtomicInteger and returns a reference to this QAtomicInteger.   | |
  Public Member Functions inherited from QBasicAtomicInteger< T > | |
| T | loadRelaxed () const noexcept | 
| void | storeRelaxed (T newValue) noexcept | 
| T | loadAcquire () const noexcept | 
| void | storeRelease (T newValue) noexcept | 
| operator T () const noexcept | |
| T | operator= (T newValue) noexcept | 
| bool | ref () noexcept | 
| bool | deref () noexcept | 
| bool | testAndSetRelaxed (T expectedValue, T newValue) noexcept | 
| bool | testAndSetAcquire (T expectedValue, T newValue) noexcept | 
| bool | testAndSetRelease (T expectedValue, T newValue) noexcept | 
| bool | testAndSetOrdered (T expectedValue, T newValue) noexcept | 
| bool | testAndSetRelaxed (T expectedValue, T newValue, T ¤tValue) noexcept | 
| bool | testAndSetAcquire (T expectedValue, T newValue, T ¤tValue) noexcept | 
| bool | testAndSetRelease (T expectedValue, T newValue, T ¤tValue) noexcept | 
| bool | testAndSetOrdered (T expectedValue, T newValue, T ¤tValue) noexcept | 
| T | fetchAndStoreRelaxed (T newValue) noexcept | 
| T | fetchAndStoreAcquire (T newValue) noexcept | 
| T | fetchAndStoreRelease (T newValue) noexcept | 
| T | fetchAndStoreOrdered (T newValue) noexcept | 
| T | fetchAndAddRelaxed (T valueToAdd) noexcept | 
| T | fetchAndAddAcquire (T valueToAdd) noexcept | 
| T | fetchAndAddRelease (T valueToAdd) noexcept | 
| T | fetchAndAddOrdered (T valueToAdd) noexcept | 
| T | fetchAndSubRelaxed (T valueToAdd) noexcept | 
| T | fetchAndSubAcquire (T valueToAdd) noexcept | 
| T | fetchAndSubRelease (T valueToAdd) noexcept | 
| T | fetchAndSubOrdered (T valueToAdd) noexcept | 
| T | fetchAndAndRelaxed (T valueToAdd) noexcept | 
| T | fetchAndAndAcquire (T valueToAdd) noexcept | 
| T | fetchAndAndRelease (T valueToAdd) noexcept | 
| T | fetchAndAndOrdered (T valueToAdd) noexcept | 
| T | fetchAndOrRelaxed (T valueToAdd) noexcept | 
| T | fetchAndOrAcquire (T valueToAdd) noexcept | 
| T | fetchAndOrRelease (T valueToAdd) noexcept | 
| T | fetchAndOrOrdered (T valueToAdd) noexcept | 
| T | fetchAndXorRelaxed (T valueToAdd) noexcept | 
| T | fetchAndXorAcquire (T valueToAdd) noexcept | 
| T | fetchAndXorRelease (T valueToAdd) noexcept | 
| T | fetchAndXorOrdered (T valueToAdd) noexcept | 
| T | operator++ () noexcept | 
| T | operator++ (int) noexcept | 
| T | operator-- () noexcept | 
| T | operator-- (int) noexcept | 
| T | operator+= (T v) noexcept | 
| T | operator-= (T v) noexcept | 
| T | operator&= (T v) noexcept | 
| T | operator|= (T v) noexcept | 
| T | operator^= (T v) noexcept | 
| QBasicAtomicInteger ()=default | |
| constexpr | QBasicAtomicInteger (T value) noexcept | 
| QBasicAtomicInteger (const QBasicAtomicInteger &)=delete | |
| QBasicAtomicInteger & | operator= (const QBasicAtomicInteger &)=delete | 
| QBasicAtomicInteger & | operator= (const QBasicAtomicInteger &) volatile=delete | 
Additional Inherited Members | |
  Public Types inherited from QBasicAtomicInteger< T > | |
| typedef T | Type | 
| typedef QAtomicOps< T > | Ops | 
  Static Public Member Functions inherited from QBasicAtomicInteger< T > | |
| static constexpr bool | isReferenceCountingNative () noexcept | 
| static constexpr bool | isReferenceCountingWaitFree () noexcept | 
| static constexpr bool | isTestAndSetNative () noexcept | 
| static constexpr bool | isTestAndSetWaitFree () noexcept | 
| static constexpr bool | isFetchAndStoreNative () noexcept | 
| static constexpr bool | isFetchAndStoreWaitFree () noexcept | 
| static constexpr bool | isFetchAndAddNative () noexcept | 
| static constexpr bool | isFetchAndAddWaitFree () noexcept | 
  Public Attributes inherited from QBasicAtomicInteger< T > | |
| Ops::Type | _q_value | 
\inmodule QtCore
The QAtomicInt class provides platform-independent atomic operations on int.
This class is a equivalent to {QAtomicInteger<int>}. All other functionality is equivalent. Please see that class for more information.
      
  | 
  inlineconstexprnoexcept | 
Constructs a QAtomicInt with the given value.