// Created by: Peter KURNEV // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _BOPDS_IndexRange_HeaderFile #define _BOPDS_IndexRange_HeaderFile #include #include #include #include #include //! The class BOPDS_IndexRange is to store //! the information about range of two indices class BOPDS_IndexRange { public: DEFINE_STANDARD_ALLOC //! Empty contructor BOPDS_IndexRange(); Standard_EXPORT virtual ~BOPDS_IndexRange(); //! Modifier //! Sets the first index of the range void SetFirst (const Standard_Integer theI1); //! Modifier //! Sets the second index of the range void SetLast (const Standard_Integer theI2); //! Selector //! Returns the first index of the range Standard_Integer First() const; //! Selector //! Returns the second index of the range Standard_Integer Last() const; //! Modifier //! Sets the first index of the range //! Sets the second index of the range void SetIndices (const Standard_Integer theI1, const Standard_Integer theI2); //! Selector //! Returns the first index of the range //! Returns the second index of the range void Indices (Standard_Integer& theI1, Standard_Integer& theI2) const; //! Query //! Returns true if the range contains Standard_Boolean Contains (const Standard_Integer theIndex) const; Standard_EXPORT void Dump() const; protected: Standard_Integer myFirst; Standard_Integer myLast; private: }; #include #endif // _BOPDS_IndexRange_HeaderFile