Navigation
API > API/Runtime > API/Runtime/CoreUObject
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.
| Name | TObjectIterator |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectIterator.h |
| Include Path | #include "UObject/UObjectIterator.h" |
Syntax
template<class T>
class TObjectIterator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TObjectIterator
(
EEndTagType, |
Constructor | UObject/UObjectIterator.h | |
TObjectIterator
(
EObjectFlags AdditionalExclusionFlags, |
Constructor | UObject/UObjectIterator.h |
Class Specializations
| Name | Remarks |
|---|---|
| TObjectIterator< UObject > | Specialization for T == UObject that does not call IsA() unnecessarily |
Enums
Public
| Name | Remarks |
|---|---|
| EEndTagType |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Advance() |
Iterator advance with ordinary name for clarity in subclasses | UObject/UObjectIterator.h | |
UObject * GetObject() |
Dereferences the iterator with an ordinary name for clarity in derived classes | UObject/UObjectIterator.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Conversion to "bool" returning true if the iterator is valid. | UObject/UObjectIterator.h | |
bool operator!() |
Conversion to "bool" returning true if the iterator is valid. | UObject/UObjectIterator.h | |
bool operator!=
(
const TObjectIterator& Rhs |
UObject/UObjectIterator.h | ||
T * operator*() |
Iterator dereference | UObject/UObjectIterator.h | |
void operator++() |
Iterator advance | UObject/UObjectIterator.h | |
bool operator==
(
const TObjectIterator& Rhs |
UObject/UObjectIterator.h | ||
T * operator->() |
Iterator dereference | UObject/UObjectIterator.h |