VTK  9.3.1
vtkArraySort.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4 
29 #ifndef vtkArraySort_h
30 #define vtkArraySort_h
31 
32 #include "vtkArrayCoordinates.h"
33 #include "vtkCommonCoreModule.h" // For export macro
34 #include "vtkSystemIncludes.h"
35 #include <vector>
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKCOMMONCORE_EXPORT vtkArraySort
39 {
40 public:
42 
47  vtkArraySort();
48 
52  explicit vtkArraySort(DimensionT i);
53 
57  vtkArraySort(DimensionT i, DimensionT j);
58 
62  vtkArraySort(DimensionT i, DimensionT j, DimensionT k);
63 
67  DimensionT GetDimensions() const;
68 
74  void SetDimensions(DimensionT dimensions);
75 
79  DimensionT& operator[](DimensionT i);
80 
84  const DimensionT& operator[](DimensionT i) const;
85 
89  bool operator==(const vtkArraySort& rhs) const;
90 
94  bool operator!=(const vtkArraySort& rhs) const;
95 
99  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArraySort& rhs);
100 
101 private:
102  std::vector<DimensionT> Storage;
103 };
104 
105 VTK_ABI_NAMESPACE_END
106 #endif
107 
108 // VTK-HeaderTest-Exclude: vtkArraySort.h
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:38
bool VTKCOMMONCORE_EXPORT operator==(const std::string &a, const vtkStringToken &b)
bool VTKCOMMONCORE_EXPORT operator!=(const std::string &a, const vtkStringToken &b)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:41