Base module
ConstClassDelegate
The
[ConstClassDelegate](#constclassdelegate) contains a pointer to a const class member.ConstClassDelegate
#include <icy/delegate.h>Inherits:
AbstractDelegate< RT, Args... >
The [ConstClassDelegate](#constclassdelegate) contains a pointer to a const class member.
This class implements fast delegates and function comparison.
Public Attributes
instance
Class * instancemethod
RT(Class::* methodPublic Methods
| Return | Name | Description |
|---|---|---|
ConstClassDelegate inline | #### Parameters | |
RT | operator() virtual const inline | Calls the const member function on instance. |
bool | operator== virtual const inline | #### Parameters |
ConstClassDelegate
inline
inline ConstClassDelegate(Class * instance, RT(Class::*)(Args...) const method)Parameters
instanceObject on which to invoke the const member function.methodPointer to the const member function to wrap.
operator()
virtual const inline
virtual inline RT operator()(Args... args) constCalls the const 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.
