engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FPropertyValueIterator类 参考

For recursively iterating over a UStruct to find nested FProperty pointers and values 更多...

#include <UnrealType.h>

+ 类 FPropertyValueIterator 继承关系图:

Public 成员函数

 FPropertyValueIterator ()
 Invalid iterator, start with empty stack
 
 FPropertyValueIterator (FFieldClass *InPropertyClass, const UStruct *InStruct, const void *InStructValue, EPropertyValueIteratorFlags InRecursionFlags=EPropertyValueIteratorFlags::FullRecursion, EFieldIteratorFlags::DeprecatedPropertyFlags InDeprecatedPropertyFlags=EFieldIteratorFlags::IncludeDeprecated)
 Construct an iterator using a struct and struct value 更多...
 
COREUOBJECT_API void GetPropertyChain (TArray< const FProperty * > &PropertyChain) const
 Returns the full stack of properties for the property currently being iterated. 更多...
 
FORCEINLINE const FProperty * Key () const
 Returns Property currently being iterated
 
FORCEINLINE operator bool () const
 Conversion to "bool" returning true if the iterator is valid
 
FORCEINLINE const BasePairType & operator* () const
 Returns a TPair containing Property/Value currently being iterated
 
FORCEINLINE void operator++ ()
 Increments iterator
 
FORCEINLINE void SkipRecursiveProperty ()
 Call when iterating a recursive property such as Array or Struct to stop it from iterating into that property
 
FORCEINLINE const void * Value () const
 Returns memory address currently being iterated
 

详细描述

For recursively iterating over a UStruct to find nested FProperty pointers and values

构造及析构函数说明

◆ FPropertyValueIterator()

FPropertyValueIterator::FPropertyValueIterator ( FFieldClass *  InPropertyClass,
const UStruct *  InStruct,
const void *  InStructValue,
EPropertyValueIteratorFlags  InRecursionFlags = EPropertyValueIteratorFlags::FullRecursion,
EFieldIteratorFlags::DeprecatedPropertyFlags  InDeprecatedPropertyFlags = EFieldIteratorFlags::IncludeDeprecated 
)
inline

Construct an iterator using a struct and struct value

参数
InPropertyClassThe UClass of the FProperty type you are looking for
InStructThe UClass or UScriptStruct containing properties to search for
InStructValueAddress in memory of struct to search for property values
InRecursionFlagsRather to recurse into container and struct properties
InDeprecatedPropertyFlagsRather to iterate over deprecated properties

成员函数说明

◆ GetPropertyChain()

COREUOBJECT_API void FPropertyValueIterator::GetPropertyChain ( TArray< const FProperty * > &  PropertyChain) const

Returns the full stack of properties for the property currently being iterated.

This includes struct and container properties

参数
PropertyChainFilled in with ordered list of Properties, with currently active property first and top parent last

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