1 // Created on: 1993-03-11
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
22 //=======================================================================
23 //function : TCollection_HArray2
25 //=======================================================================
27 inline TCollection_HArray2::TCollection_HArray2 (const Standard_Integer R1,
28 const Standard_Integer R2,
29 const Standard_Integer C1,
30 const Standard_Integer C2) :
35 //=======================================================================
36 //function : TCollection_HArray2
38 //=======================================================================
40 inline TCollection_HArray2::TCollection_HArray2 (const Standard_Integer R1,
41 const Standard_Integer R2,
42 const Standard_Integer C1,
43 const Standard_Integer C2,
44 const ItemHArray2& V) :
48 //=======================================================================
49 //function : TCollection_HArray2
51 //=======================================================================
53 inline void TCollection_HArray2::Init(const ItemHArray2& V)
56 //=======================================================================
57 //function : ColLength
59 //=======================================================================
61 inline Standard_Integer TCollection_HArray2::ColLength () const
63 return myArray.ColLength();
66 //=======================================================================
69 //=======================================================================
71 inline Standard_Integer TCollection_HArray2::LowerCol () const
73 return myArray.LowerCol();
76 //=======================================================================
79 //=======================================================================
81 inline Standard_Integer TCollection_HArray2::LowerRow () const
83 return myArray.LowerRow();
86 //=======================================================================
87 //function : RowLength
89 //=======================================================================
91 inline Standard_Integer TCollection_HArray2::RowLength () const
93 return myArray.RowLength();
96 //=======================================================================
99 //=======================================================================
101 inline Standard_Integer TCollection_HArray2::UpperRow () const
103 return myArray.UpperRow();
106 //=======================================================================
107 //function : UpperCol
109 //=======================================================================
111 inline Standard_Integer TCollection_HArray2::UpperCol () const
113 return myArray.UpperCol();
116 //=======================================================================
117 //function : SetValue
119 //=======================================================================
121 inline void TCollection_HArray2::SetValue ( const Standard_Integer Row,
122 const Standard_Integer Col,
123 const ItemHArray2& Value )
125 myArray.SetValue(Row,Col,Value);
128 //=======================================================================
131 //=======================================================================
133 inline const ItemHArray2& TCollection_HArray2::Value(const Standard_Integer Row,
134 const Standard_Integer Col) const
136 return myArray(Row,Col);
139 //=======================================================================
140 //function : ChangeValue
142 //=======================================================================
144 inline ItemHArray2& TCollection_HArray2::ChangeValue(const Standard_Integer Row,
145 const Standard_Integer Col)
147 return myArray(Row,Col);
151 //=======================================================================
154 //=======================================================================
156 inline const TheArray2& TCollection_HArray2::Array2() const
161 //=======================================================================
162 //function : ChangeArray2
164 //=======================================================================
166 inline TheArray2& TCollection_HArray2::ChangeArray2()