engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TAtomic< T > 模板类 参考final

DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated. 更多...

#include <Atomic.h>

继承自 UE4Atomic_Private::TAtomicBaseType_T< T > .

Public 成员函数

FORCEINLINE operator T () const
 Gets a copy of the current value of the element. 更多...
 
FORCEINLINE T operator= (T Value)
 Sets the element to a specific value, returning a copy of the value. 更多...
 
FORCEINLINE TAtomic ()=default
 Default initializes the element type. 更多...
 
constexpr TAtomic (T Arg)
 Initializes the element type with the given argument types. 更多...
 

详细描述

template<typename T>
class TAtomic< T >

DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated.

Use std::atomic<T> for new code

Atomic object wrapper class which wraps an element of T. This allows the following benefits:

构造及析构函数说明

◆ TAtomic() [1/2]

template<typename T >
FORCEINLINE TAtomic< T >::TAtomic ( )
default

Default initializes the element type.

NOTE: This will leave the value uninitialized if it has no constructor.

◆ TAtomic() [2/2]

template<typename T >
constexpr TAtomic< T >::TAtomic ( T  Arg)
inlineconstexpr

Initializes the element type with the given argument types.

参数
ArgThe value to initialize the element counter to
注解
This constructor is not atomic.

成员函数说明

◆ operator T()

template<typename T >
FORCEINLINE TAtomic< T >::operator T ( ) const
inline

Gets a copy of the current value of the element.

返回
The current value.

◆ operator=()

template<typename T >
FORCEINLINE T TAtomic< T >::operator= ( T  Value)
inline

Sets the element to a specific value, returning a copy of the value.

参数
ValueThe value to set the element to.
返回
A copy of Value.

该类的文档由以下文件生成: