[ClassDelegate]({#ref structicy_1_1ClassDelegate #}) contains a pointer to a class member.#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.
Class * instanceRT(Class::* method| Return | Name | Description |
|---|---|---|
ClassDelegate inline | #### Parameters | |
RT | operator() virtual const inline | Calls the member function on instance. |
bool | operator== virtual const inline | #### Parameters |
inline
inline ClassDelegate(Class * instance, RT(Class::*)(Args...) method)instance Object on which to invoke the member function.
method Pointer to the member function to wrap.
virtual const inline
virtual inline RT operator()(Args... args) constCalls the member function on instance.
args Arguments forwarded to the method.Method result.
virtual const inline
virtual inline bool operator==(const AbstractDelegate< RT, Args... > & that) constthat Other delegate to compare.True if both delegates wrap the same instance/method pair.