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 "vtkParallelCoreModule.h" // For export macro
49 #include "vtkCommunicator.h"
50 
51 class vtkProcessGroup;
52 
54 {
55 public:
58  virtual void PrintSelf(ostream &os, vtkIndent indent);
59 
61 
63  virtual void SetGroup(vtkProcessGroup *group);
65 
67 
68  virtual int SendVoidArray(const void *data, vtkIdType length, int type,
69  int remoteHandle, int tag);
70  virtual int ReceiveVoidArray(void *data, vtkIdType length, int type,
71  int remoteHandle, int tag);
73 
74 protected:
77 
79 
80 private:
81  vtkSubCommunicator(const vtkSubCommunicator &); // Not implemented
82  void operator=(const vtkSubCommunicator &); // Not implemented
83 };
84 
85 #endif //vtkSubCommunicator_h
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkgl::group
GLboolean GLuint group
Definition: vtkgl.h:18647
vtkCommunicator
Used to send/receive messages in a multiprocess environment.
Definition: vtkCommunicator.h:52
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkSubCommunicator::SetGroup
virtual void SetGroup(vtkProcessGroup *group)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSubCommunicator::SendVoidArray
virtual int SendVoidArray(const void *data, vtkIdType length, int type, int remoteHandle, int tag)
vtkgl::length
GLuint GLsizei GLsizei * length
Definition: vtkgl.h:11992
vtkX3D::Group
@ Group
Definition: vtkX3D.h:51
vtkSubCommunicator::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkSubCommunicator::~vtkSubCommunicator
virtual ~vtkSubCommunicator()
vtkSubCommunicator::vtkSubCommunicator
vtkSubCommunicator()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkParallelCoreModule.h
VTKPARALLELCORE_EXPORT
#define VTKPARALLELCORE_EXPORT
Definition: vtkParallelCoreModule.h:15
vtkSubCommunicator::Group
vtkProcessGroup * Group
Definition: vtkSubCommunicator.h:78
vtkSubCommunicator::New
static vtkSubCommunicator * New()
vtkProcessGroup
A subgroup of processes from a communicator.
Definition: vtkProcessGroup.h:57
vtkCommunicator.h
vtkSubCommunicator::ReceiveVoidArray
virtual int ReceiveVoidArray(void *data, vtkIdType length, int type, int remoteHandle, int tag)
vtkgl::type
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
vtkSubCommunicator
Provides communication on a process group.
Definition: vtkSubCommunicator.h:54