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

Iterator for arrays of UObject pointers 更多...

#include <UObjectGlobals.h>

Public 成员函数

FORCEINLINE operator bool () const
 conversion to "bool" returning true if the iterator is valid.
 
FORCEINLINE bool operator! () const
 inverse of the "bool" operator
 
FORCEINLINE TObjectClass & operator* () const
 Dereferences the iterator 更多...
 
FORCEINLINE void operator++ ()
 Iterator advance
 
FORCEINLINE TObjectClass * operator-> () const
 Dereferences the iterator 更多...
 
FORCEINLINE void RemoveCurrent ()
 Removes the current element from the array, slower, but preserves the order. 更多...
 
FORCEINLINE void RemoveCurrentSwap ()
 Removes the current element from the array, faster, but does not preserves the array order. 更多...
 
FORCEINLINE TObjectArrayIterator (TArray< TObjectClass * > &InArray, UClass *InClassToCheck=nullptr, bool InbExactClass=false)
 Constructor, iterates all non-null, non pending kill objects, optionally of a particular class or base class 更多...
 

Protected 成员函数

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

详细描述

template<class TObjectClass>
class TObjectArrayIterator< TObjectClass >

Iterator for arrays of UObject pointers

参数
TObjectClasstype of pointers contained in array

构造及析构函数说明

◆ TObjectArrayIterator()

template<class TObjectClass >
FORCEINLINE TObjectArrayIterator< TObjectClass >::TObjectArrayIterator ( TArray< TObjectClass * > &  InArray,
UClass *  InClassToCheck = nullptr,
bool  InbExactClass = false 
)
inline

Constructor, iterates all non-null, non pending kill objects, optionally of a particular class or base class

参数
InArraythe array to iterate on
InClassif non-null, will only iterate on items IsA this class
InbExactClassif true, will only iterate on exact matches

成员函数说明

◆ Advance()

template<class TObjectClass >
FORCEINLINE bool TObjectArrayIterator< TObjectClass >::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 TObjectClass >
FORCEINLINE TObjectClass * TObjectArrayIterator< TObjectClass >::GetObject ( ) const
inlineprotected

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

返回
the UObject at the iterator

◆ operator*()

template<class TObjectClass >
FORCEINLINE TObjectClass & TObjectArrayIterator< TObjectClass >::operator* ( ) const
inline

Dereferences the iterator

返回
the UObject at the iterator

◆ operator->()

template<class TObjectClass >
FORCEINLINE TObjectClass * TObjectArrayIterator< TObjectClass >::operator-> ( ) const
inline

Dereferences the iterator

返回
the UObject at the iterator

◆ RemoveCurrent()

template<class TObjectClass >
FORCEINLINE void TObjectArrayIterator< TObjectClass >::RemoveCurrent ( )
inline

Removes the current element from the array, slower, but preserves the order.

Iterator is decremented for you so a loop will check all items.

◆ RemoveCurrentSwap()

template<class TObjectClass >
FORCEINLINE void TObjectArrayIterator< TObjectClass >::RemoveCurrentSwap ( )
inline

Removes the current element from the array, faster, but does not preserves the array order.

Iterator is decremented for you so a loop will check all items.


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