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

Template to allow TClassType's to be passed around with type safety 更多...

#include <SubclassOf.h>

Public 成员函数

FORCEINLINE TClassType * Get () const
 Dereference back into a UClass
 
FORCEINLINE TClass * GetDefaultObject () const
 Get the CDO if we are referencing a valid class 更多...
 
FORCEINLINE operator TClassType * () const
 Implicit conversion to UClass
 
FORCEINLINE TClassType * operator* () const
 Dereference back into a UClass, does runtime type checking
 
FORCEINLINE TClassType * operator-> () const
 Dereference back into a UClass
 
template<class TClassA , class = decltype(ImplicitConv<TClass*>((TClassA*)nullptr))>
FORCEINLINE TSubclassOf & operator= (const TSubclassOf< TClassA > &From)
 Assignment operator, will only compile if types are compatible
 
FORCEINLINE TSubclassOf & operator= (TClassType *From)
 Assignment operator from UClass, the type is checked on get not on set
 
FORCEINLINE TSubclassOf ()
 Default Constructor, defaults to null
 
template<class TClassA , class = decltype(ImplicitConv<TClass*>((TClassA*)nullptr))>
FORCEINLINE TSubclassOf (const TSubclassOf< TClassA > &From)
 Copy Constructor, will only compile if types are compatible
 
FORCEINLINE TSubclassOf (TClassType *From)
 Constructor that takes a UClass and does a runtime check to make sure this is a compatible class
 

详细描述

template<class TClass>
class TSubclassOf< TClass >

Template to allow TClassType's to be passed around with type safety

示例
/github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

成员函数说明

◆ GetDefaultObject()

template<class TClass >
FORCEINLINE TClass * TSubclassOf< TClass >::GetDefaultObject ( ) const
inline

Get the CDO if we are referencing a valid class

返回
the CDO, or null if class is null

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