TAtomicBase_Arithmetic

Arithmetic atomic implementation - used by both pointers and integral types in addition to getting and setting.

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Protected function

TAtomicBase_Arithmetic()

Protected function

TAtomicBase_Arithmetic

(
    T Value
)

Functions

Name Description

Public function

T

 

AddExchange

(
    DiffType Value
)

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

Public function

T

 

DecrementExchange()

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

Public function

T

 

IncrementExchange()

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

Public function

T

 

SubExchange

(
    DiffType Value
)

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

Operators

Name Description

Public function

T

 

operator--()

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

Public function

T

 

operator--

(
    int
)

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

Public function

T

 

operator++()

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

Public function

T

 

operator++

(
    int
)

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

Public function

T

 

operator+=

(
    DiffType Value
)

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

Public function

T

 

operator-=

(
    DiffType Value
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss