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