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 
46 #ifndef vtkArraySort_h
47 #define vtkArraySort_h
48 
49 #include "vtkCommonCoreModule.h" // For export macro
50 #include "vtkSystemIncludes.h"
51 #include "vtkArrayCoordinates.h"
52 #include <vector>
53 
54 class VTKCOMMONCORE_EXPORT vtkArraySort
55 {
56 public:
58 
64 
68  explicit vtkArraySort(DimensionT i);
69 
74 
79 
84 
90  void SetDimensions(DimensionT dimensions);
91 
96 
101 
102 
106  bool operator==(const vtkArraySort& rhs) const;
107 
111  bool operator!=(const vtkArraySort& rhs) const;
112 
116  VTKCOMMONCORE_EXPORT friend ostream& operator<<(
117  ostream& stream, const vtkArraySort& rhs);
118 
119 private:
120 
121  std::vector<DimensionT> Storage;
122 
123 };
124 
125 #endif
126 
127 // VTK-HeaderTest-Exclude: vtkArraySort.h
vtkArraySort::operator[]
DimensionT & operator[](DimensionT i)
Returns the i-th dimension to be sorted.
vtkArraySort
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:55
vtkArraySort::operator[]
const DimensionT & operator[](DimensionT i) const
Returns the i-th dimension to be sorted.
vtkArraySort::operator!=
bool operator!=(const vtkArraySort &rhs) const
Inequality comparison.
vtkArraySort::vtkArraySort
vtkArraySort(DimensionT i, DimensionT j, DimensionT k)
Sorts an array along three dimensions.
vtkArrayCoordinates.h
vtkArraySort::DimensionT
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:57
vtkArrayCoordinates::DimensionT
vtkIdType DimensionT
Definition: vtkArrayCoordinates.h:61
vtkArraySort::SetDimensions
void SetDimensions(DimensionT dimensions)
Set the number of dimensions to be sorted.
vtkArraySort::operator==
bool operator==(const vtkArraySort &rhs) const
Equality comparison.
vtkArraySort::vtkArraySort
vtkArraySort(DimensionT i, DimensionT j)
Sorts an array along two dimensions.
vtkArraySort::operator<<
VTKCOMMONCORE_EXPORT friend ostream & operator<<(ostream &stream, const vtkArraySort &rhs)
Serialization.
vtkArraySort::vtkArraySort
vtkArraySort()
Create an empty set of dimensions.
vtkArraySort::GetDimensions
DimensionT GetDimensions() const
Return the number of dimensions for sorting.
vtkArraySort::vtkArraySort
vtkArraySort(DimensionT i)
Sorts an array along one dimension.
vtkSystemIncludes.h