0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / TCollection / TCollection_HArray2.lxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 //function : TCollection_HArray2
19 //purpose  : 
20 //=======================================================================
21
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) :
26        myArray(R1,R2,C1,C2)
27 {}
28
29
30 //=======================================================================
31 //function : TCollection_HArray2
32 //purpose  : 
33 //=======================================================================
34
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) :
40        myArray(R1,R2,C1,C2)
41 {myArray.Init(V);}
42
43 //=======================================================================
44 //function : TCollection_HArray2
45 //purpose  : 
46 //=======================================================================
47
48 inline void TCollection_HArray2::Init(const ItemHArray2& V)
49 { myArray.Init(V);}
50
51 //=======================================================================
52 //function : ColLength
53 //purpose  : 
54 //=======================================================================
55
56 inline Standard_Integer TCollection_HArray2::ColLength () const
57 {
58    return myArray.ColLength();
59 }
60
61 //=======================================================================
62 //function : LowerCol
63 //purpose  : 
64 //=======================================================================
65
66 inline Standard_Integer TCollection_HArray2::LowerCol () const
67 {
68    return myArray.LowerCol();
69 }
70
71 //=======================================================================
72 //function : LowerRow
73 //purpose  : 
74 //=======================================================================
75
76 inline Standard_Integer TCollection_HArray2::LowerRow () const
77 {
78    return myArray.LowerRow();   
79 }
80
81 //=======================================================================
82 //function : RowLength
83 //purpose  : 
84 //=======================================================================
85
86 inline Standard_Integer TCollection_HArray2::RowLength () const
87 {
88    return myArray.RowLength();
89 }
90
91 //=======================================================================
92 //function : UpperRow
93 //purpose  : 
94 //=======================================================================
95
96 inline Standard_Integer TCollection_HArray2::UpperRow () const
97 {
98    return myArray.UpperRow();
99 }
100
101 //=======================================================================
102 //function : UpperCol
103 //purpose  : 
104 //=======================================================================
105
106 inline Standard_Integer TCollection_HArray2::UpperCol () const
107 {
108    return myArray.UpperCol();
109 }
110
111 //=======================================================================
112 //function : SetValue
113 //purpose  : 
114 //=======================================================================
115
116 inline void TCollection_HArray2::SetValue ( const Standard_Integer Row,
117                                            const Standard_Integer Col,
118                                            const ItemHArray2& Value )
119 {
120   myArray.SetValue(Row,Col,Value);
121 }
122
123 //=======================================================================
124 //function : Value
125 //purpose  : 
126 //=======================================================================
127
128 inline const ItemHArray2& TCollection_HArray2::Value(const Standard_Integer Row,
129                                                      const Standard_Integer Col) const
130 {
131   return myArray(Row,Col);
132 }
133
134 //=======================================================================
135 //function : ChangeValue
136 //purpose  : 
137 //=======================================================================
138
139 inline ItemHArray2& TCollection_HArray2::ChangeValue(const Standard_Integer Row,
140                                                      const Standard_Integer Col)
141 {
142   return myArray(Row,Col);
143 }
144
145
146 //=======================================================================
147 //function : Array2
148 //purpose  : 
149 //=======================================================================
150
151 inline const TheArray2& TCollection_HArray2::Array2() const
152 {
153   return myArray;
154 }
155
156 //=======================================================================
157 //function : ChangeArray2
158 //purpose  : 
159 //=======================================================================
160
161 inline TheArray2& TCollection_HArray2::ChangeArray2()
162 {
163   return myArray;
164 }