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

#include <Atomic.h>

+ Inheritance diagram for TAtomicBase_Integral< T >:
+ Collaboration diagram for TAtomicBase_Integral< T >:

Public Member Functions

FORCEINLINE T operator&= (const T Value)
 
FORCEINLINE T operator|= (const T Value)
 
FORCEINLINE T operator^= (const T Value)
 
FORCEINLINE T AndExchange (const T Value)
 
FORCEINLINE T OrExchange (const T Value)
 
FORCEINLINE T XorExchange (const T Value)
 
- Public Member Functions inherited from TAtomicBase_Arithmetic< T, T >
FORCEINLINE T operator++ ()
 
FORCEINLINE T operator++ (int)
 
FORCEINLINE T operator+= (T Value)
 
FORCEINLINE T operator-- ()
 
FORCEINLINE T operator-- (int)
 
FORCEINLINE T operator-= (T Value)
 
FORCEINLINE T IncrementExchange ()
 
FORCEINLINE T DecrementExchange ()
 
FORCEINLINE T AddExchange (T Value)
 
FORCEINLINE T SubExchange (T 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_Integral ()=default
 
constexpr TAtomicBase_Integral (T Value)
 
- Protected Member Functions inherited from TAtomicBase_Arithmetic< T, T >
 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>
struct TAtomicBase_Integral< T >

Definition at line 526 of file Atomic.h.

Constructor & Destructor Documentation

◆ TAtomicBase_Integral() [1/2]

template<typename T >
TAtomicBase_Integral< T >::TAtomicBase_Integral ( )
protecteddefault

◆ TAtomicBase_Integral() [2/2]

template<typename T >
constexpr TAtomicBase_Integral< T >::TAtomicBase_Integral ( T Value)
inlineconstexprprotected

Definition at line 629 of file Atomic.h.

Member Function Documentation

◆ AndExchange()

template<typename T >
FORCEINLINE T TAtomicBase_Integral< T >::AndExchange ( const T Value)
inline

Performs Element &= Value, returning a copy of the previous value of the element.

Parameters
ValueThe value to and the element with.
Returns
A copy of the previous value.

Definition at line 584 of file Atomic.h.

◆ operator&=()

template<typename T >
FORCEINLINE T TAtomicBase_Integral< T >::operator&= ( const T Value)
inline

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

Parameters
ValueThe value to and the element with.
Returns
A copy of the new value.

Definition at line 536 of file Atomic.h.

◆ operator^=()

template<typename T >
FORCEINLINE T TAtomicBase_Integral< T >::operator^= ( const T Value)
inline

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

Parameters
ValueThe value to xor the element with.
Returns
A copy of the new value.

Definition at line 568 of file Atomic.h.

◆ operator|=()

template<typename T >
FORCEINLINE T TAtomicBase_Integral< T >::operator|= ( const T Value)
inline

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

Parameters
ValueThe value to or the element with.
Returns
A copy of the new value.

Definition at line 552 of file Atomic.h.

◆ OrExchange()

template<typename T >
FORCEINLINE T TAtomicBase_Integral< T >::OrExchange ( const T Value)
inline

Performs Element |= Value, returning a copy of the previous value of the element.

Parameters
ValueThe value to or the element with.
Returns
A copy of the previous value.

Definition at line 600 of file Atomic.h.

◆ XorExchange()

template<typename T >
FORCEINLINE T TAtomicBase_Integral< T >::XorExchange ( const T Value)
inline

Performs Element ^= Value, returning a copy of the previous value of the element.

Parameters
ValueThe value to xor the element with.
Returns
A copy of the previous value.

Definition at line 616 of file Atomic.h.


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