VTK  9.2.6
vtkArrayRange.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrayRange.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 
41 #ifndef vtkArrayRange_h
42 #define vtkArrayRange_h
43 
44 #include "vtkArrayCoordinates.h"
45 #include "vtkCommonCoreModule.h" // For export macro
46 #include "vtkSystemIncludes.h"
47 
48 class VTKCOMMONCORE_EXPORT vtkArrayRange
49 {
50 public:
52 
56  vtkArrayRange();
57 
63  vtkArrayRange(CoordinateT begin, CoordinateT end);
64 
68  CoordinateT GetBegin() const;
69 
73  CoordinateT GetEnd() const;
74 
78  CoordinateT GetSize() const;
79 
84  bool Contains(const vtkArrayRange& range) const;
85 
89  bool Contains(const CoordinateT coordinate) const;
90 
92 
95  VTKCOMMONCORE_EXPORT friend bool operator==(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
96  VTKCOMMONCORE_EXPORT friend bool operator!=(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
98 
102  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArrayRange& rhs);
103 
104 private:
108  CoordinateT Begin;
109 
111 
114  CoordinateT End;
116 };
117 
118 #endif
119 // VTK-HeaderTest-Exclude: vtkArrayRange.h
bool VTKCOMMONDATAMODEL_EXPORT operator!=(vtkEdgeBase e1, vtkEdgeBase e2)
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:48
bool VTKCOMMONDATAMODEL_EXPORT operator==(vtkEdgeBase e1, vtkEdgeBase e2)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkArrayCoordinates::CoordinateT CoordinateT
Definition: vtkArrayRange.h:51