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_HArray2
20 //=======================================================================
22 inline TCollection_HArray2::TCollection_HArray2 (const Standard_Integer R1,
23 const Standard_Integer R2,
24 const Standard_Integer C1,
25 const Standard_Integer C2) :
30 //=======================================================================
31 //function : TCollection_HArray2
33 //=======================================================================
35 inline TCollection_HArray2::TCollection_HArray2 (const Standard_Integer R1,
36 const Standard_Integer R2,
37 const Standard_Integer C1,
38 const Standard_Integer C2,
39 const ItemHArray2& V) :
43 //=======================================================================
44 //function : TCollection_HArray2
46 //=======================================================================
48 inline void TCollection_HArray2::Init(const ItemHArray2& V)
51 //=======================================================================
52 //function : ColLength
54 //=======================================================================
56 inline Standard_Integer TCollection_HArray2::ColLength () const
58 return myArray.ColLength();
61 //=======================================================================
64 //=======================================================================
66 inline Standard_Integer TCollection_HArray2::LowerCol () const
68 return myArray.LowerCol();
71 //=======================================================================
74 //=======================================================================
76 inline Standard_Integer TCollection_HArray2::LowerRow () const
78 return myArray.LowerRow();
81 //=======================================================================
82 //function : RowLength
84 //=======================================================================
86 inline Standard_Integer TCollection_HArray2::RowLength () const
88 return myArray.RowLength();
91 //=======================================================================
94 //=======================================================================
96 inline Standard_Integer TCollection_HArray2::UpperRow () const
98 return myArray.UpperRow();
101 //=======================================================================
102 //function : UpperCol
104 //=======================================================================
106 inline Standard_Integer TCollection_HArray2::UpperCol () const
108 return myArray.UpperCol();
111 //=======================================================================
112 //function : SetValue
114 //=======================================================================
116 inline void TCollection_HArray2::SetValue ( const Standard_Integer Row,
117 const Standard_Integer Col,
118 const ItemHArray2& Value )
120 myArray.SetValue(Row,Col,Value);
123 //=======================================================================
126 //=======================================================================
128 inline const ItemHArray2& TCollection_HArray2::Value(const Standard_Integer Row,
129 const Standard_Integer Col) const
131 return myArray(Row,Col);
134 //=======================================================================
135 //function : ChangeValue
137 //=======================================================================
139 inline ItemHArray2& TCollection_HArray2::ChangeValue(const Standard_Integer Row,
140 const Standard_Integer Col)
142 return myArray(Row,Col);
146 //=======================================================================
149 //=======================================================================
151 inline const TheArray2& TCollection_HArray2::Array2() const
156 //=======================================================================
157 //function : ChangeArray2
159 //=======================================================================
161 inline TheArray2& TCollection_HArray2::ChangeArray2()