TaskWrapper Class Reference
[PEARL.replay]

Abstract base class for a wrapper task. More...

#include <TaskWrapper.h>

Inheritance diagram for TaskWrapper:

Task

List of all members.

Public Member Functions

Constructors & destructor
virtual ~TaskWrapper ()

Protected Member Functions

Constructors & destructor
 TaskWrapper (Task *task)

Protected Attributes

Taskm_task
 Pointer to the wrapped task.


Detailed Description

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.


Constructor & Destructor Documentation

~TaskWrapper (  )  [virtual]

Destructor. Deletes the wrapped task and destroys the instance.

TaskWrapper ( Task task  )  [explicit, protected]

Creates a new wrapper for the given task.

Parameters:
task Task to be wrapped


SCALASCA    Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre