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

A simple collection of Filters, with additional Filter specific functionality. 更多...

#include <FilterCollection.h>

+ 类 TFilterCollection< ItemType > 继承关系图:

Public 成员函数

int32 Add (const TSharedPtr< IFilter< ItemType > > &Filter)
 Adds the specified Filter to the collection 更多...
 
 DECLARE_EVENT (TFilterCollection< ItemType >, FChangedEvent)
 Broadcasts anytime the restrictions of any of the child Filters change
 
TSharedPtr< IFilter< ItemType > > GetFilterAtIndex (int32 Index)
 Gets the filter at the specified index 更多...
 
FORCEINLINE int32 Num () const
 Returns the number of Filters in the collection
 
bool PassesAllFilters (ItemType InItem) const
 Returns whether the specified Item passes all of the filters in the collection 更多...
 
int32 Remove (const TSharedPtr< IFilter< ItemType > > &Filter)
 Removes as many instances of the specified Filter as there are in the collection 更多...
 
 ~TFilterCollection ()
 TFilterCollection destructor. 更多...
 
- Public 成员函数 继承自 TSharedFromThis< TFilterCollection< ItemType > >
TSharedRef< TFilterCollection< ItemType >, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< TFilterCollection< ItemType > const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

Protected 成员函数

void OnChildFilterChanged ()
 Called when a child Filter restrictions change and broadcasts the FilterChanged delegate for the collection
 
- Protected 成员函数 继承自 TSharedFromThis< TFilterCollection< ItemType > >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 

Protected 属性

FChangedEvent ChangedEvent
 Fires whenever any filter in the collection changes
 
TArray< TSharedPtr< IFilter< ItemType > > > ChildFilters
 The array of child filters
 

额外继承的成员函数

- 静态 Protected 成员函数 继承自 TSharedFromThis< TFilterCollection< ItemType > >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

template<typename ItemType>
class TFilterCollection< ItemType >

A simple collection of Filters, with additional Filter specific functionality.

构造及析构函数说明

◆ ~TFilterCollection()

template<typename ItemType >
TFilterCollection< ItemType >::~TFilterCollection ( )
inline

TFilterCollection destructor.

Unregisters from all child filter changed delegates.

成员函数说明

◆ Add()

template<typename ItemType >
int32 TFilterCollection< ItemType >::Add ( const TSharedPtr< IFilter< ItemType > > &  Filter)
inline

Adds the specified Filter to the collection

参数
FilterThe filter object to add to the collection
返回
The index in the collection at which the filter was added

◆ GetFilterAtIndex()

template<typename ItemType >
TSharedPtr< IFilter< ItemType > > TFilterCollection< ItemType >::GetFilterAtIndex ( int32  Index)
inline

Gets the filter at the specified index

参数
IndexThe index of the requested filter in the ChildFilters array.
返回
Filter at the specified index

◆ PassesAllFilters()

template<typename ItemType >
bool TFilterCollection< ItemType >::PassesAllFilters ( ItemType  InItem) const
inline

Returns whether the specified Item passes all of the filters in the collection

参数
InItemThe Item to check against all child filter restrictions
返回
Whether the Item passed all child filter restrictions

◆ Remove()

template<typename ItemType >
int32 TFilterCollection< ItemType >::Remove ( const TSharedPtr< IFilter< ItemType > > &  Filter)
inline

Removes as many instances of the specified Filter as there are in the collection

参数
FilterThe filter object to remove from the collection
返回
The number of Filters removed from the collection

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