VTK
dox/Common/Core/vtkArraySort.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkArraySort.h
00005 
00006 -------------------------------------------------------------------------
00007   Copyright 2008 Sandia Corporation.
00008   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00009   the U.S. Government retains certain rights in this software.
00010 -------------------------------------------------------------------------
00011 
00012   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00013   All rights reserved.
00014   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00015 
00016      This software is distributed WITHOUT ANY WARRANTY; without even
00017      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00018      PURPOSE.  See the above copyright notice for more information.
00019 
00020 =========================================================================*/
00021 
00045 #ifndef __vtkArraySort_h
00046 #define __vtkArraySort_h
00047 
00048 #include "vtkCommonCoreModule.h" // For export macro
00049 #include "vtkSystemIncludes.h"
00050 #include "vtkArrayCoordinates.h"
00051 #include <vector>
00052 
00053 class VTKCOMMONCORE_EXPORT vtkArraySort
00054 {
00055 public:
00056   typedef vtkArrayCoordinates::DimensionT DimensionT;
00057 
00060   vtkArraySort();
00061 
00063   explicit vtkArraySort(DimensionT i);
00064 
00066   vtkArraySort(DimensionT i, DimensionT j);
00067 
00069   vtkArraySort(DimensionT i, DimensionT j, DimensionT k);
00070 
00072   DimensionT GetDimensions() const;
00073 
00077   void SetDimensions(DimensionT dimensions);
00078 
00080   DimensionT& operator[](DimensionT i);
00081 
00083   const DimensionT& operator[](DimensionT i) const;
00084 
00085 
00087   bool operator==(const vtkArraySort& rhs) const;
00088 
00090   bool operator!=(const vtkArraySort& rhs) const;
00091 
00093 
00094   VTKCOMMONCORE_EXPORT friend ostream& operator<<(
00095     ostream& stream, const vtkArraySort& rhs);
00097 
00098 private:
00099   //BTX
00100   std::vector<DimensionT> Storage;
00101   //ETX
00102 };
00103 
00104 #endif
00105 
00106 // VTK-HeaderTest-Exclude: vtkArraySort.h