Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
IFilter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Delegates/Delegate.h"
7
8/**
9 * A generic interface that represents a Filter of ItemType.
10 */
11template< typename TItemType >
13{
14public:
15 typedef TItemType ItemType;
16
17 virtual ~IFilter(){ }
18
19 /** Returns whether the specified Item passes the Filter's restrictions */
20 virtual bool PassesFilter( TItemType InItem ) const = 0;
21
22 /** Broadcasts anytime the restrictions of the Filter changes */
23 DECLARE_EVENT( IFilter<TItemType>, FChangedEvent );
24 virtual FChangedEvent& OnChanged() = 0;
25};
#define DECLARE_EVENT(OwningType, EventName)
virtual FChangedEvent & OnChanged()=0
virtual ~IFilter()
Definition IFilter.h:17
virtual bool PassesFilter(TItemType InItem) const =0
TItemType ItemType
Definition IFilter.h:15