TObjectIteratorBase

Class for iterating through all objects, including class default objects.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectIterator.h

Include

#include "UObject/UObjectIterator.h"

Syntax

template<EObjectIteratorThreadSafetyOptions IteratorThreadSafety>
class TObjectIteratorBase : public FUObjectArray::TIterator

Remarks

Class for iterating through all objects, including class default objects.

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.

Variables

Name Description

Protected variable

EObjectFlags

 

ExclusionFlags

Flags that returned objects must not have

Protected variable

EInternalObject...

 

InternalExclusionFlags

Internal Flags that returned objects must not have

Constructors

Name Description

Public function

TObjectIteratorBase

(
    const TObjectIteratorBase& Other
)

Copy Constructor

Public function

TObjectIteratorBase

(
    FUObjectArray::TIterator::EEndTagTy...,
    const TObjectIteratorBase& Begin
)

Constructor

Public function

TObjectIteratorBase

(
    UClass* InClass,
    bool bOnlyGCedObjects,
    EObjectFlags AdditionalExclusionFla...,
    EInternalObjectFlags InInternalExcl...
)

Constructor

Destructors

Name Description

Public function

~TObjectIteratorBase()

Destructor

Functions

Name Description

Protected function

bool

 

AdvanceIterator()

Wrapper around FUObjectArray::TIterator::Advance that locks the FUObjectArray mutex before advancing if necessary

Operators

Name Description

Public function Const

UObject *...

 

operator*()

Iterator dereference

Public function

void

 

operator++()

Iterator advance

Public function Const

UObject *...

 

operator->()

Iterator dereference

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss