engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
FField类 参考

Base class of reflection data objects. 更多...

#include <Field.h>

被 FProperty 继承.

Public 成员函数

FString GetAuthoredName () const
 Returns a human readable string that was assigned to this field at creation. 更多...
 
EObjectFlags GetFlags () const
 Retrieve the object flags directly 更多...
 
virtual FField * GetInnerFieldByName (const FName &InName)
 Returns an inner field by name if the field has any
 
virtual void GetInnerFields (TArray< FField * > &OutFields)
 Fills the provided array with all inner fields this field owns (recursively)
 
UPackage * GetOutermost () const
 Goes up the outer chain to look for the outermost package
 
UClass * GetOwnerClass () const
 Goes up the outer chain to look for a UClass
 
UStruct * GetOwnerStruct () const
 Goes up the outer chain to look for a UStruct
 
UField * GetOwnerUField () const
 Goes up the outer chain to look for a UField
 
FORCEINLINE UObject * GetOwnerUObject () const
 Goes up the outer chain to look for a UObject. 更多...
 
FFieldVariant GetOwnerVariant () const
 Gets the owner container for this field
 
FField * GetTypedOwner (FFieldClass *Target) const
 Goes up the outer chain to look for the outer of the specified type
 
UObject * GetTypedOwner (UClass *Target) const
 Goes up the outer chain to look for the outer of the specified type
 
bool HasAllFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether all of the passed in flags are set. 更多...
 
bool HasAnyFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in flags are set. 更多...
 
FORCEINLINE UObject * InternalGetOwnerAsUObjectUnsafe () const
 Internal function for quickly getting the owner of this object as UObject. 更多...
 
virtual void PostDuplicate (const FField &InField)
 Fixups after duplicating a Field
 

静态 Public 成员函数

static FField * Construct (const FFieldVariant &InOwner, const FName &InName, EObjectFlags InFlags)
 Constructs a new field given its class
 
static FField * Construct (const FName &FieldTypeName, const FFieldVariant &InOwner, const FName &InName, EObjectFlags InFlags)
 Constructs a new field given the name of its class
 
static FField * Duplicate (const FField *InField, FFieldVariant DestOwner, const FName DestName=NAME_None, EObjectFlags FlagMask=RF_AllFlags, EInternalObjectFlags InternalFlagsMask=EInternalObjectFlags::AllFlags)
 Duplicates an FField
 
static FName GenerateFFieldName (FFieldVariant InOwner, FFieldClass *InClass)
 Generates a name for a Field of a given type. 更多...
 

Public 属性

EObjectFlags FlagsPrivate
 Object flags
 
FName NamePrivate
 Name of this field
 
FField * Next
 Next Field in the linked list
 
FFieldVariant Owner
 Owner of this field
 

Protected 成员函数

void SetFlagsTo (EObjectFlags NewFlags)
 Set the object flags directly
 

详细描述

Base class of reflection data objects.

成员函数说明

◆ GenerateFFieldName()

static FName FField::GenerateFFieldName ( FFieldVariant  InOwner,
FFieldClass *  InClass 
)
static

Generates a name for a Field of a given type.

Each generated name is unique in the current runtime

◆ GetAuthoredName()

FString FField::GetAuthoredName ( ) const

Returns a human readable string that was assigned to this field at creation.

By default this is the same as GetName() but it can be overridden if that is an internal-only name. This name is consistent in editor/cooked builds, is not localized, and is useful for data import/export.

◆ GetFlags()

EObjectFlags FField::GetFlags ( ) const
inline

Retrieve the object flags directly

返回
Flags for this object

◆ GetOwnerUObject()

FORCEINLINE UObject * FField::GetOwnerUObject ( ) const
inline

Goes up the outer chain to look for a UObject.

This function is used in GC so for performance reasons it has to be inlined

◆ HasAllFlags()

bool FField::HasAllFlags ( EObjectFlags  FlagsToCheck) const
inline

Used to safely check whether all of the passed in flags are set.

参数
FlagsToCheckObject flags to check for
返回
true if all of the passed in flags are set (including no flags passed in), false otherwise

◆ HasAnyFlags()

bool FField::HasAnyFlags ( EObjectFlags  FlagsToCheck) const
inline

Used to safely check whether any of the passed in flags are set.

参数
FlagsToCheckObject flags to check for.
返回
true if any of the passed in flags are set, false otherwise (including no flags passed in).

◆ InternalGetOwnerAsUObjectUnsafe()

FORCEINLINE UObject * FField::InternalGetOwnerAsUObjectUnsafe ( ) const
inline

Internal function for quickly getting the owner of this object as UObject.

FOR INTERNAL USE ONLY


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