#include <vtkMPIGroup.h>
Inheritance diagram for vtkMPIGroup:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
void | Initialize (vtkMPIController *controller) |
int | AddProcessId (int processId) |
void | RemoveProcessId (int processId) |
int | FindProcessId (int processId) |
int | GetProcessId (int pos) |
void | CopyProcessIdsFrom (vtkMPIGroup *group) |
int | GetNumberOfProcessIds () |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkMPIGroup * | SafeDownCast (vtkObject *o) |
vtkMPIGroup * | New () |
Protected Methods | |
void | CopyFrom (vtkMPIGroup *group) |
void | Initialize (int numProcIds) |
vtkMPIGroup () | |
~vtkMPIGroup () | |
Protected Attributes | |
int * | ProcessIds |
int | MaximumNumberOfProcessIds |
int | Initialized |
int | CurrentPosition |
Friends | |
class | vtkMPICommunicator |
This class is used to create MPI groups. A vtkMPIGroup object has to be initialized by passing the controller. Then the group can be modified by adding, removing ids and copying the contents of another group.
Definition at line 67 of file vtkMPIGroup.h.
|
|
|
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Construct a vtkMPIGroup with the following initial state: Processes = 0, MaximumNumberOfProcesses = 0. Reimplemented from vtkObject. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. |
|
Allocate memory for N process ids where N = controller->NumberOfProcesses |
|
Add a process id to the end of the list (if it is not already in the group). Returns non-zero on success. This will not add a process id >= MaximumNumberOfProcessIds. |
|
Remove the given process id from the list and shift all ids, starting from the position of the removed id, left by one. |
|
Find the location of a process id in the group. Returns -1 if the process id is not on the list. |
|
Get the process id at position pos. Returns -1 if pos >= max. available pos. |
|
Copy the process ids from a given group. This will copy N ids, where N is the smallest MaximumNumberOfProcessIds. |
|
Returns the number of ids currently stored. Definition at line 107 of file vtkMPIGroup.h. |
|
Copies all the information from group, erasing previously stored data. Similar to copy constructor |
|
Allocate memory for numProcIds process ids |
|
Definition at line 115 of file vtkMPIGroup.h. |
|
Definition at line 128 of file vtkMPIGroup.h. |
|
Definition at line 129 of file vtkMPIGroup.h. |
|
Definition at line 130 of file vtkMPIGroup.h. |
|
Definition at line 131 of file vtkMPIGroup.h. |