Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-26 09:03:51

0001 // Created on: 2000-05-18
0002 // Created by: Peter KURNEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IntTools_Range_HeaderFile
0017 #define _IntTools_Range_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <Standard_Real.hxx>
0024 
0025 //! The class describes the 1-d range
0026 //! [myFirst, myLast].
0027 class IntTools_Range
0028 {
0029 public:
0030   DEFINE_STANDARD_ALLOC
0031 
0032   //! Empty constructor
0033   Standard_EXPORT IntTools_Range();
0034 
0035   //! Initialize me by range boundaries
0036   Standard_EXPORT IntTools_Range(const double aFirst, const double aLast);
0037 
0038   //! Modifier
0039   Standard_EXPORT void SetFirst(const double aFirst);
0040 
0041   //! Modifier
0042   Standard_EXPORT void SetLast(const double aLast);
0043 
0044   //! Selector
0045   Standard_EXPORT double First() const;
0046 
0047   //! Selector
0048   Standard_EXPORT double Last() const;
0049 
0050   //! Selector
0051   Standard_EXPORT void Range(double& aFirst, double& aLast) const;
0052 
0053 private:
0054   double myFirst;
0055   double myLast;
0056 };
0057 
0058 #endif // _IntTools_Range_HeaderFile