1 -- Created on: 1996-01-30
3 -- Copyright (c) 1996-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 generic class VArray from DBC (Item as Storable) inherits BaseArray from DBC
19 ---Purpose: The class VArray represents a unidimensional
20 -- array of fixed size known at execution time.
21 -- The range of the element is user defined and varies
23 -- Warning: Programs client of such a class must be independant
24 -- of the range of the last element. Thus, a C++ "for"
25 -- loop must be written like this
27 -- for (i = 0; i < A.Size(); i++)
28 -- Implement for ObjectStore and Objectivity
29 -- with the same functionnality
30 -- Purpose: New development for OBJY 3.5
35 raises NegativeValue, OutOfRange , DimensionMismatch, NullObject
37 class VArrayNode from DBC
38 inherits ArrayNode from PStandard
41 Create returns VArrayNode from DBC;
42 Create(aValue : Item) returns VArrayNode from DBC;
44 SetValue(me : mutable; aValue : Item);
45 Value(me) returns Address from Standard;
51 ---Purpose: for DFLT profile, we dont need persistent nodes
52 class VArrayTNode from DBC
54 Create returns VArrayTNode from DBC;
56 Create(aValue : Item) returns VArrayTNode from DBC;
58 SetValue(me : out; aValue : Item);
60 Value(me) returns Address from Standard;
69 Create returns VArray;
70 ---Puspose: Creates an array of null size
71 -- Raise NullOject if there is no
74 Create (Size: Integer) returns VArray
75 ---Purpose: Creates an array of lower bound 0 and
76 -- upper bound <Size>-1 . NegativeValue is raised
77 -- when <Size> is less than 0.
80 Create (Varray: VArray) returns VArray;
81 ---Purpose: Creates an array which is the copy of the given
85 Resize (me : in out; Size: Integer)
87 ---Purpose: Change the size of an array with lower
88 -- bound 0 and upper bound <Size>-1 . NegativeValue
89 -- is raised when <Size> is less than 0.
91 Assign (me: in out; Other: VArray from DBC)
92 ---Purpose: copy the contents of <Other> into <me>.
93 -- <Other> and <me> must have the same dimension.
94 ---C++: alias operator =
95 raises DimensionMismatch from Standard
98 SetValue (me : in out; Index: Integer; Value: Item)
99 ---Purpose: Sets the <Index>th element of the array
105 Value (me; Index: Integer) returns Item
106 ---Purpose: Returns the value of the <Index>th element
108 ---C++: alias operator ()
113 Destroy(me : in out);