Go to the documentation of this file.
48 #ifndef vtkProcessGroup_h
49 #define vtkProcessGroup_h
51 #include "vtkParallelCoreModule.h"
94 vtkGetMacro(NumberOfProcessIds,
int);
157 #endif //vtkProcessGroup_h
Used to send/receive messages in a multiprocess environment.
void RemoveAllProcessIds()
Removes all the processes ids from the group, leaving the group empty.
int FindProcessId(int processId)
Given a process id in the communicator, this method returns its location in the group or -1 if it is ...
abstract base class for most VTK objects
void Initialize(vtkCommunicator *communicator)
int GetProcessId(int pos)
Given a position in the group, returns the id of the process in the communicator this group is based ...
Multiprocessing communication superclass.
a simple class to control print indentation
virtual ~vtkProcessGroup()
vtkCommunicator * Communicator
void SetCommunicator(vtkCommunicator *communicator)
Set the communicator.
A subgroup of processes from a communicator.
static vtkProcessGroup * New()
void Initialize(vtkMultiProcessController *controller)
Initialize the group to the given controller or communicator.
void Copy(vtkProcessGroup *group)
Copies the given group's communicator and process ids.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int GetLocalProcessId()
Get the process id for the local process (as defined by the group's communicator).
int RemoveProcessId(int processId)
Remove the given process id from the group (assuming it is in the group).
int AddProcessId(int processId)
Add a process id to the end of the group (if it is not already in the group).