PEARL
Parallel Event Access and Replay Library
Protected Attributes | List of all members
pearl::TaskWrapper Class Reference

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

#include <pearl/TaskWrapper.h>

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

Protected Attributes

Taskm_task
 Pointer to the wrapped task. More...
 

Constructors & destructor

virtual ~TaskWrapper ()
 
 TaskWrapper (Task *task)
 

Additional Inherited Members

- Public Member Functions inherited from pearl::Task
CompoundTaskget_parent () const
 
virtual bool execute ()=0
 
virtual ~Task ()
 
- Protected Member Functions inherited from pearl::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

◆ ~TaskWrapper()

virtual pearl::TaskWrapper::~TaskWrapper ( )
virtual

◆ TaskWrapper()

pearl::TaskWrapper::TaskWrapper ( Task task)
explicitprotected

Member Data Documentation

◆ m_task

Task* pearl::TaskWrapper::m_task
protected

The documentation for this class was generated from the following file:

Scalasca    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