A set of hosts in the PVM.
![]() | Spawn (const string &Task) const starts the task with name Task on one of the hosts in the set and returns the corresponding instance of PvmTask. |
![]() | Spawn (const string &Task, int Num, PvmTaskSet &Result) const starts Num instances of the task with name Task on the hosts in the set and returns the set of started tasks in Result. |
A set of hosts in the PVM.This class represents a set of hosts in the PVM. As it is publically derived from the STL-set, all STL-features can be used. Here is a short example:
// get all hosts except the one, I'm on. PvmHostSet AllHosts; Pvm ().Hosts (AllHosts); AllHosts.erase (Pvm ().I ().Host ()); // start one task on all those hosts PvmTaskSet AllTasks; PvmHostSet::iterator Current; for (Current = AllHosts.begin (); Current != AllHosts.end (); ++Current) { // save all started tasks to AllTasks. AllTasks.insert (Current->Spawn (PROGNAME)); }
Alphabetic index Hierarchy of classes