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
|
inline |
Construct an iterator using a struct and struct value
| InPropertyClass | The UClass of the FProperty type you are looking for |
| InStruct | The UClass or UScriptStruct containing properties to search for |
| InStructValue | Address in memory of struct to search for property values |
| InRecursionFlags | Rather to recurse into container and struct properties |
| InDeprecatedPropertyFlags | Rather to iterate over deprecated properties |
| 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
| PropertyChain | Filled in with ordered list of Properties, with currently active property first and top parent last |