MeVisLab Toolbox Reference
ml::BackgroundTaskMethodCallMessage< Object, Method, ArgumentList > Class Template Reference

a generic message that allows to call the member function method on a given object, passing the arguments args (ArgumentList is copied using the copy constructor of each argument) More...

#include <mlBackgroundTaskMethodCallMessage.h>

Inheritance diagram for ml::BackgroundTaskMethodCallMessage< Object, Method, ArgumentList >:
ml::BackgroundTaskMessage

Public Member Functions

 BackgroundTaskMethodCallMessage (Object *object, Method method, const ArgumentList &args)
 
void execute () override
 execute message when it is delivered (reimplement in subclasses)
 
- Public Member Functions inherited from ml::BackgroundTaskMessage
 BackgroundTaskMessage ()
 
virtual ~BackgroundTaskMessage ()
 
void setSender (BackgroundTask *task)
 set who sends the message (default is NULL and means that the message's sender is not a BackgroundTask)
 
BackgroundTasksender ()
 returns the task from which the message originates
 
void setReceiver (BackgroundTaskMessageReceiver *receiverArg)
 set who receives the message (default is NULL)
 
BackgroundTaskMessageReceiverreceiver ()
 returns the object which receives the message (default is NULL)
 
virtual void executeSynchronous ()
 execute message when it is delivered and the task runs synchronous, the default implementation just calls the execute() method (reimplement in subclasses).
 
virtual bool finishedProcessing ()
 tells if the message needs further processing or if it may be deleted if true is returned, the message is placed to another processing queue and finishedProcessing() is called in regular intervals
 
virtual void taskWillBeDestroyed ()
 this needs to be implemented if the message uses finishedProcessing() and the task is finished while a message is still on it's way
 

Detailed Description

template<class Object, class Method, class ArgumentList>
class ml::BackgroundTaskMethodCallMessage< Object, Method, ArgumentList >

a generic message that allows to call the member function method on a given object, passing the arguments args (ArgumentList is copied using the copy constructor of each argument)

Definition at line 27 of file mlBackgroundTaskMethodCallMessage.h.

Constructor & Destructor Documentation

◆ BackgroundTaskMethodCallMessage()

ml::BackgroundTaskMethodCallMessage< Object, Method, ArgumentList >::BackgroundTaskMethodCallMessage ( Object * object,
Method method,
const ArgumentList & args )
inline

Definition at line 29 of file mlBackgroundTaskMethodCallMessage.h.

Member Function Documentation

◆ execute()

execute message when it is delivered (reimplement in subclasses)

Implements ml::BackgroundTaskMessage.

Definition at line 35 of file mlBackgroundTaskMethodCallMessage.h.

References ml::MLCallMethodWithArguments().


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