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

#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)())
 
virtual ~MessageDelegate ()
 
virtual A Execute () const
 
bool operator== (const MessageAbstractDelegate< A > *c) const
 
MessageAbstractDelegate< A > * Clone () const
 
- Public Member Functions inherited from mitk::MessageAbstractDelegate< A >
virtual ~MessageAbstractDelegate ()
 

Detailed Description

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

This class essentially wraps a 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.

Definition at line 145 of file mitkMessage.h.

Constructor & Destructor Documentation

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

Definition at line 150 of file mitkMessage.h.

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

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

Definition at line 155 of file mitkMessage.h.

Member Function Documentation

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

Implements mitk::MessageAbstractDelegate< A >.

Definition at line 157 of file mitkMessage.h.

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

Implements mitk::MessageAbstractDelegate< A >.

Definition at line 162 of file mitkMessage.h.


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