VTK
vtkMPI4PyCommunicator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMPI4PyCommunicator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkMPI4PyCommunicator_h
26 #define vtkMPI4PyCommunicator_h
27 
28 #include "vtkPython.h" // For PyObject*; must be first
29 
30 #include "vtkParallelMPI4PyModule.h" // For export macro
31 #include "vtkObject.h"
32 
33 class vtkMPICommunicator;
34 
35 class VTKPARALLELMPI4PY_EXPORT vtkMPI4PyCommunicator : public vtkObject
36 {
37 public:
38 
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
42  static vtkMPI4PyCommunicator* New();
44 
46  static PyObject* ConvertToPython(vtkMPICommunicator* comm);
47 
49  static vtkMPICommunicator* ConvertToVTK(PyObject* comm);
50 
51 private:
52  vtkMPI4PyCommunicator(const vtkMPI4PyCommunicator&); // Not implemented.
53  void operator=(const vtkMPI4PyCommunicator&); // Not implemented.
54 };
55 
56 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
Class for creating user defined MPI communicators.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Class for bridging MPI4Py with vtkMPICommunicator.
struct _object PyObject
static vtkObject * New()