blob: c9c679dbfb902b711502345184a856a947ae90f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
-- File: DBC_BaseArray.cdl
-- Created: Mon Jan 29 16:29:37 1996
-- Author: Kernel
-- <kernel@ylliox>
---Copyright: Matra Datavision 1996
class BaseArray from DBC
inherits Storable from Standard
uses DBVArray from DBC
raises NullObject,
NegativeValue,
DimensionMismatch
is
Create returns BaseArray;
---Purpose: Creates an BaseArray of NULL size
Create (Size : Integer) returns BaseArray;
---Purpose: Creates an BaseArray of lower bound 0 and
-- upper bound <Size>-1.
Create (BaseArray: BaseArray) returns BaseArray;
---Purpose: Creates an array which is the copy of the given
-- argument.
Delete ( me : out ) is redefined;
---C++: alias "Standard_EXPORT virtual ~DBC_BaseArray(){Delete();}"
Length (me) returns Integer is static ;
---C++: inline
Upper (me) returns Integer is static;
---Purpose: Returns the upper bound
---C++: inline
Lock (me) returns Address is static ;
---Purpose: Locks the array <me> in memory and
-- returns its virtual address
Unlock (me) is static;
---Purpose: unlocks the array <me> from memory
ShallowDump (me; S: in out OStream)
--Purpose: Prints the contents at the first level of <me> on
-- the stream <s>. The Root version of ShallowDump prints
-- the name of the class <me> is an instance of,
-- followed by its memory address.
---C++: function call
is redefined;
fields
mySize : Integer is protected;
myData : DBVArray from DBC is protected;
end BaseArray;
|