0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / MAT / MAT_TList.cdl
1 -- Created on: 1992-06-23
2 -- Created by: Gilles DEBARBOUILLE
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 generic class TList from MAT (Item as any)
18
19         ---Purpose: 
20
21 inherits
22
23     TShared
24     
25 --uses
26
27 --raises
28
29
30 class TListNode from MAT 
31
32         ---Purpose: 
33
34 inherits
35
36     TShared
37     
38 --uses
39
40 --raises
41
42 is
43
44     Create returns TListNode from MAT;
45
46     ---C++: inline
47     
48     Create(anitem : Item) returns TListNode from MAT;
49
50     ---C++: inline
51     
52     GetItem(me) returns any Item
53     
54     -- C++: return &
55     ---C++: inline
56     
57     is static;
58     
59     Next(me) returns TListNode from MAT
60     
61     ---C++: inline
62
63     is static;
64     
65     Previous(me) returns TListNode from MAT
66     
67     ---C++: inline
68
69     is static;
70     
71     SetItem(me : mutable ; anitem : any Item)
72     
73     ---C++: inline
74
75     is static;
76     
77     Next(me : mutable ; atlistnode : TListNode from MAT)
78     
79     ---C++: inline
80
81     is static;
82     
83     Previous(me : mutable ; atlistnode : TListNode from MAT)
84     
85     ---C++: inline
86
87     is static;
88     
89     Dummy(me)
90     
91     is static;
92     
93 fields
94
95     thenext     : TListNode from MAT;
96     theprevious : TListNode from MAT;
97     theitem     : Item;
98
99 end TListNode;
100
101 is
102
103     Create returns TList from MAT;
104     
105     First(me : mutable)
106     
107     is static;
108     
109     Last(me : mutable)
110     
111     is static;
112     
113     Init(me : mutable ; aniten : any Item)
114     
115     is static;
116     
117     Next(me : mutable)
118     
119     is static;
120     
121     Previous(me : mutable)
122     
123     is static;
124     
125     More(me) returns Boolean
126     
127     is static;
128     
129     Current(me) returns any Item
130     
131     is static;
132     
133     Current(me ; anitem : any Item)
134     
135     is static;
136     
137     FirstItem(me) returns any Item
138     
139     is static;
140     
141     LastItem(me) returns any Item
142     
143     is static;
144     
145     PreviousItem(me) returns any Item
146     
147     is static;
148     
149     NextItem(me) returns any Item
150     
151     is static;
152     
153     Number(me) returns Integer
154     
155     ---C++: inline
156     
157     is static;
158     
159     Index(me) returns Integer
160     
161     ---C++: inline
162     
163     is static;
164     
165     Brackets(me : mutable ; anindex : Integer) returns any Item
166     
167     -- C++: return &
168     ---C++: alias operator()
169     
170     is static;
171
172     Unlink(me : mutable)
173     
174     is static;
175     
176     LinkBefore(me : mutable ; anitem : any Item)
177     
178     is static;
179     
180     LinkAfter(me : mutable ; anitem : any Item)
181     
182     is static;
183     
184     FrontAdd(me : mutable ; anitem : any Item)
185     
186     is static;
187     
188     BackAdd(me : mutable ; anitem : any Item)
189     
190     is static;
191     
192     Permute(me : mutable)
193     
194     is static;
195     
196     Loop(me)
197     
198     is static;
199     
200     IsEmpty(me) returns Boolean
201     
202     is static;
203     
204     Dump(me : mutable ; ashift , alevel : Integer);
205     
206 fields
207
208     thefirstnode     : TListNode from MAT;
209     thelastnode      : TListNode from MAT;
210     thecurrentnode   : TListNode from MAT;
211     thecurrentindex  : Integer;
212     thenumberofitems : Integer;
213
214 end TList;