![]() |
PEARL
Parallel Event Access and Replay Library
|
Abstract base class for a wrapper task. More...
#include <pearl/TaskWrapper.h>
Protected Attributes | |
Task * | m_task |
Pointer to the wrapped task. | |
Constructors & destructor | |
virtual | ~TaskWrapper () |
TaskWrapper (Task *task) |
A wrapper task can be used to add additional functionality to the execution of arbitrary Tasks, which is orthogonal to the wrapped Task's function. Derived classes need to overwrite the execute() method.
The TaskWrapper class ensures correct parent pointer handling, i.e. it sets the wrapped task's parent pointer to the innermost CompoundTask the TaskWrapper is added to.
TaskWrapper takes ownership of the wrapped task, and deletes it on destruction.
virtual pearl::TaskWrapper::~TaskWrapper | ( | ) | [virtual] |
pearl::TaskWrapper::TaskWrapper | ( | Task * | task | ) | [explicit, protected] |
Task* pearl::TaskWrapper::m_task [protected] |
![]() |
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 |