VTK  9.2.6
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 
46 #ifndef vtkArraySort_h
47 #define vtkArraySort_h
48 
49 #include "vtkArrayCoordinates.h"
50 #include "vtkCommonCoreModule.h" // For export macro
51 #include "vtkSystemIncludes.h"
52 #include <vector>
53 
54 class VTKCOMMONCORE_EXPORT vtkArraySort
55 {
56 public:
58 
63  vtkArraySort();
64 
68  explicit vtkArraySort(DimensionT i);
69 
73  vtkArraySort(DimensionT i, DimensionT j);
74 
78  vtkArraySort(DimensionT i, DimensionT j, DimensionT k);
79 
83  DimensionT GetDimensions() const;
84 
90  void SetDimensions(DimensionT dimensions);
91 
95  DimensionT& operator[](DimensionT i);
96 
100  const DimensionT& operator[](DimensionT i) const;
101 
105  bool operator==(const vtkArraySort& rhs) const;
106 
110  bool operator!=(const vtkArraySort& rhs) const;
111 
115  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArraySort& rhs);
116 
117 private:
118  std::vector<DimensionT> Storage;
119 };
120 
121 #endif
122 
123 // VTK-HeaderTest-Exclude: vtkArraySort.h
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:54
bool VTKCOMMONDATAMODEL_EXPORT operator!=(vtkEdgeBase e1, vtkEdgeBase e2)
bool VTKCOMMONDATAMODEL_EXPORT operator==(vtkEdgeBase e1, vtkEdgeBase e2)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:57