Pol  Rev 533
OneShotTask Class Reference

#include <schedule.h>

+ Inheritance diagram for OneShotTask:
+ Collaboration diagram for OneShotTask:

List of all members.

Public Member Functions

 OneShotTask (OneShotTask **handle, polclock_t run_when)
virtual void cancel (void)

Protected Member Functions

virtual ~OneShotTask ()
virtual void execute (polclock_t now)
virtual void on_run ()=0

Private Attributes

OneShotTask ** handle

Detailed Description

Definition at line 81 of file schedule.h.


Constructor & Destructor Documentation

OneShotTask::OneShotTask ( OneShotTask **  handle,
polclock_t  run_when 
)

Definition at line 137 of file schedule.cpp.

References add_task(), and passert.

+ Here is the call graph for this function:

OneShotTask::~OneShotTask ( ) [protected, virtual]

Definition at line 150 of file schedule.cpp.

References handle.


Member Function Documentation

void OneShotTask::execute ( polclock_t  now) [protected, virtual]

Implements ScheduledTask.

Definition at line 163 of file schedule.cpp.

References cancel(), ScheduledTask::cancelled, and on_run().

+ Here is the call graph for this function:

virtual void OneShotTask::on_run ( ) [protected, pure virtual]

Implemented in SpellTask, and OneShotTaskInst< T >.

Referenced by execute().

+ Here is the caller graph for this function:


Member Data Documentation

Definition at line 94 of file schedule.h.

Referenced by cancel(), and ~OneShotTask().


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