0024645: Pointer to the last is wrong for a tree node
[occt.git] / src / TDataStd / TDataStd_IntegerArray.cdl
CommitLineData
b311480e 1-- Created on: 1999-06-16
2-- Created by: Sergey RUIN
3-- Copyright (c) 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
17class IntegerArray from TDataStd inherits Attribute from TDF
18
19 ---Purpose: Contains an array of integers.
20
21uses
22 GUID from Standard,
23 HArray1OfInteger from TColStd,
24 Attribute from TDF,
25 Label from TDF,
26 DeltaOnModification from TDF,
27 RelocationTable from TDF
28
29is
30
31 ---Purpose: class methods
32 -- =============
33
34 GetID (myclass)
35 ---C++: return const &
36 ---Purpose: Returns the GUID for arrays of integers.
37 returns GUID from Standard;
38
39 Set (myclass; label : Label from TDF; lower, upper : Integer from Standard;
40 isDelta : Boolean from Standard = Standard_False)
41 ---Purpose: Finds or creates on the <label> an integer array attribute
42 -- with the specified <lower> and <upper> boundaries.
43 -- If <isDelta> == False, DefaultDeltaOnModification is used.
44 -- If attribute is already set, all input parameters are refused and the found
45 -- attribute is returned.
46 returns IntegerArray from TDataStd;
47
48
49 ---Category: IntegerArray methods
50 -- ===============
51
52 Init(me : mutable; lower, upper : Integer from Standard);
53 ---Purpose: Initialize the inner array with bounds from <lower> to <upper>
54
55 SetValue (me : mutable; Index, Value : Integer from Standard);
56 ---Purpose: Sets the <Index>th element of the array to <Value>
fa13a85d 57 -- OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
7fd59977 58
59 Value (me; Index : Integer from Standard)
60 ---Purpose: Return the value of the <Index>th element of the array
61 --
62 ---C++: alias operator ()
63 returns Integer from Standard;
64
65 Lower (me) returns Integer from Standard;
66 ---Purpose: Returns the lower boundary of this array of integers.
67
68 Upper (me) returns Integer from Standard;
69 ---Purpose: Return the upper boundary of this array of integers.
70
71 Length (me) returns Integer from Standard;
72 ---Purpose: Returns the length of this array of integers in
73 -- terms of the number of elements it contains.
74
75 ChangeArray(me : mutable; newArray : HArray1OfInteger from TColStd;
76 isCheckItems : Boolean = Standard_True);
77 ---Purpose: Sets the inner array <myValue> of the IntegerArray attribute to
78 -- <newArray>. If value of <newArray> differs from <myValue>, Backup performed
79 -- and myValue refers to new instance of HArray1OfInteger that holds <newArray>
80 -- values
81 -- If <isCheckItems> equal True each item of <newArray> will be checked with each
82 -- item of <myValue> for coincidence (to avoid backup).
83
84 Array(me) returns HArray1OfInteger from TColStd;
85 ---Purpose: Return the inner array of the IntegerArray attribute
86 ---C++: inline
87 ---C++: return const
88
89 GetDelta(me) returns Boolean from Standard;
90 ---C++: inline
91
92 SetDelta(me : mutable; isDelta : Boolean from Standard);
93 ---C++: inline
94 ---Purpose: for internal use only!
95
96 RemoveArray(me : mutable) is private;
97 ---C++: inline
98
99
100 ---Category: methodes of TDF_Attribute
101 -- =========================
102
103 Create returns mutable IntegerArray from TDataStd;
104
105 ID (me)
106 ---C++: return const &
107 returns GUID from Standard;
108
109 Restore (me: mutable; With : Attribute from TDF);
110
111 NewEmpty (me)
112 returns mutable Attribute from TDF;
113
114 Paste (me; Into : mutable Attribute from TDF;
115 RT : mutable RelocationTable from TDF);
116 ---Purpose: Note. Uses inside ChangeArray() method
117
118 Dump(me; anOS : in out OStream from Standard)
119 returns OStream from Standard
120 is redefined;
121 ---C++: return &
122
123 ---Category: methods to be added for using in DeltaOn Modification
124 -- =====================================================
125 DeltaOnModification(me; anOldAttribute : Attribute from TDF)
126 returns DeltaOnModification from TDF
127 ---Purpose : Makes a DeltaOnModification between <me> and
128 -- <anOldAttribute>.
129 is redefined virtual;
130
131
132
133
134fields
135
136 myValue : HArray1OfInteger from TColStd;
137 myIsDelta : Boolean from Standard;
138friends
139
140 class DeltaOnModificationOfIntArray from TDataStd
141
142end IntegerArray;