TActorIteratorBase

Template class used to filter actors by certain characteristics

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

template<typename Derived>
class TActorIteratorBase

Remarks

Template class used to filter actors by certain characteristics

Constructors

Name Description

Protected function

TActorIteratorBase

(
    EActorIteratorType
)

Hide the constructors as construction on this class should only be done by subclasses

Protected function

TActorIteratorBase

(
    UWorld* InWorld,
    TSubclassOf< AActor > InClass,
    EActorIteratorFlags InFlags
)

Functions

Name Description

Protected function Const

bool

 

CanIterateLevel

(
    ULevel* Level
)

Used to examine whether this level is valid for iteration or not This function should be redefined (thus hiding this one) in a derived class if it wants special level filtering.

Public function

void

 

ClearCurrent()

Clears the current Actor in the array (setting it to NULL).

Public function Const

int32

 

GetProgressNumerator()

Returns the number of actors considered thus far.

Protected function Const

bool

 

IsActorSuitable

(
    AActor* Actor
)

Determines whether this is a valid actor or not.

Operators

Name Description

Public function Const

 

operator bool()

Returns whether the iterator has reached the end and no longer points to a suitable actor.

Public function Const

AActor *

 

operator*()

Returns the current suitable actor pointed at by the Iterator

Public function

void

 

operator++()

Iterates to next suitable actor.

Public function Const

AActor *

 

operator->()

Returns the current suitable actor pointed at by the Iterator

References

Module

Engine

Header

Runtime/Engine/Public/EngineUtils.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback