Navigation
API > API/Runtime > API/Runtime/CoreUObject
Class for iterating through all objects, including 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. IteratorThreadSafety template parameter manages how this class handles thread safety of UObject iteration.
| Name | TObjectIteratorBase |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectIterator.h |
| Include Path | #include "UObject/UObjectIterator.h" |
Syntax
template<EObjectIteratorThreadSafetyOptions IteratorThreadSafety>
class TObjectIteratorBase : public FUObjectArray::TIterator
Inheritance Hierarchy
- FUObjectArray::TIterator → TObjectIteratorBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TObjectIteratorBase
(
const TObjectIteratorBase& Other |
Copy Constructor | UObject/UObjectIterator.h | |
TObjectIteratorBase
(
FUObjectArray::TIterator::EEndTagType, |
Constructor | UObject/UObjectIterator.h | |
TObjectIteratorBase
(
UClass* InClass, |
Constructor | UObject/UObjectIterator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TObjectIteratorBase() |
Destructor | UObject/UObjectIterator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Class | UClass * | Class to restrict results to | UObject/UObjectIterator.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AdvanceIterator() |
Wrapper around FUObjectArray::TIterator::Advance that locks the FUObjectArray mutex before advancing if necessary | UObject/UObjectIterator.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UObject * operator*() |
Iterator dereference | UObject/UObjectIterator.h | |
void operator++() |
Iterator advance | UObject/UObjectIterator.h | |
UObject * operator->() |
Iterator dereference | UObject/UObjectIterator.h |