TFilterCollection

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

Windows
MacOS
Linux

Inheritance Hierarchy

TSharedFromThis

TFilterCollection

FOutlinerFilters

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

References

Module

Core

Header

Runtime/Core/Public/Misc/FilterCollection.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback