DelegateMQ
|
Non-template base class for all delegates. More...
#include <Delegate.h>
Public Member Functions | |
DelegateBase ()=default | |
virtual | ~DelegateBase () noexcept=default |
bool | operator== (const DelegateBase &rhs) const noexcept |
Compares two delegate objects for equality. | |
bool | operator!= (const DelegateBase &rhs) const |
Compares two delegate objects for inequality. | |
virtual bool | operator== (std::nullptr_t) const noexcept=0 |
virtual bool | operator!= (std::nullptr_t) const noexcept=0 |
virtual bool | Equal (const DelegateBase &other) const =0 |
virtual DelegateBase * | Clone () const =0 |
Clone a delegate instance. | |
Non-template base class for all delegates.
|
default |
|
virtualdefaultnoexcept |
|
pure virtual |
Clone a delegate instance.
Use Clone() to provide a deep copy using a base pointer. Covariant overloading is used so that a Clone() method return type is a more specific type in the derived class implementations.
operator new()
. Implemented in dmq::Delegate< RetType(Args...)>, dmq::DelegateFree< RetType(Args...)>, dmq::DelegateFreeAsync< RetType(Args...)>, dmq::DelegateFreeAsyncWait< RetType(Args...)>, dmq::DelegateFreeRemote< RetType(Args...)>, dmq::DelegateFunction< RetType(Args...)>, dmq::DelegateFunctionAsync< RetType(Args...)>, dmq::DelegateFunctionAsyncWait< RetType(Args...)>, dmq::DelegateFunctionRemote< RetType(Args...)>, dmq::DelegateMember< TClass, RetType(Args...)>, dmq::DelegateMemberAsync< TClass, RetType(Args...)>, dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)>, and dmq::DelegateMemberRemote< TClass, RetType(Args...)>.
|
pure virtual |
Compares two delegate objects for equality.
true
if the objects are equal, false
otherwise. Implemented in dmq::DelegateFree< RetType(Args...)>, dmq::DelegateFreeAsync< RetType(Args...)>, dmq::DelegateFreeAsyncWait< RetType(Args...)>, dmq::DelegateFreeRemote< RetType(Args...)>, dmq::DelegateFunction< RetType(Args...)>, dmq::DelegateFunctionAsync< RetType(Args...)>, dmq::DelegateFunctionAsyncWait< RetType(Args...)>, dmq::DelegateFunctionRemote< RetType(Args...)>, dmq::DelegateMember< TClass, RetType(Args...)>, dmq::DelegateMemberAsync< TClass, RetType(Args...)>, dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)>, and dmq::DelegateMemberRemote< TClass, RetType(Args...)>.
|
inline |
Compares two delegate objects for inequality.
rhs | The delegate object to compare with the current object. |
true
if the objects are not equal, false
otherwise.
|
pure virtualnoexcept |
Overload operator!= to compare the delegate to nullptr
true
if delegate is not null. Implemented in dmq::DelegateFree< RetType(Args...)>, dmq::DelegateFreeAsync< RetType(Args...)>, dmq::DelegateFreeAsyncWait< RetType(Args...)>, dmq::DelegateFreeRemote< RetType(Args...)>, dmq::DelegateFunction< RetType(Args...)>, dmq::DelegateFunctionAsync< RetType(Args...)>, dmq::DelegateFunctionAsyncWait< RetType(Args...)>, dmq::DelegateFunctionRemote< RetType(Args...)>, dmq::DelegateMember< TClass, RetType(Args...)>, dmq::DelegateMemberAsync< TClass, RetType(Args...)>, dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)>, and dmq::DelegateMemberRemote< TClass, RetType(Args...)>.
|
inlinenoexcept |
Compares two delegate objects for equality.
rhs | The delegate object to compare with the current object. |
true
if the objects are equal, false
otherwise.
|
pure virtualnoexcept |
Overload operator== to compare the delegate to nullptr
true
if delegate is null. Implemented in dmq::DelegateFree< RetType(Args...)>, dmq::DelegateFreeAsync< RetType(Args...)>, dmq::DelegateFreeAsyncWait< RetType(Args...)>, dmq::DelegateFreeRemote< RetType(Args...)>, dmq::DelegateFunction< RetType(Args...)>, dmq::DelegateFunctionAsync< RetType(Args...)>, dmq::DelegateFunctionAsyncWait< RetType(Args...)>, dmq::DelegateFunctionRemote< RetType(Args...)>, dmq::DelegateMember< TClass, RetType(Args...)>, dmq::DelegateMemberAsync< TClass, RetType(Args...)>, dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)>, and dmq::DelegateMemberRemote< TClass, RetType(Args...)>.