Karma Engine
Loading...
Searching...
No Matches
Karma::TActorIterator< ActorType > Class Template Reference

#include <ActorIterator.h>

Inheritance diagram for Karma::TActorIterator< ActorType >:
Collaboration diagram for Karma::TActorIterator< ActorType >:

Public Member Functions

 TActorIterator (const UWorld *InWorld, TSubclassOf< AActor > InClass=ActorType::StaticClass(), EActorIteratorFlags InFlags=EActorIteratorFlags(EActorIteratorFlags::OnlyActiveLevels|EActorIteratorFlags::SkipPendingKill))
 
 TActorIterator (EActorIteratorType)
 
FORCEINLINE ActorType * operator* () const
 
FORCEINLINE ActorType * operator-> () const
 
- Public Member Functions inherited from Karma::TActorIteratorBase< TActorIterator< ActorType > >
void operator++ ()
 
FORCEINLINE AActoroperator* () const
 
FORCEINLINE AActoroperator-> () const
 
FORCEINLINE operator bool () const
 
void ClearCurrent ()
 
int32 GetProgressNumerator () const
 
FORCEINLINE bool CanIterateLevel (const ULevel *Level) const
 
FORCEINLINE bool IsActorSuitable (const AActor *Actor) const
 

Friends

class TActorIteratorBase< TActorIterator >
 

Additional Inherited Members

- Protected Member Functions inherited from Karma::TActorIteratorBase< TActorIterator< ActorType > >
 TActorIteratorBase (EActorIteratorType)
 
 TActorIteratorBase (const UWorld *InWorld, TSubclassOf< AActor > InClass, const EActorIteratorFlags InFlags)
 

Detailed Description

template<typename ActorType>
class Karma::TActorIterator< ActorType >

Template actor iterator.

Constructor & Destructor Documentation

◆ TActorIterator() [1/2]

template<typename ActorType >
Karma::TActorIterator< ActorType >::TActorIterator ( const UWorld * InWorld,
TSubclassOf< AActor > InClass = ActorType::StaticClass(),
EActorIteratorFlags InFlags = EActorIteratorFlags(EActorIteratorFlags::OnlyActiveLevels | EActorIteratorFlags::SkipPendingKill) )
inlineexplicit

Constructor

Parameters
InWorldThe world whose actors are to be iterated over.
InClassThe subclass of actors to be iterated over.
InFlagsIteration flags indicating which types of levels and actors should be iterated

◆ TActorIterator() [2/2]

template<typename ActorType >
Karma::TActorIterator< ActorType >::TActorIterator ( EActorIteratorType )
inlineexplicit

Constructor for creating an end iterator

Member Function Documentation

◆ operator*()

template<typename ActorType >
FORCEINLINE ActorType * Karma::TActorIterator< ActorType >::operator* ( ) const
inline

Returns the current suitable actor pointed at by the Iterator

Returns
Current suitable actor

◆ operator->()

template<typename ActorType >
FORCEINLINE ActorType * Karma::TActorIterator< ActorType >::operator-> ( ) const
inline

Returns the current suitable actor pointed at by the Iterator

Returns
Current suitable actor

The documentation for this class was generated from the following file: