|
Class representing a host in the PVM.
Public Methods
std::string | Arch () const
returns the name of the architecture of this host.
|
| Host (unsigned int What)
constructs a Host for the host with the host id What as used by PVM.
|
std::string | Name () const
returns the name of the host.
|
bool | Running () const
returns, whether the host is up and running and still part of the PVM.
|
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.
|
Task | Spawn (const std::string &Task) const
starts the task with name Task on the host and returns the corresponding instance of Task
|
unsigned int | Speed () const
returns the speed of this host.
|
void | Tasks (TaskSet &Result) const
returns a list of all tasks, currently running on this host, in the reference parameter Result.
|
| 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".
- Host(unsigned int What)
- constructs a Host for the host with the host id What as
used by PVM.
- operator unsigned int () const
- returns the host id as used by PVM.
- std::string Name() const
- returns the name of the host.
- std::string Arch() const
- returns the name of the architecture of this host.
- unsigned int Speed() const
- returns the speed of this host. It's the same as in PVM.
- bool Running() const
- returns, whether the host is up and running and still part of
the PVM.
- 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. The PVM
rules regarding the default search path apply.
- Task Spawn(const std::string &Task) const
- starts the task with name Task on the host and returns the
corresponding instance of Task
- void 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++.
|