VTK
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 
43 #ifndef vtkArrayRange_h
44 #define vtkArrayRange_h
45 
46 #include "vtkCommonCoreModule.h" // For export macro
47 #include "vtkSystemIncludes.h"
48 #include "vtkArrayCoordinates.h"
49 
51 {
52 public:
54 
56  vtkArrayRange();
57 
60  vtkArrayRange(CoordinateT begin, CoordinateT end);
61 
63  CoordinateT GetBegin() const;
64 
66  CoordinateT GetEnd() const;
67 
69  CoordinateT GetSize() const;
70 
73  bool Contains(const vtkArrayRange& range) const;
74 
76  bool Contains(const CoordinateT coordinate) const;
77 
79 
80  VTKCOMMONCORE_EXPORT friend bool operator==(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
81  VTKCOMMONCORE_EXPORT friend bool operator!=(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
83 
85  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArrayRange& rhs);
86 
87 private:
89  CoordinateT Begin;
90 
92 
93  CoordinateT End;
94 };
96 
97 #endif
98 // VTK-HeaderTest-Exclude: vtkArrayRange.h
#define VTKCOMMONCORE_EXPORT
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:50
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::CoordinateT CoordinateT
Definition: vtkArrayRange.h:53