PEARL
Parallel Event Access and Replay Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Protected Attributes
pearl::TaskWrapper Class Reference

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

#include <pearl/TaskWrapper.h>

Inheritance diagram for pearl::TaskWrapper:
pearl::Task

List of all members.

Protected Attributes

Taskm_task
 Pointer to the wrapped task.

Constructors & destructor

virtual ~TaskWrapper ()
 TaskWrapper (Task *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

virtual pearl::TaskWrapper::~TaskWrapper ( ) [virtual]
pearl::TaskWrapper::TaskWrapper ( Task task) [explicit, protected]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Scalasca    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