1 // Created on: 1993-03-11
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 //=======================================================================
18 //function : TCollection_HArray1
20 //=======================================================================
22 inline TCollection_HArray1::TCollection_HArray1(const Standard_Integer First,
23 const Standard_Integer Last) :
28 //=======================================================================
31 //=======================================================================
33 inline Standard_Integer TCollection_HArray1::Length () const
35 return myArray.Length();
38 //=======================================================================
39 //function : TCollection_HArray1
41 //=======================================================================
42 inline TCollection_HArray1::TCollection_HArray1(const Standard_Integer First,
43 const Standard_Integer Last,
44 const ItemHArray1& V) :
51 //=======================================================================
54 //=======================================================================
56 inline void TCollection_HArray1::Init(const ItemHArray1& V)
61 //=======================================================================
64 //=======================================================================
66 inline Standard_Integer TCollection_HArray1::Lower () const
68 return myArray.Lower();
71 //=======================================================================
74 //=======================================================================
76 inline Standard_Integer TCollection_HArray1::Upper () const
78 return myArray.Upper();
81 //=======================================================================
84 //=======================================================================
86 inline void TCollection_HArray1::SetValue (const Standard_Integer Index,
87 const ItemHArray1& Value)
89 myArray.SetValue(Index,Value);
92 //=======================================================================
95 //=======================================================================
97 inline const TheArray1& TCollection_HArray1::Array1() const
103 //=======================================================================
104 //function : ChangeArray1
106 //=======================================================================
108 inline TheArray1& TCollection_HArray1::ChangeArray1()
113 //=======================================================================
116 //=======================================================================
118 inline const ItemHArray1& TCollection_HArray1::Value(const Standard_Integer Index) const
120 return myArray(Index);
123 //=======================================================================
124 //function : ChangeValue
126 //=======================================================================
128 inline ItemHArray1& TCollection_HArray1::ChangeValue(const Standard_Integer Index)
130 return myArray(Index);