class PvmTask

Class representing a task on the PVM.

Inheritance:

PvmTask


Public Methods

[more]bool HasParent () const
returns, whether the task has a parent.
[more]PvmHost Host () const
returns the host, the task is running on.
[more]void Kill () const
kills the tasks.
[more]string Name () const
returns the name of the task.
[more]PvmTask Parent () const
returns the parent of the task.
[more] PvmTask (unsigned int What)
constructs a PvmTask for the host with the task id What as used by PVM.
[more]bool Running () const
returns, whether the task is running.
[more] operator unsigned int () const
returns the host id as used by PVM.


Documentation

Class representing a task on the PVM.

This class represents a task, running (or preveously running) on the PVM. Internally it just stores a pointer to a data structure, so it is save and fast to use it as a value parameter and as a function result as well. Requests to the PVM, like Name() are cached, so you don't need to cache yourself.

There is an ostream& operator<< (ostream &Stream, PvmTask What) defined as well. It outputs the task id as used by the PVM prepended by a "t".

o PvmTask(unsigned int What)
constructs a PvmTask for the host with the task id What as used by PVM.

o operator unsigned int () const
returns the host id as used by PVM.

obool HasParent() const
returns, whether the task has a parent.

oPvmTask Parent() const
returns the parent of the task. It is an error to call this function, if no parent exists. Use HasParent() to check.

oPvmHost Host() const
returns the host, the task is running on.

ostring Name() const
returns the name of the task. The name is only available for programs started by PVM++ via a Spawn() call or started by PVM using the pvm_spawn() call. This is a limitation inherited from PVM.

obool Running() const
returns, whether the task is running.

ovoid Kill() const
kills the tasks.


This class has no child classes.
Friends:
class PvmHostSet

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.