class HostSet |
A set of hosts in the PVM.
Task | Spawn (const std::string &Task) const starts the task with name Task on one of the hosts in the set and returns the corresponding instance of Task. |
void | Spawn (const std::string &Task, int Num, TaskSet &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. Pvm::HostSet AllHosts; Pvm::Pvm ().Hosts (AllHosts); AllHosts.erase (Pvm::Pvm ().I ().Host ()); // start one task on all those hosts Pvm::TaskSet AllTasks; Pvm::HostSet::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