VTK  9.0.20200920
vtkArraySort.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArraySort.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
43 #ifndef vtkArraySort_h
44 #define vtkArraySort_h
45 
46 #include "vtkArrayCoordinates.h"
47 #include "vtkCommonCoreModule.h" // For export macro
48 #include "vtkSystemIncludes.h"
49 #include <vector>
50 
51 class VTKCOMMONCORE_EXPORT vtkArraySort
52 {
53 public:
55 
60  vtkArraySort();
61 
65  explicit vtkArraySort(DimensionT i);
66 
71 
76 
80  DimensionT GetDimensions() const;
81 
87  void SetDimensions(DimensionT dimensions);
88 
92  DimensionT& operator[](DimensionT i);
93 
97  const DimensionT& operator[](DimensionT i) const;
98 
102  bool operator==(const vtkArraySort& rhs) const;
103 
107  bool operator!=(const vtkArraySort& rhs) const;
108 
112  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArraySort& rhs);
113 
114 private:
115  std::vector<DimensionT> Storage;
116 };
117 
118 #endif
119 
120 // VTK-HeaderTest-Exclude: vtkArraySort.h
vtkArraySort
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:51
vtkArrayCoordinates.h
operator==
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
operator<<
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkArraySort::DimensionT
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:54
vtkArrayCoordinates::DimensionT
vtkIdType DimensionT
Definition: vtkArrayCoordinates.h:55
operator!=
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkSystemIncludes.h