![]() |
PEARL
Parallel Event Access and Replay Library
|
Abstract base class for a generic Task. More...
#include <pearl/Task.h>
Public Member Functions | |
CompoundTask * | get_parent () const |
virtual bool | execute ()=0 |
Friends | |
class | CompoundTask |
class | TaskWrapper |
Constructors & destructor | |
virtual | ~Task () |
Task () |
The Task class provides an interface for a task or a subtask. Implementations need to derive from Task and implement the execute() method.
A Task can be child of (at most one) CompoundTask, which will then be the task's parent. Task provides means to access the parent CompoundTask.
virtual pearl::Task::~Task | ( | ) | [virtual] |
pearl::Task::Task | ( | ) | [protected] |
virtual bool pearl::Task::execute | ( | ) | [pure virtual] |
Pure virtual member function defining the interface for executing a task. This method needs to be overwritten in derived subclasses to define the task's runtime behavior.
Implemented in pearl::ReplayTask, and pearl::CompoundTask.
CompoundTask* pearl::Task::get_parent | ( | ) | const |
friend class CompoundTask [friend] |
friend class TaskWrapper [friend] |
![]() |
Copyright © 1998–2014 Forschungszentrum Jülich GmbH,
Jülich Supercomputing Centre
Copyright © 2009–2014 German Research School for Simulation Sciences GmbH, Laboratory for Parallel Programming |