PEARL
Parallel Event Access and Replay Library
Friends | List of all members
pearl::Task Class Referenceabstract

Abstract base class for a generic Task. More...

#include <pearl/Task.h>

Inheritance diagram for pearl::Task:
pearl::CompoundTask pearl::ReplayTask pearl::TaskWrapper pearl::BackwardReplayTask pearl::ForwardReplayTask

Public Member Functions

Accessing task properties
CompoundTaskget_parent () const
 
Executing the task
virtual bool execute ()=0
 

Friends

class CompoundTask
 
class TaskWrapper
 

Constructors & destructor

virtual ~Task ()
 
 Task ()
 

Detailed Description

The Task class provides an interface for a task or a subtask. Implementations need to derive from Task and implement the execute() method.

A Task can be child of (at most one) CompoundTask, which will then be the task's parent. Task provides means to access the parent CompoundTask.

See also
CompoundTask

Constructor & Destructor Documentation

◆ ~Task()

virtual pearl::Task::~Task ( )
virtual

◆ Task()

pearl::Task::Task ( )
protected

Member Function Documentation

◆ execute()

virtual bool pearl::Task::execute ( )
pure virtual

Pure virtual member function defining the interface for executing a task. This method needs to be overwritten in derived subclasses to define the task's runtime behavior.

Returns
Should return true if execution was successful, false otherwise

Implemented in pearl::ReplayTask, and pearl::CompoundTask.

◆ get_parent()

CompoundTask* pearl::Task::get_parent ( ) const

Friends And Related Function Documentation

◆ CompoundTask

friend class CompoundTask
friend

◆ TaskWrapper

friend class TaskWrapper
friend

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