VTK
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 
45 #ifndef vtkArraySort_h
46 #define vtkArraySort_h
47 
48 #include "vtkCommonCoreModule.h" // For export macro
49 #include "vtkSystemIncludes.h"
50 #include "vtkArrayCoordinates.h"
51 #include <vector>
52 
54 {
55 public:
57 
60  vtkArraySort();
61 
63  explicit vtkArraySort(DimensionT i);
64 
66  vtkArraySort(DimensionT i, DimensionT j);
67 
69  vtkArraySort(DimensionT i, DimensionT j, DimensionT k);
70 
72  DimensionT GetDimensions() const;
73 
77  void SetDimensions(DimensionT dimensions);
78 
80  DimensionT& operator[](DimensionT i);
81 
83  const DimensionT& operator[](DimensionT i) const;
84 
85 
87  bool operator==(const vtkArraySort& rhs) const;
88 
90  bool operator!=(const vtkArraySort& rhs) const;
91 
93 
94  VTKCOMMONCORE_EXPORT friend ostream& operator<<(
95  ostream& stream, const vtkArraySort& rhs);
97 
98 private:
99  //BTX
100  std::vector<DimensionT> Storage;
101  //ETX
102 };
103 
104 #endif
105 
106 // VTK-HeaderTest-Exclude: vtkArraySort.h
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:53
#define VTKCOMMONCORE_EXPORT
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:56