DelegateMQ
Loading...
Searching...
No Matches
dmq::DelegateBase Class Referenceabstract

Non-template base class for all delegates. More...

#include <Delegate.h>

Inheritance diagram for dmq::DelegateBase:
dmq::Delegate< RetType(Args...)> dmq::DelegateFree< RetType(Args...)> dmq::DelegateFunction< RetType(Args...)> dmq::DelegateMember< TClass, RetType(Args...)> dmq::DelegateFreeAsync< RetType(Args...)> dmq::DelegateFreeAsyncWait< RetType(Args...)> dmq::DelegateFreeRemote< RetType(Args...)> dmq::DelegateFunctionAsync< RetType(Args...)> dmq::DelegateFunctionAsyncWait< RetType(Args...)> dmq::DelegateFunctionRemote< RetType(Args...)> dmq::DelegateMemberAsync< TClass, RetType(Args...)> dmq::DelegateMemberAsyncWait< TClass, RetType(Args...)> dmq::DelegateMemberRemote< TClass, RetType(Args...)>

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 DelegateBaseClone () const =0
 Clone a delegate instance.
 

Detailed Description

Non-template base class for all delegates.

Constructor & Destructor Documentation

◆ DelegateBase()

dmq::DelegateBase::DelegateBase ( )
default

◆ ~DelegateBase()

virtual dmq::DelegateBase::~DelegateBase ( )
virtualdefaultnoexcept

Member Function Documentation

◆ Clone()

virtual DelegateBase * dmq::DelegateBase::Clone ( ) const
pure virtual

◆ Equal()

◆ operator!=() [1/2]

bool dmq::DelegateBase::operator!= ( const DelegateBase & rhs) const
inline

Compares two delegate objects for inequality.

Parameters
rhsThe delegate object to compare with the current object.
Returns
true if the objects are not equal, false otherwise.

◆ operator!=() [2/2]

◆ operator==() [1/2]

bool dmq::DelegateBase::operator== ( const DelegateBase & rhs) const
inlinenoexcept

Compares two delegate objects for equality.

Parameters
rhsThe delegate object to compare with the current object.
Returns
true if the objects are equal, false otherwise.

◆ operator==() [2/2]


The documentation for this class was generated from the following file: