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 "vtkCommunicator.h"
31 
33 {
34 public:
36  static vtkDummyCommunicator *New();
37  virtual void PrintSelf(ostream &os, vtkIndent indent);
38 
40 
42  virtual int SendVoidArray(const void *, vtkIdType, int, int, int) {
43  vtkWarningMacro("There is no one to send to.");
44  return 0;
45  }
46  virtual int ReceiveVoidArray(void *, vtkIdType, int, int, int) {
47  vtkWarningMacro("There is no one to receive from.");
48  return 0;
49  }
51 
52 protected:
54  virtual ~vtkDummyCommunicator();
55 
56 private:
57  vtkDummyCommunicator(const vtkDummyCommunicator &); // Not implemented
58  void operator=(const vtkDummyCommunicator &); // Not implemented
59 };
60 
61 #endif //__vtkDummyCommunicator_h
Dummy controller for single process applications.
virtual int SendVoidArray(const void *, vtkIdType, int, int, int)
int vtkIdType
Definition: vtkType.h:255
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_PARALLEL_EXPORT
static vtkObject * New()
Used to send/receive messages in a multiprocess environment.
virtual int ReceiveVoidArray(void *, vtkIdType, int, int, int)