Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::MessageDelegate< R, A > Class Template Reference

Wraps a member function pointer with signature A(R::*function)(). More...

#include <mitkMessage.h>

Inheritance diagram for mitk::MessageDelegate< R, A >:
Collaboration diagram for mitk::MessageDelegate< R, A >:

Public Member Functions

 MessageDelegate (R *object, A(R::*memberFunctionPointer)())
 
 ~MessageDelegate () override
 
A Execute () const override
 
bool operator== (const MessageAbstractDelegate< A > *c) const override
 
MessageAbstractDelegate< A > * Clone () const override
 
- Public Member Functions inherited from mitk::MessageAbstractDelegate< A >
virtual ~MessageAbstractDelegate ()
 

Detailed Description

template<class R, typename A = void>
class mitk::MessageDelegate< R, A >

Wraps a member function pointer with signature A(R::*function)().

A is the return type of your callback function and R the type of the class implementing the function. Use this class to add a callback function to messages without parameters.

Template Parameters
RThe class type that contains the member function.
AReturn type of the callback function (default: void).

Definition at line 168 of file mitkMessage.h.

Constructor & Destructor Documentation

◆ MessageDelegate()

template<class R , typename A = void>
mitk::MessageDelegate< R, A >::MessageDelegate ( R *  object,
A(R::*)()  memberFunctionPointer 
)
inline

Definition at line 173 of file mitkMessage.h.

Referenced by mitk::MessageDelegate< R, A >::Clone().

◆ ~MessageDelegate()

template<class R , typename A = void>
mitk::MessageDelegate< R, A >::~MessageDelegate ( )
inlineoverride

Definition at line 178 of file mitkMessage.h.

Member Function Documentation

◆ Clone()

template<class R , typename A = void>
MessageAbstractDelegate<A>* mitk::MessageDelegate< R, A >::Clone ( ) const
inlineoverridevirtual

◆ Execute()

template<class R , typename A = void>
A mitk::MessageDelegate< R, A >::Execute ( ) const
inlineoverridevirtual

Implements mitk::MessageAbstractDelegate< A >.

Definition at line 180 of file mitkMessage.h.

◆ operator==()

template<class R , typename A = void>
bool mitk::MessageDelegate< R, A >::operator== ( const MessageAbstractDelegate< A > *  c) const
inlineoverridevirtual

Implements mitk::MessageAbstractDelegate< A >.

Definition at line 185 of file mitkMessage.h.


The documentation for this class was generated from the following file: