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

#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))
 
virtual ~MessageDelegate1 ()
 
virtual A Execute (T t) const
 
bool operator== (const MessageAbstractDelegate1< T, A > *c) const
 
MessageAbstractDelegate1< T, A > * Clone () const
 
- 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 >

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

Definition at line 193 of file mitkMessage.h.

Constructor & Destructor Documentation

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

Definition at line 198 of file mitkMessage.h.

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

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

Definition at line 203 of file mitkMessage.h.

Member Function Documentation

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

Implements mitk::MessageAbstractDelegate1< T, A >.

Definition at line 205 of file mitkMessage.h.

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

Implements mitk::MessageAbstractDelegate1< T, A >.

Definition at line 210 of file mitkMessage.h.


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