Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TAtomicBase_Arithmetic< T, DiffType > Struct Template Reference

#include <Atomic.h>

+ Inheritance diagram for TAtomicBase_Arithmetic< T, DiffType >:
+ Collaboration diagram for TAtomicBase_Arithmetic< T, DiffType >:

Public Member Functions

FORCEINLINE T operator++ ()
 
FORCEINLINE T operator++ (int)
 
FORCEINLINE T operator+= (DiffType Value)
 
FORCEINLINE T operator-- ()
 
FORCEINLINE T operator-- (int)
 
FORCEINLINE T operator-= (DiffType Value)
 
FORCEINLINE T IncrementExchange ()
 
FORCEINLINE T DecrementExchange ()
 
FORCEINLINE T AddExchange (DiffType Value)
 
FORCEINLINE T SubExchange (DiffType Value)
 
- Public Member Functions inherited from TAtomicBase_Basic< T >
FORCEINLINE T Load (EMemoryOrder Order=EMemoryOrder::SequentiallyConsistent) const
 
FORCEINLINE void Store (T Value, EMemoryOrder Order=EMemoryOrder::SequentiallyConsistent)
 
FORCEINLINE T Exchange (T Value)
 
FORCEINLINE bool CompareExchange (T &Expected, T Value)
 

Protected Member Functions

 TAtomicBase_Arithmetic ()=default
 
constexpr TAtomicBase_Arithmetic (T Value)
 
- Protected Member Functions inherited from TAtomicBase_Basic< T >
 TAtomicBase_Basic ()=default
 
constexpr TAtomicBase_Basic (T Value)
 

Additional Inherited Members

- Protected Attributes inherited from TAtomicBase_Basic< T >
volatile T Element
 

Detailed Description

template<typename T, typename DiffType>
struct TAtomicBase_Arithmetic< T, DiffType >

Definition at line 351 of file Atomic.h.

Constructor & Destructor Documentation

◆ TAtomicBase_Arithmetic() [1/2]

◆ TAtomicBase_Arithmetic() [2/2]

template<typename T , typename DiffType >
constexpr TAtomicBase_Arithmetic< T, DiffType >::TAtomicBase_Arithmetic ( T Value)
inlineconstexprprotected

Definition at line 505 of file Atomic.h.

Member Function Documentation

◆ AddExchange()

template<typename T , typename DiffType >
FORCEINLINE T TAtomicBase_Arithmetic< T, DiffType >::AddExchange ( DiffType Value)
inline

Adds Value to Element and returns a copy of the previous value of the element.

Parameters
ValueThe value to add to the element.
Returns
A copy of the previous, unincremented value.

Definition at line 477 of file Atomic.h.

◆ DecrementExchange()

template<typename T , typename DiffType >
FORCEINLINE T TAtomicBase_Arithmetic< T, DiffType >::DecrementExchange ( )
inline

Decrements Element and returns a copy of the previous value of the element.

Returns
A copy of the previous, undecremented value.

Definition at line 461 of file Atomic.h.

◆ IncrementExchange()

template<typename T , typename DiffType >
FORCEINLINE T TAtomicBase_Arithmetic< T, DiffType >::IncrementExchange ( )
inline

Increments Element and returns a copy of the previous value of the element.

Returns
A copy of the previous, unincremented value.

Definition at line 447 of file Atomic.h.

◆ operator++() [1/2]

Performs ++Element, returning a copy of the new value of the element.

Returns
A copy of the new, incremented value.

Definition at line 359 of file Atomic.h.

◆ operator++() [2/2]

Performs Element++, returning a copy of the previous value of the element.

Returns
A copy of the previous, unincremented value.

Definition at line 373 of file Atomic.h.

◆ operator+=()

Performs Element += Value, returning a copy of the new value of the element.

Parameters
ValueThe value to add to the element.
Returns
A copy of the new, incremented value.

Definition at line 389 of file Atomic.h.

◆ operator--() [1/2]

Performs –Element, returning a copy of the new value of the element.

Returns
A copy of the new, decremented value.

Definition at line 403 of file Atomic.h.

◆ operator--() [2/2]

Performs Element–, returning a copy of the previous value of the element.

Returns
A copy of the previous, undecremented value.

Definition at line 417 of file Atomic.h.

◆ operator-=()

Performs Element -= Value, returning a copy of the new value of the element.

Parameters
ValueThe value to subtract from the element.
Returns
A copy of the new, decremented value.

Definition at line 433 of file Atomic.h.

◆ SubExchange()

template<typename T , typename DiffType >
FORCEINLINE T TAtomicBase_Arithmetic< T, DiffType >::SubExchange ( DiffType Value)
inline

Subtracts Value from Element and returns a copy of the previous value of the element.

Parameters
ValueThe value to subtract from the element.
Returns
A copy of the previous, undecremented value.

Definition at line 493 of file Atomic.h.


The documentation for this struct was generated from the following file: