## class Class

> Singelton for querying the Pvm.

### Public Methods

  void | Hosts (HostSet &Result) const a set of all hosts in the PVM is returned in the reference parameter Result.
  Task | I () const returns a Task-instance representing the current task.
  unsigned int | NumOfArchs () const returns the Number of different architectures, that are present on the pvm.
  void | Tasks (TaskSet &Result) const a set of all tasks currently running on the PVM is returned in the reference parameter Result.
  void | Update () const this function handles all pending messages, for which receive actions other than normal receive are defined.

## Documentation

> Singelton for querying the Pvm.

> This singelton class represents the global state of the Parallel Virtual Machine (PVM). During construction (this happens on first call to any PVM++ function) all necessary internal information is created and the current tasks is introduced to the PVM. Access to the class is given by the global function const PvmClass& Pvm().

`Task I() const`
  returns a Task-instance representing the current task. I.e. the task, this function is called from.

`unsigned int NumOfArchs() const`
  returns the Number of different architectures, that are present on the pvm.

`void Hosts(HostSet &Result) const`
  a set of all hosts in the PVM is returned in the reference parameter Result.

`void Tasks(TaskSet &Result) const`
  a set of all tasks currently running on the PVM is returned in the reference parameter Result.

`void Update() const`
  this function handles all pending messages, for which receive actions other than normal receive are defined. Such are message handler, automatic unpack, swallow on receive. This is executed automatically by all Send() and Receive*() commands of the Struct and StructSet classes. If you have message handlers installed, it is important to call this function before using data, provided by such handlers. E.g. a task gets messages from time to time, telling it, which tasks it has to send messages to. It then has to provide this information to the Send()-function. Send() calls Update(), but when the message-handlers are invoked for the received message, this new information can't be provided to the Send()-function, as the old information is already there.

This class has no child classes.

Friends:
  class HostTableType
  const Class & Pvm ()

Alphabetic index Hierarchy of classes

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