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

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

#include <mitkMessage.h>

Inheritance diagram for mitk::MessageDelegate1< R, T, A >:
Collaboration diagram for mitk::MessageDelegate1< R, T, A >:

Public Member Functions

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

Detailed Description

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

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

A is the return type of your callback function, R the type of the class implementing the function, and T the type of the argument. Use this class to add a callback function to messages with one parameter.

If you need more parameters, use MessageDelegate2, MessageDelegate3, etc.

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

Definition at line 218 of file mitkMessage.h.

Constructor & Destructor Documentation

◆ MessageDelegate1()

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

Definition at line 223 of file mitkMessage.h.

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

◆ ~MessageDelegate1()

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

Definition at line 228 of file mitkMessage.h.

Member Function Documentation

◆ Clone()

template<class R , typename T , typename A = void>
MessageAbstractDelegate1<T, A>* mitk::MessageDelegate1< R, T, A >::Clone ( ) const
inlineoverridevirtual

◆ Execute()

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

Implements mitk::MessageAbstractDelegate1< T, A >.

Definition at line 230 of file mitkMessage.h.

◆ operator==()

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

Implements mitk::MessageAbstractDelegate1< T, A >.

Definition at line 235 of file mitkMessage.h.


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