engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
TActorIteratorBase< Derived > 模板类 参考

Template class used to filter actors by certain characteristics 更多...

#include <EngineUtils.h>

Public 成员函数

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 更多...
 

Protected 成员函数

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 Derived>
class TActorIteratorBase< Derived >

Template class used to filter actors by certain characteristics

成员函数说明

◆ CanIterateLevel()

template<typename Derived >
FORCEINLINE bool TActorIteratorBase< Derived >::CanIterateLevel ( ULevel *  Level) const
inlineprotected

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.

参数
Levelthe level to check for iteration
返回
true if the level can be iterated, false otherwise

◆ GetProgressNumerator()

template<typename Derived >
int32 TActorIteratorBase< Derived >::GetProgressNumerator ( ) const
inline

Returns the number of actors considered thus far.

Can be used in combination with GetProgressDenominator to gauge progress iterating over all actors.

返回
number of actors considered thus far.

◆ IsActorSuitable()

template<typename Derived >
FORCEINLINE bool TActorIteratorBase< Derived >::IsActorSuitable ( AActor *  Actor) const
inlineprotected

Determines whether this is a valid actor or not.

This function should be redefined (thus hiding this one) in a derived class if it wants special actor filtering.

参数
ActorActor to check
返回
true

◆ operator bool()

template<typename Derived >
FORCEINLINE TActorIteratorBase< Derived >::operator bool ( ) const
inlineexplicit

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

返回
true if iterator points to a suitable actor, false if it has reached the end

◆ operator*()

template<typename Derived >
FORCEINLINE AActor * TActorIteratorBase< Derived >::operator* ( ) const
inline

Returns the current suitable actor pointed at by the Iterator

返回
Current suitable actor

◆ operator->()

template<typename Derived >
FORCEINLINE AActor * TActorIteratorBase< Derived >::operator-> ( ) const
inline

Returns the current suitable actor pointed at by the Iterator

返回
Current suitable actor

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