Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectIterator.h |
| Include | #include "UObject/UObjectIterator.h" |
Syntax
template<class T>
class TObjectIterator
Remarks
Class for iterating through all objects which inherit from a specified base class. Does not include any class default objects. Note that when Playing In Editor, this will find objects in the editor as well as the PIE world, in an indeterminate order.
Specializations
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | Index | Index of the current element in the object array | |
| TArray< UObject * > | ObjectArray | Results from the GetObjectsOfClass query |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TObjectIterator
(
EEndTagType, |
Constructor | ||
TObjectIterator
(
EObjectFlags AdditionalExclusionFlags, |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Advance () |
Iterator advance with ordinary name for clarity in subclasses | |
| UObject * | GetObject () |
Dereferences the iterator with an ordinary name for clarity in derived classes |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Conversion to "bool" returning true if the iterator is valid. | |||
| bool | operator! () |
Conversion to "bool" returning true if the iterator is valid. | |
| bool | operator!=
(
const TObjectIterator& Rhs |
||
| FUNCTION_NON_NULL_RETURN_START T * | operator* () |
Iterator dereference | |
| void | operator++ () |
Iterator advance | |
| bool | operator==
(
const TObjectIterator& Rhs |
||
| FUNCTION_NON_NULL_RETURN_START T * | operator-> () |
Iterator dereference |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EEndTagType |