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 "vtkSystemIncludes.h"
47 #include "vtkArrayCoordinates.h"
48 
50 {
51 public:
53 
55  vtkArrayRange();
56 
60 
62  CoordinateT GetBegin() const;
63 
65  CoordinateT GetEnd() const;
66 
68  CoordinateT GetSize() const;
69 
72  bool Contains(const vtkArrayRange& range) const;
73 
75  bool Contains(const CoordinateT coordinate) const;
76 
78 
79  VTK_COMMON_EXPORT friend bool operator==(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
80  VTK_COMMON_EXPORT friend bool operator!=(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
82 
84  VTK_COMMON_EXPORT friend ostream& operator<<(ostream& stream, const vtkArrayRange& rhs);
85 
86 private:
88  CoordinateT Begin;
89 
91 
92  CoordinateT End;
93 };
95 
96 #endif
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:49
VTK_COMMON_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
#define VTK_COMMON_EXPORT
VTK_COMMON_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::CoordinateT CoordinateT
Definition: vtkArrayRange.h:52
VTK_COMMON_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)