class Host

Class representing a host in the PVM.

Public Methods

[more]std::string Arch () const
returns the name of the architecture of this host.
[more] Host (unsigned int What)
constructs a Host for the host with the host id What as used by PVM.
[more]std::string Name () const
returns the name of the host.
[more]bool Running () const
returns, whether the host is up and running and still part of the PVM.
[more]void Spawn (const std::string &Task, int Num, TaskSet &Result) const
starts Num instances of the task with name Task on the current host and returns the set of started tasks in Result.
[more]Task Spawn (const std::string &Task) const
starts the task with name Task on the host and returns the corresponding instance of Task
[more]unsigned int Speed () const
returns the speed of this host.
[more]void Tasks (TaskSet &Result) const
returns a list of all tasks, currently running on this host, in the reference parameter Result.
[more] operator unsigned int () const
returns the host id as used by PVM.


Documentation

Class representing a host in the PVM.

This class represents a host, that is part of 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, Host What ) defined as well. It outputs the host id as used by the PVM prepended by a "h".

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

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

ostd::string Name() const
returns the name of the host.

ostd::string Arch() const
returns the name of the architecture of this host.

ounsigned int Speed() const
returns the speed of this host. It's the same as in PVM.

obool Running() const
returns, whether the host is up and running and still part of the PVM.

ovoid Spawn(const std::string &Task, int Num, TaskSet &Result) const
starts Num instances of the task with name Task on the current host and returns the set of started tasks in Result. The PVM rules regarding the default search path apply.

oTask Spawn(const std::string &Task) const
starts the task with name Task on the host and returns the corresponding instance of Task

ovoid Tasks(TaskSet &Result) const
returns a list of all tasks, currently running on this host, in the reference parameter Result.


This class has no child classes.

Alphabetic index Hierarchy of classes



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