Base module

ConstClassDelegate

The [ConstClassDelegate]({#ref structicy_1_1ConstClassDelegate #}) 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

ReturnNameDescription
Class *instance
RT(Class::*method

instance

Class * instance

method

RT(Class::* method

Public Methods

ReturnNameDescription
ConstClassDelegate inline#### Parameters
RToperator() virtual const inlineCalls the const member function on instance.
booloperator== virtual const inline#### Parameters

ConstClassDelegate

inline

inline ConstClassDelegate(Class * instance, RT(Class::*)(Args...) const method)

Parameters

  • instance Object on which to invoke the const member function.

  • method Pointer to the const member function to wrap.


operator()

virtual const inline

virtual inline RT operator()(Args... args) const

Calls the const member function on instance.

Parameters

  • args Arguments forwarded to the method.

Returns

Method result.


operator==

virtual const inline

virtual inline bool operator==(const AbstractDelegate< RT, Args... > & that) const

Parameters

  • that Other delegate to compare.

Returns

True if both delegates wrap the same instance/method pair.