TFilterCollection

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

Windows
MacOS
Linux

Inheritance Hierarchy

TSharedFromThis

TFilterCollection

FOutlinerFilters

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/FilterCollection.h

Include

#include "Misc/FilterCollection.h"

Syntax

template<typename ItemType>
class TFilterCollection : public TSharedFromThis< TFilterCollection< ItemType > >

Remarks

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

Variables

Name Description

Protected variable

FChangedEvent

 

ChangedEvent

Fires whenever any filter in the collection changes

Protected variable

TArray< TShared...

 

ChildFilters

The array of child filters

Destructors

Name Description

Public function

~TFilterCollection()

TFilterCollection destructor.

Functions

Name Description

Public function

int32

 

Add

(
    const TSharedPtr< IFilter< ItemType...
)

Adds the specified Filter to the collection

Public function

TSharedPtr< ...

 

GetFilterAtIndex

(
    int32 Index
)

Gets the filter at the specified index

Public function Const

int32

 

Num()

Returns the number of Filters in the collection

Public function

FChangedEven...

 

OnChanged()

Protected function

void

 

OnChildFilterChanged()

Called when a child Filter restrictions change and broadcasts the FilterChanged delegate for the collection

Public function Const

bool

 

PassesAllFilters

(
    ItemType InItem
)

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

Public function

int32

 

Remove

(
    const TSharedPtr< IFilter< ItemType...
)

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

Classes

Name

Description

Public class

FChangedEvent

Broadcasts anytime the restrictions of any of the child Filters change

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss