BackwardReplayTask Class Reference
[PEARL.replay]

Base class for backward trace-replay tasks. More...

#include <ReplayTask.h>

Inheritance diagram for BackwardReplayTask:

ReplayTask Task

List of all members.

Protected Member Functions

Constructors & destructor
 BackwardReplayTask (const GlobalDefs &defs, LocalTrace &trace, CallbackData *cbdata=0, CallbackManager *cbmanager=0)
Replay control
virtual bool replay ()


Detailed Description

BackwardReplayTask will perform a backward replay using PEARL_backward_replay() when executed. To use this class, derive a class from BackwardReplayTask and add some callback methods. For an example, please refer to the description of class ForwardReplayTask.

See also:
ForwardReplayTask

Constructor & Destructor Documentation

BackwardReplayTask ( const GlobalDefs defs,
LocalTrace trace,
CallbackData cbdata = 0,
CallbackManager cbmanager = 0 
) [protected]

Constructor. Initializes internal data.

The constructor creates a default callback manager of type pearl::CallbackManager. You can specify a different callback manager by passing a non-null pointer to a callback manager object via the cbmanager argument. Note that BackwardReplayTask takes ownership of the callback manager object, i.e., it will be freed automatically in the BackwardReplayTask destructor.

Parameters:
defs Reference to global definition object
trace Reference to the trace object the replay will be performed on
cbdata Pointer to callback data object to be passed to the callback functions (default 0)
cbmanager Pointer to callback manager object (default 0)


Member Function Documentation

bool replay (  )  [protected, virtual]

Executes a backward replay, i.e., iterates over the events of the associated trace in reverse order (i.e., from the end to the beginning) and executes the corresponding callbacks registered with the callback manager.

Returns:
Always true

Implements ReplayTask.


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