PEARL
Parallel Event Access and Replay Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Friends
pearl::Task Class Reference

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

List of all members.

Public Member Functions

CompoundTaskget_parent () const
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

virtual pearl::Task::~Task ( ) [virtual]
pearl::Task::Task ( ) [protected]

Member Function Documentation

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.


Friends And Related Function Documentation

friend class CompoundTask [friend]
friend class TaskWrapper [friend]

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