Base module
ClassDelegate
The
[ClassDelegate](#classdelegate) contains a pointer to a class member.ClassDelegate
#include <icy/delegate.h>Inherits:
AbstractDelegate< RT, Args... >
The [ClassDelegate](#classdelegate) contains a pointer to a class member.
This class implements fast delegates and function comparison.
Public Attributes
instance
Class * instancemethod
RT(Class::* methodPublic Methods
| Return | Name | Description |
|---|---|---|
ClassDelegate inline | #### Parameters | |
RT | operator() virtual const inline | Calls the member function on instance. |
bool | operator== virtual const inline | #### Parameters |
ClassDelegate
inline
inline ClassDelegate(Class * instance, RT(Class::*)(Args...) method)Parameters
instanceObject on which to invoke the member function.methodPointer to the member function to wrap.
operator()
virtual const inline
virtual inline RT operator()(Args... args) constCalls the member function on instance.
Parameters
argsArguments forwarded to the method.
Returns
Method result.
operator==
virtual const inline
virtual inline bool operator==(const AbstractDelegate< RT, Args... > & that) constParameters
thatOther delegate to compare.
Returns
True if both delegates wrap the same instance/method pair.
