![]() |
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. More... | |
Constructors & destructor | |
virtual | ~TaskWrapper () |
TaskWrapper (Task *task) | |
Additional Inherited Members | |
![]() | |
CompoundTask * | get_parent () const |
virtual bool | execute ()=0 |
virtual | ~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 |
|
explicitprotected |
|
protected |
![]() |
Copyright © 1998–2019 Forschungszentrum Jülich GmbH,
Jülich Supercomputing Centre
Copyright © 2009–2015 German Research School for Simulation Sciences GmbH, Laboratory for Parallel Programming |