0025790: Drop unimplemented method ShallowCopy() from TCollection_HSequence.cdl
[occt.git] / src / TCollection / TCollection_HArray1.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_HArray1
19 //purpose  : 
20 //=======================================================================
21
22 inline TCollection_HArray1::TCollection_HArray1(const Standard_Integer First,
23                                                 const Standard_Integer Last) :
24        myArray(First,Last)
25 {
26 }
27
28 //=======================================================================
29 //function : Length
30 //purpose  : 
31 //=======================================================================
32
33 inline Standard_Integer TCollection_HArray1::Length () const 
34 {
35    return myArray.Length();
36 }
37
38 //=======================================================================
39 //function : TCollection_HArray1
40 //purpose  : 
41 //=======================================================================
42 inline TCollection_HArray1::TCollection_HArray1(const Standard_Integer First,
43                                                 const Standard_Integer Last,
44                                                 const ItemHArray1& V) :
45        myArray(First,Last)
46 {
47   myArray.Init(V);
48 }
49
50
51 //=======================================================================
52 //function : Init
53 //purpose  : 
54 //=======================================================================
55
56 inline void TCollection_HArray1::Init(const ItemHArray1& V)
57 {
58   myArray.Init(V);
59 }
60
61 //=======================================================================
62 //function : Lower
63 //purpose  : 
64 //=======================================================================
65
66 inline Standard_Integer TCollection_HArray1::Lower () const 
67 {
68    return myArray.Lower();
69 }
70
71 //=======================================================================
72 //function : Upper
73 //purpose  : 
74 //=======================================================================
75
76 inline Standard_Integer TCollection_HArray1::Upper () const 
77 {
78    return myArray.Upper();
79 }
80
81 //=======================================================================
82 //function : SetValue
83 //purpose  : 
84 //=======================================================================
85
86 inline void TCollection_HArray1::SetValue (const Standard_Integer Index,
87                                            const ItemHArray1& Value)
88 {
89    myArray.SetValue(Index,Value);
90 }
91
92 //=======================================================================
93 //function : Array1
94 //purpose  : 
95 //=======================================================================
96
97 inline const TheArray1& TCollection_HArray1::Array1() const
98 {
99   return myArray;
100 }
101
102
103 //=======================================================================
104 //function : ChangeArray1
105 //purpose  : 
106 //=======================================================================
107
108 inline TheArray1& TCollection_HArray1::ChangeArray1() 
109 {
110   return myArray;
111 }
112
113 //=======================================================================
114 //function : Value
115 //purpose  : 
116 //=======================================================================
117
118 inline const ItemHArray1& TCollection_HArray1::Value(const Standard_Integer Index) const
119 {
120   return myArray(Index);
121 }
122
123 //=======================================================================
124 //function : ChangeValue
125 //purpose  : 
126 //=======================================================================
127
128 inline ItemHArray1& TCollection_HArray1::ChangeValue(const Standard_Integer Index)
129 {
130   return myArray(Index);
131 }
132
133