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 
61 
63  explicit vtkArraySort(DimensionT i);
64 
67 
70 
73 
77  void SetDimensions(DimensionT dimensions);
78 
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 
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
vtkArraySort::operator[]
DimensionT & operator[](DimensionT i)
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkArraySort
Controls sorting of sparse array coordinates.
Definition: vtkArraySort.h:54
vtkArraySort::operator[]
const DimensionT & operator[](DimensionT i) const
vtkArraySort::operator!=
bool operator!=(const vtkArraySort &rhs) const
vtkgl::stream
GLuint GLuint stream
Definition: vtkgl.h:14154
vtkArraySort::vtkArraySort
vtkArraySort(DimensionT i, DimensionT j, DimensionT k)
vtkArrayCoordinates.h
vtkCommonCoreModule.h
vtkArraySort::DimensionT
vtkArrayCoordinates::DimensionT DimensionT
Definition: vtkArraySort.h:56
vtkArrayCoordinates::DimensionT
vtkIdType DimensionT
Definition: vtkArrayCoordinates.h:60
vtkArraySort::SetDimensions
void SetDimensions(DimensionT dimensions)
vtkArraySort::operator==
bool operator==(const vtkArraySort &rhs) const
vtkArraySort::vtkArraySort
vtkArraySort(DimensionT i, DimensionT j)
vtkArraySort::operator<<
VTKCOMMONCORE_EXPORT friend ostream & operator<<(ostream &stream, const vtkArraySort &rhs)
vtkArraySort::vtkArraySort
vtkArraySort()
vtkArraySort::GetDimensions
DimensionT GetDimensions() const
vtkArraySort::vtkArraySort
vtkArraySort(DimensionT i)
vtkSystemIncludes.h