ConstClassDelegate
ConstClassDelegate contains a pointer to a const class member.ConstClassDelegate
#include <icy/delegate.h>template<class Class, typename RT, typename... Args>
struct ConstClassDelegateDefined in src/base/include/icy/delegate.h:116
Inherits:
AbstractDelegate< RT, Args... >
The [ConstClassDelegate](#constclassdelegate) contains a pointer to a const class member.
This class implements fast delegates and function comparison.
List of all members
| Name | Kind | Owner |
|---|---|---|
instance | variable | Declared here |
method | variable | Declared here |
ConstClassDelegate | function | Declared here |
operator() | function | Declared here |
operator== | function | Declared here |
~AbstractDelegate | function | Inherited from AbstractDelegate |
operator() | function | Inherited from AbstractDelegate |
operator== | function | Inherited from AbstractDelegate |
Inherited from AbstractDelegate
| Kind | Name | Description |
|---|---|---|
function | ~AbstractDelegate virtual inline | |
function | operator() virtual const | Invokes the underlying callable with the supplied arguments. |
function | operator== virtual const | Compares two delegates for equality (same target function and instance). |
Public Attributes
instance
Class * instanceDefined in src/base/include/icy/delegate.h:118
method
RT(Class::* methodDefined in src/base/include/icy/delegate.h:119
Public Methods
| Return | Name | Description |
|---|---|---|
ConstClassDelegate inline | ||
RT | operator() virtual const inline override | Calls the const member function on instance. |
bool | operator== virtual const inline override |
ConstClassDelegate
inline
inline ConstClassDelegate(Class * instance, RT(Class::*)(Args...) const method)Defined in src/base/include/icy/delegate.h:123
Parameters
instanceObject on which to invoke the const member function.methodPointer to the const member function to wrap.
operator()
virtual const inline override
virtual inline RT operator()(Args... args) const overrideDefined in src/base/include/icy/delegate.h:132
Calls the const member function on instance.
Parameters
argsArguments forwarded to the method.
Returns
Method result.
Reimplements
operator==
virtual const inline override
virtual inline bool operator==(const AbstractDelegate< RT, Args... > & that) const overrideDefined in src/base/include/icy/delegate.h:139
Parameters
thatOther delegate to compare.
Returns
True if both delegates wrap the same instance/method pair.
