Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
Inheritance Hierarchy
- TAtomicBase_Basic
- TAtomicBase_Arithmetic
- TAtomicBase_Integral
- TAtomicBase_Pointer
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/Atomic.h |
| Include | #include "Templates/Atomic.h" |
Syntax
template<typename T, typename DiffType>
struct TAtomicBase_Arithmetic : public TAtomicBase_Basic< T >
Remarks
Arithmetic atomic implementation - used by both pointers and integral types in addition to getting and setting.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| constexpr | TAtomicBase_Arithmetic
(
T Value |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T | AddExchange
(
DiffType Value |
Adds Value to Element and returns a copy of the previous value of the element. | |
| T | Decrements Element and returns a copy of the previous value of the element. | ||
| T | Increments Element and returns a copy of the previous value of the element. | ||
| T | SubExchange
(
DiffType Value |
Subtracts Value from Element and returns a copy of the previous value of the element. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| T | operator-- () |
Performs Element, returning a copy of the new value of the element. | |
| T | operator--
(
int |
Performs Element, returning a copy of the previous value of the element. | |
| T | operator++ () |
Performs ++Element, returning a copy of the new value of the element. | |
| T | operator++
(
int |
Performs Element++, returning a copy of the previous value of the element. | |
| T | operator+=
(
DiffType Value |
Performs Element += Value, returning a copy of the new value of the element. | |
| T | operator-=
(
DiffType Value |
Performs Element -= Value, returning a copy of the new value of the element. |