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 
42 #ifndef __vtkArraySort_h
43 #define __vtkArraySort_h
44 
45 #include "vtkSystemIncludes.h"
46 #include "vtkArrayCoordinates.h"
47 #include <vector>
48 
50 {
51 public:
53 
56  vtkArraySort();
57 
59  explicit vtkArraySort(DimensionT i);
60 
63 
66 
68  DimensionT GetDimensions() const;
69 
73  void SetDimensions(DimensionT dimensions);
74 
76  DimensionT& operator[](DimensionT i);
77 
79  const DimensionT& operator[](DimensionT i) const;
80 
81 
83  bool operator==(const vtkArraySort& rhs) const;
84 
86  bool operator!=(const vtkArraySort& rhs) const;
87 
89 
90  VTK_COMMON_EXPORT friend ostream& operator<<(
91  ostream& stream, const vtkArraySort& rhs);
93 
94 private:
95  //BTX
96  std::vector<DimensionT> Storage;
97  //ETX
98 };
99 
100 #endif
101 
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:49
VTK_COMMON_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
#define VTK_COMMON_EXPORT
VTK_COMMON_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:52
VTK_COMMON_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)