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 
46 #ifndef vtkSubCommunicator_h
47 #define vtkSubCommunicator_h
48 
49 #include "vtkParallelCoreModule.h" // For export macro
50 #include "vtkCommunicator.h"
51 
52 class vtkProcessGroup;
53 
54 class VTKPARALLELCORE_EXPORT vtkSubCommunicator : public vtkCommunicator
55 {
56 public:
59  virtual void PrintSelf(ostream &os, vtkIndent indent);
60 
62 
65  vtkGetObjectMacro(Group, vtkProcessGroup);
66  virtual void SetGroup(vtkProcessGroup *group);
68 
70 
73  virtual int SendVoidArray(const void *data, vtkIdType length, int type,
74  int remoteHandle, int tag);
75  virtual int ReceiveVoidArray(void *data, vtkIdType length, int type,
76  int remoteHandle, int tag);
78 
79 protected:
82 
84 
85 private:
86  vtkSubCommunicator(const vtkSubCommunicator &) VTK_DELETE_FUNCTION;
87  void operator=(const vtkSubCommunicator &) VTK_DELETE_FUNCTION;
88 };
89 
90 #endif //vtkSubCommunicator_h
vtkX3D::type
@ type
Definition: vtkX3D.h:516
vtkCommunicator
Used to send/receive messages in a multiprocess environment.
Definition: vtkCommunicator.h:54
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkSubCommunicator::SetGroup
virtual void SetGroup(vtkProcessGroup *group)
vtkSubCommunicator::SendVoidArray
virtual int SendVoidArray(const void *data, vtkIdType length, int type, int remoteHandle, int tag)
Implementation for abstract supercalss.
vtkX3D::length
@ length
Definition: vtkX3D.h:393
vtkX3D::Group
@ Group
Definition: vtkX3D.h:51
vtkSubCommunicator::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSubCommunicator::~vtkSubCommunicator
virtual ~vtkSubCommunicator()
vtkSubCommunicator::vtkSubCommunicator
vtkSubCommunicator()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSubCommunicator::Group
vtkProcessGroup * Group
Definition: vtkSubCommunicator.h:83
vtkSubCommunicator::New
static vtkSubCommunicator * New()
vtkProcessGroup
A subgroup of processes from a communicator.
Definition: vtkProcessGroup.h:58
vtkCommunicator.h
vtkSubCommunicator::ReceiveVoidArray
virtual int ReceiveVoidArray(void *data, vtkIdType length, int type, int remoteHandle, int tag)
Subclasses have to supply this method to receive various arrays of data.
vtkSubCommunicator
Provides communication on a process group.
Definition: vtkSubCommunicator.h:55