VTK
vtkDummyCommunicator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDummyCommunicator.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 =========================================================================*/
15 
27 #ifndef vtkDummyCommunicator_h
28 #define vtkDummyCommunicator_h
29 
30 #include "vtkParallelCoreModule.h" // For export macro
31 #include "vtkCommunicator.h"
32 
34 {
35 public:
37  static vtkDummyCommunicator *New();
38  virtual void PrintSelf(ostream &os, vtkIndent indent);
39 
41 
43  virtual int SendVoidArray(const void *, vtkIdType, int, int, int) {
44  vtkWarningMacro("There is no one to send to.");
45  return 0;
46  }
47  virtual int ReceiveVoidArray(void *, vtkIdType, int, int, int) {
48  vtkWarningMacro("There is no one to receive from.");
49  return 0;
50  }
52 
53 protected:
55  virtual ~vtkDummyCommunicator();
56 
57 private:
58  vtkDummyCommunicator(const vtkDummyCommunicator &); // Not implemented
59  void operator=(const vtkDummyCommunicator &); // Not implemented
60 };
61 
62 #endif //vtkDummyCommunicator_h
Dummy controller for single process applications.
#define VTKPARALLELCORE_EXPORT
virtual int SendVoidArray(const void *, vtkIdType, int, int, int)
int vtkIdType
Definition: vtkType.h:247
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
Used to send/receive messages in a multiprocess environment.
virtual int ReceiveVoidArray(void *, vtkIdType, int, int, int)