VTK
vtkSubCommunicator.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkSubCommunicator.h
6 
7  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
16 /*----------------------------------------------------------------------------
17  Copyright (c) Sandia Corporation
18  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
19 ----------------------------------------------------------------------------*/
20 
45 #ifndef __vtkSubCommunicator_h
46 #define __vtkSubCommunicator_h
47 
48 #include "vtkCommunicator.h"
49 
50 class vtkProcessGroup;
51 
53 {
54 public:
56  static vtkSubCommunicator *New();
57  virtual void PrintSelf(ostream &os, vtkIndent indent);
58 
60 
61  vtkGetObjectMacro(Group, vtkProcessGroup);
62  virtual void SetGroup(vtkProcessGroup *group);
64 
66 
67  virtual int SendVoidArray(const void *data, vtkIdType length, int type,
68  int remoteHandle, int tag);
69  virtual int ReceiveVoidArray(void *data, vtkIdType length, int type,
70  int remoteHandle, int tag);
72 
73 protected:
75  virtual ~vtkSubCommunicator();
76 
78 
79 private:
80  vtkSubCommunicator(const vtkSubCommunicator &); // Not implemented
81  void operator=(const vtkSubCommunicator &); // Not implemented
82 };
83 
84 #endif //__vtkSubCommunicator_h
vtkProcessGroup * Group
int vtkIdType
Definition: vtkType.h:255
virtual int ReceiveVoidArray(void *data, vtkIdType maxlength, int type, int remoteHandle, int tag)=0
a simple class to control print indentation
Definition: vtkIndent.h:37
A subgroup of processes from a communicator.
virtual int SendVoidArray(const void *data, vtkIdType length, int type, int remoteHandle, int tag)=0
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_PARALLEL_EXPORT
static vtkObject * New()
Used to send/receive messages in a multiprocess environment.
Provides communication on a process group.