engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
TActorIterator< ActorType > 模板类 参考

Misc. 更多...

#include <EngineUtils.h>

+ 类 TActorIterator< ActorType > 继承关系图:

Public 成员函数

FORCEINLINE ActorType * operator* () const
 Returns the current suitable actor pointed at by the Iterator 更多...
 
FORCEINLINE ActorType * operator-> () const
 Returns the current suitable actor pointed at by the Iterator 更多...
 
 TActorIterator (EActorIteratorType)
 Constructor for creating an end iterator
 
 TActorIterator (UWorld *InWorld, TSubclassOf< ActorType > InClass=ActorType::StaticClass(), EActorIteratorFlags InFlags=EActorIteratorFlags::OnlyActiveLevels|EActorIteratorFlags::SkipPendingKill)
 Constructor 更多...
 
- Public 成员函数 继承自 TActorIteratorBase< TActorIterator< ActorType > >
void ClearCurrent ()
 Clears the current Actor in the array (setting it to NULL).
 
int32 GetProgressNumerator () const
 Returns the number of actors considered thus far. 更多...
 
FORCEINLINE operator bool () const
 Returns whether the iterator has reached the end and no longer points to a suitable actor. 更多...
 
FORCEINLINE AActor * operator* () const
 Returns the current suitable actor pointed at by the Iterator 更多...
 
void operator++ ()
 Iterates to next suitable actor.
 
FORCEINLINE AActor * operator-> () const
 Returns the current suitable actor pointed at by the Iterator 更多...
 

友元

class TActorIteratorBase< TActorIterator >
 

额外继承的成员函数

- Protected 成员函数 继承自 TActorIteratorBase< TActorIterator< ActorType > >
FORCEINLINE bool CanIterateLevel (ULevel *Level) const
 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. 更多...
 
FORCEINLINE bool IsActorSuitable (AActor *Actor) const
 Determines whether this is a valid actor or not. 更多...
 
 TActorIteratorBase (EActorIteratorType)
 Hide the constructors as construction on this class should only be done by subclasses
 

详细描述

template<typename ActorType>
class TActorIterator< ActorType >

Misc.

Template actor iterator.

Iterator types

构造及析构函数说明

◆ TActorIterator()

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

Constructor

参数
InWorldThe world whose actors are to be iterated over.
InClassThe subclass of actors to be iterated over.

成员函数说明

◆ operator*()

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

Returns the current suitable actor pointed at by the Iterator

返回
Current suitable actor

◆ operator->()

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

Returns the current suitable actor pointed at by the Iterator

返回
Current suitable actor

该类的文档由以下文件生成: