1 // Created by: Peter KURNEV
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 //=======================================================================
18 //=======================================================================
19 inline BOPDS_IndexRange::BOPDS_IndexRange()
25 //=======================================================================
28 //=======================================================================
29 inline BOPDS_IndexRange::~BOPDS_IndexRange()
32 //=======================================================================
35 //=======================================================================
36 inline void BOPDS_IndexRange::SetFirst(const Standard_Integer aFirst)
40 //=======================================================================
43 //=======================================================================
44 inline Standard_Integer BOPDS_IndexRange::First()const
48 //=======================================================================
51 //=======================================================================
52 inline void BOPDS_IndexRange::SetLast(const Standard_Integer aLast)
56 //=======================================================================
59 //=======================================================================
60 inline Standard_Integer BOPDS_IndexRange::Last()const
64 //=======================================================================
65 //function : SetIndices
67 //=======================================================================
68 inline void BOPDS_IndexRange::SetIndices(const Standard_Integer theI1,
69 const Standard_Integer theI2)
74 //=======================================================================
77 //=======================================================================
78 inline void BOPDS_IndexRange::Indices(Standard_Integer& theI1,
79 Standard_Integer& theI2)const
85 //=======================================================================
88 //=======================================================================
89 inline Standard_Boolean BOPDS_IndexRange::Contains(const Standard_Integer aIndex)const
91 return (Standard_Boolean)(aIndex>=myFirst && aIndex<=myLast);