Callback Class Reference

This class defines an interface for all callback classes to be used with the scheduler. More...

#include <callback_decls.h>

Inheritance diagram for Callback:

CallbackChain ChannelCallback< T > ExceptionCallback< T > ScheduleCallback SuspendCallback< T > List of all members.

Public Member Functions

virtual void run ()=0
 This method takes action when the Callback is to be run.
virtual bool iscompleted ()
 This method returns true for canceled callbacks.

Detailed Description

This class defines an interface for all callback classes to be used with the scheduler.

Subclasses must override the run() method. You may also override the iscompleted() method to make it possible to cancel your callback.


Member Function Documentation

virtual void Callback::run (  )  [pure virtual]

This method takes action when the Callback is to be run.

Derived classes must override this method.

Implemented in ScheduleCallback, ChannelCallback< T >, SuspendCallback< T >, CallbackChain, and ExceptionCallback< T >.

bool Callback::iscompleted (  )  [virtual]

This method returns true for canceled callbacks.

It is not invoked after the run() method. This method may be overridden.

Returns:
false

Reimplemented in SuspendCallback< T >.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1