Navigation
API > API/Runtime > API/Runtime/CoreUObject
For iterating through all fields in all structs including inner FProperties of top level FProperties.
| Name | TAllFieldsIterator |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/FieldIterator.h |
| Include Path | #include "UObject/FieldIterator.h" |
Syntax
template<class T>
class TAllFieldsIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAllFieldsIterator
(
EObjectFlags AdditionalExclusionFlags, |
UObject/FieldIterator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentFieldIndex | int32 | Currently iterated field index in CurrentFields array | UObject/FieldIterator.h | |
| CurrentFields | TArray< typename T::BaseFieldClass * > | List containing the currently iterated field as well as all fields it owns and all fields the fields it owns own etc.. | UObject/FieldIterator.h | |
| FieldIterator | TFieldIterator< typename T::BaseFieldClass > | Iterator for iterating over all child UFields or FFields Note that we're going to be iterating over all fields (BaseFieldClass is either FField or UField), not just the ones that match the template argument because we also want to be able to iterate inner fields (for example FArrayProperty::Inner, FSetProperty::ElementProp etc) | UObject/FieldIterator.h | |
| StructIterator | TObjectIterator< UStruct > | Iterator for iterating over all UStructs | UObject/FieldIterator.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConditionallyIterateToNextStruct() |
UObject/FieldIterator.h | ||
void InitCurrentFields() |
Initializes CurrentFields array with the currently iterated field as well as the fields it owns | UObject/FieldIterator.h | |
void InitFieldIterator() |
Initializes the field iterator for the current struct | UObject/FieldIterator.h | |
void IterateToNextField() |
Advances to the next field of the specified template type | UObject/FieldIterator.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Conversion to "bool" returning true if the iterator is valid. | UObject/FieldIterator.h | |
bool operator!() |
Inverse of the "bool" operator | UObject/FieldIterator.h | |
bool operator!=
(
const TAllFieldsIterator< T >& Rhs |
UObject/FieldIterator.h | ||
T * operator*() |
UObject/FieldIterator.h | ||
void operator++() |
UObject/FieldIterator.h | ||
bool operator==
(
const TAllFieldsIterator< T >& Rhs |
UObject/FieldIterator.h | ||
T * operator->() |
UObject/FieldIterator.h |