vtkMaterialInterfaceProcessRing.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkMaterialInterfaceProcessRing_h
14 #define vtkMaterialInterfaceProcessRing_h
15 
17 #include "vtkPVVTKExtensionsFiltersMaterialInterfaceModule.h" //needed for exports
18 #include <vector> // needed for Initialize()
19 
21 {
22 public:
28  void Clear();
32  void Initialize(int nProcs);
37  void Initialize(std::vector<vtkMaterialInterfaceProcessLoading>& Q, vtkIdType upperLoadingBound);
41  vtkIdType GetNextId();
45  void Print();
46 
47 private:
48  vtkIdType NextElement;
49  vtkIdType BufferSize;
50  class BufferContainer;
51  BufferContainer* Buffer;
52 };
53 #endif
#define VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT
int vtkIdType
Data structure used to distribute work amongst available processes.