7#include "Arp/Base/Core/Detail/IDelegateFunctor.hpp"
9namespace Arp::Base::Core
15class DelegateFunctorBase :
public IDelegateFunctor
18 DelegateFunctorBase(
void) =
default;
21 virtual bool EqualsTo(
const T& other) = 0;
24 virtual bool Equals(
const IDelegateFunctor& other);
30inline bool DelegateFunctorBase<T>::Equals(
const IDelegateFunctor& other)
32 const T* pDerived =
dynamic_cast<const T*
>(&other);
33 if (pDerived ==
nullptr)
38 return this->EqualsTo(*pDerived);
@ Equals
Start recording if TriggerVariable1 is equal to TriggerVariable2.