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

Typed FStructOnScope that exposes type-safe access to the wrapped struct 更多...

#include <StructOnScope.h>

继承自 FStructOnScope .

Public 成员函数

template<typename U , typename = typename TEnableIf<TIsDerivedFrom<typename TRemoveReference<U>::Type, T>::IsDerived, void>::Type, typename... TArgs>
void InitializeAs (TArgs &&... InArgs)
 Initialize the TStructOnScope as a struct of type U which needs to derive from T @params InArgs The arguments to pass to the constructor of type U
 
bool InitializeFrom (const FStructOnScope &InOther)
 Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from 更多...
 
bool InitializeFrom (FStructOnScope &&InOther)
 Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from 更多...
 
void InitializeFromChecked (const FStructOnScope &InOther)
 Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from (will assert if it contains an invalid type to store for T)
 
void InitializeFromChecked (FStructOnScope &&InOther)
 Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from (will assert if it contains an invalid type to store for T)
 

详细描述

template<typename T, typename = decltype(TBaseStructure<T>::Get())>
class TStructOnScope< T, typename >

Typed FStructOnScope that exposes type-safe access to the wrapped struct

注解
The second template argument is there to restrict to type that are actually USTRUCT. It will be replaced to a static_assert with a better compiler error with a "is ustruct" type trait

成员函数说明

◆ InitializeFrom() [1/2]

template<typename T , typename = decltype(TBaseStructure<T>::Get())>
bool TStructOnScope< T, typename >::InitializeFrom ( const FStructOnScope &  InOther)
inline

Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from

返回
True if the conversion was successful, false otherwise

◆ InitializeFrom() [2/2]

template<typename T , typename = decltype(TBaseStructure<T>::Get())>
bool TStructOnScope< T, typename >::InitializeFrom ( FStructOnScope &&  InOther)
inline

Initialize the TStructOnScope from a FStructOnScope containing data that derives from T @params InOther The FStructOnScope to initialize from

返回
True if the conversion was successful, false otherwise

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