Navigation
API > API/Runtime > API/Runtime/CoreUObject
Templated iterator to go through script helper containers that may contain invalid entries that are not part of the valid number of elements (i.e. GetMaxIndex() != Num() ). The iterator
- will advance to the first valid entry on creation and when incremented
- can be dereferenced to an internal index to be used with methods like Get
- Ptr or Get
- PtrWithoutCheck
- Ptr or Get
- can also be used directly with methods like Get
- PtrChecked
- can return the associated logical index (number of valid visited entries) by calling GetLogicalIndex()
| Name | TScriptContainerIterator |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UnrealType.h |
| Include Path | #include "UObject/UnrealType.h" |
Syntax
template<typename ContainerType>
struct TScriptContainerIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScriptContainerIterator
(
const ContainerType& InContainer |
UObject/UnrealType.h | ||
TScriptContainerIterator
(
const ContainerType& InContainer, |
UObject/UnrealType.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Container | const ContainerType & | UObject/UnrealType.h | ||
| InternalIndex | int32 | UObject/UnrealType.h | ||
| LogicalIndex | int32 | UObject/UnrealType.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetInternalIndex() |
UObject/UnrealType.h | ||
int32 GetLogicalIndex() |
UObject/UnrealType.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
UObject/UnrealType.h | ||
int32 operator*() |
UObject/UnrealType.h | ||
TScriptContainerIterator & operator++() |
UObject/UnrealType.h | ||
TScriptContainerIterator operator++
(
int |
UObject/UnrealType.h |