0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / TCollection / TCollection_HArray1.lxx
CommitLineData
b311480e 1// Created on: 1993-03-11
2// Created by: Remi LEQUETTE
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
1145e2bc
RL
17//=======================================================================
18//function : TCollection_HArray1
19//purpose :
20//=======================================================================
21
22inline TCollection_HArray1::TCollection_HArray1(const Standard_Integer First,
23 const Standard_Integer Last) :
24 myArray(First,Last)
25{
26}
27
7fd59977 28//=======================================================================
29//function : Length
30//purpose :
31//=======================================================================
32
33inline Standard_Integer TCollection_HArray1::Length () const
34{
35 return myArray.Length();
36}
37
1145e2bc
RL
38//=======================================================================
39//function : TCollection_HArray1
40//purpose :
41//=======================================================================
42inline 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
56inline void TCollection_HArray1::Init(const ItemHArray1& V)
57{
58 myArray.Init(V);
59}
60
7fd59977 61//=======================================================================
62//function : Lower
63//purpose :
64//=======================================================================
65
66inline Standard_Integer TCollection_HArray1::Lower () const
67{
68 return myArray.Lower();
69}
70
71//=======================================================================
72//function : Upper
73//purpose :
74//=======================================================================
75
76inline Standard_Integer TCollection_HArray1::Upper () const
77{
78 return myArray.Upper();
79}
80
81//=======================================================================
82//function : SetValue
83//purpose :
84//=======================================================================
85
86inline 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
97inline const TheArray1& TCollection_HArray1::Array1() const
98{
99 return myArray;
100}
101
102
103//=======================================================================
104//function : ChangeArray1
105//purpose :
106//=======================================================================
107
108inline TheArray1& TCollection_HArray1::ChangeArray1()
109{
110 return myArray;
111}
112
113//=======================================================================
114//function : Value
115//purpose :
116//=======================================================================
117
118inline 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
128inline ItemHArray1& TCollection_HArray1::ChangeValue(const Standard_Integer Index)
129{
130 return myArray(Index);
131}
132
133