VTK  9.3.1
vtkDummyController.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkDummyController_h
18 #define vtkDummyController_h
19 
21 #include "vtkParallelCoreModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKPARALLELCORE_EXPORT vtkDummyController : public vtkMultiProcessController
25 {
26 public:
27  static vtkDummyController* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
34  void Initialize(int*, char***, int) override {}
35  void Initialize(int*, char***) override {}
36  void Finalize() override {}
37  void Finalize(int) override {}
38 
42  int GetLocalProcessId() { return 0; }
43 
47  void SingleMethodExecute() override;
48 
52  void MultipleMethodExecute() override;
53 
57  void CreateOutputWindow() override {}
58 
60 
64  vtkGetObjectMacro(RMICommunicator, vtkCommunicator);
65  virtual void SetCommunicator(vtkCommunicator*);
66  virtual void SetRMICommunicator(vtkCommunicator*);
68 
69 protected:
71  ~vtkDummyController() override;
72 
73 private:
74  vtkDummyController(const vtkDummyController&) = delete;
75  void operator=(const vtkDummyController&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
void Finalize(int) override
This method is for cleaning up.
void Initialize(int *, char ***, int) override
This method is for setting up the processes.
void Initialize(int *, char ***) override
Dummy controller for single process applications.
virtual void MultipleMethodExecute()=0
Execute the MultipleMethods (as define by calling SetMultipleMethod for each of the required this->Nu...
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CreateOutputWindow() override
Does nothing.
int GetLocalProcessId()
This method always returns 0.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Used to send/receive messages in a multiprocess environment.
virtual void SingleMethodExecute()=0
Execute the SingleMethod (as define by SetSingleMethod) using this->NumberOfProcesses processes...
void Finalize() override
This method is for cleaning up.
Multiprocessing communication superclass.