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

Class for iterating through all objects which inherit from a specified base class. 更多...

#include <UObjectIterator.h>

Public 成员函数

FORCEINLINE operator bool () const
 Conversion to "bool" returning true if the iterator is valid.
 
FORCEINLINE bool operator! () const
 Conversion to "bool" returning true if the iterator is valid.
 
FUNCTION_NON_NULL_RETURN_START FORCEINLINE T * operator* () const FUNCTION_NON_NULL_RETURN_END
 Iterator dereference 更多...
 
FORCEINLINE void operator++ ()
 Iterator advance
 
FUNCTION_NON_NULL_RETURN_START FORCEINLINE T * operator-> () const FUNCTION_NON_NULL_RETURN_END
 Iterator dereference 更多...
 
 TObjectIterator (EEndTagType, const TObjectIterator &Begin)
 Constructor
 
 TObjectIterator (EObjectFlags AdditionalExclusionFlags=RF_ClassDefaultObject, bool bIncludeDerivedClasses=true, EInternalObjectFlags InternalExclusionFlags=EInternalObjectFlags::None)
 Constructor
 

Protected 成员函数

FORCEINLINE bool Advance ()
 Iterator advance with ordinary name for clarity in subclasses 更多...
 
FORCEINLINE UObject * GetObject () const
 Dereferences the iterator with an ordinary name for clarity in derived classes 更多...
 

Protected 属性

int32 Index
 index of the current element in the object array
 
TArray< UObject * > ObjectArray
 Results from the GetObjectsOfClass query
 

详细描述

template<class T>
class TObjectIterator< T >

Class for iterating through all objects which inherit from a specified base class.

Does not include any class default objects. Note that when Playing In Editor, this will find objects in the editor as well as the PIE world, in an indeterminate order.

成员函数说明

◆ Advance()

template<class T >
FORCEINLINE bool TObjectIterator< T >::Advance ( )
inlineprotected

Iterator advance with ordinary name for clarity in subclasses

返回
true if the iterator points to a valid object, false if iteration is complete

◆ GetObject()

template<class T >
FORCEINLINE UObject * TObjectIterator< T >::GetObject ( ) const
inlineprotected

Dereferences the iterator with an ordinary name for clarity in derived classes

返回
the UObject at the iterator

◆ operator*()

template<class T >
FUNCTION_NON_NULL_RETURN_START FORCEINLINE T * TObjectIterator< T >::operator* ( ) const
inline

Iterator dereference

返回
the object pointer pointed at by the iterator

◆ operator->()

template<class T >
FUNCTION_NON_NULL_RETURN_START FORCEINLINE T * TObjectIterator< T >::operator-> ( ) const
inline

Iterator dereference

返回
the object pointer pointed at by the iterator

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