annotate gcc/ada/libgnat/a-coorma.ads @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT LIBRARY COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- A D A . C O N T A I N E R S . O R D E R E D _ M A P S --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
9 -- Copyright (C) 2004-2019, Free Software Foundation, Inc. --
111
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- This specification is derived from the Ada Reference Manual for use with --
kono
parents:
diff changeset
12 -- GNAT. The copyright notice above, and the license provisions that follow --
kono
parents:
diff changeset
13 -- apply solely to the contents of the part following the private keyword. --
kono
parents:
diff changeset
14 -- --
kono
parents:
diff changeset
15 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
16 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
17 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
18 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
19 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
20 -- or FITNESS FOR A PARTICULAR PURPOSE. --
kono
parents:
diff changeset
21 -- --
kono
parents:
diff changeset
22 -- As a special exception under Section 7 of GPL version 3, you are granted --
kono
parents:
diff changeset
23 -- additional permissions described in the GCC Runtime Library Exception, --
kono
parents:
diff changeset
24 -- version 3.1, as published by the Free Software Foundation. --
kono
parents:
diff changeset
25 -- --
kono
parents:
diff changeset
26 -- You should have received a copy of the GNU General Public License and --
kono
parents:
diff changeset
27 -- a copy of the GCC Runtime Library Exception along with this program; --
kono
parents:
diff changeset
28 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
kono
parents:
diff changeset
29 -- <http://www.gnu.org/licenses/>. --
kono
parents:
diff changeset
30 -- --
kono
parents:
diff changeset
31 -- This unit was originally developed by Matthew J Heaney. --
kono
parents:
diff changeset
32 ------------------------------------------------------------------------------
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 with Ada.Iterator_Interfaces;
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 private with Ada.Containers.Red_Black_Trees;
kono
parents:
diff changeset
37 private with Ada.Finalization;
kono
parents:
diff changeset
38 private with Ada.Streams;
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 generic
kono
parents:
diff changeset
41 type Key_Type is private;
kono
parents:
diff changeset
42 type Element_Type is private;
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 with function "<" (Left, Right : Key_Type) return Boolean is <>;
kono
parents:
diff changeset
45 with function "=" (Left, Right : Element_Type) return Boolean is <>;
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 package Ada.Containers.Ordered_Maps is
kono
parents:
diff changeset
48 pragma Annotate (CodePeer, Skip_Analysis);
kono
parents:
diff changeset
49 pragma Preelaborate;
kono
parents:
diff changeset
50 pragma Remote_Types;
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 function Equivalent_Keys (Left, Right : Key_Type) return Boolean;
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 type Map is tagged private with
kono
parents:
diff changeset
55 Constant_Indexing => Constant_Reference,
kono
parents:
diff changeset
56 Variable_Indexing => Reference,
kono
parents:
diff changeset
57 Default_Iterator => Iterate,
kono
parents:
diff changeset
58 Iterator_Element => Element_Type;
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 type Cursor is private;
kono
parents:
diff changeset
61 pragma Preelaborable_Initialization (Cursor);
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 Empty_Map : constant Map;
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 No_Element : constant Cursor;
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 function Has_Element (Position : Cursor) return Boolean;
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 package Map_Iterator_Interfaces is new
kono
parents:
diff changeset
70 Ada.Iterator_Interfaces (Cursor, Has_Element);
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 function "=" (Left, Right : Map) return Boolean;
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 function Length (Container : Map) return Count_Type;
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 function Is_Empty (Container : Map) return Boolean;
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 procedure Clear (Container : in out Map);
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 function Key (Position : Cursor) return Key_Type;
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 function Element (Position : Cursor) return Element_Type;
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 procedure Replace_Element
kono
parents:
diff changeset
85 (Container : in out Map;
kono
parents:
diff changeset
86 Position : Cursor;
kono
parents:
diff changeset
87 New_Item : Element_Type);
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 procedure Query_Element
kono
parents:
diff changeset
90 (Position : Cursor;
kono
parents:
diff changeset
91 Process : not null access
kono
parents:
diff changeset
92 procedure (Key : Key_Type; Element : Element_Type));
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 procedure Update_Element
kono
parents:
diff changeset
95 (Container : in out Map;
kono
parents:
diff changeset
96 Position : Cursor;
kono
parents:
diff changeset
97 Process : not null access
kono
parents:
diff changeset
98 procedure (Key : Key_Type; Element : in out Element_Type));
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 type Constant_Reference_Type
kono
parents:
diff changeset
101 (Element : not null access constant Element_Type) is private
kono
parents:
diff changeset
102 with
kono
parents:
diff changeset
103 Implicit_Dereference => Element;
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 type Reference_Type (Element : not null access Element_Type) is private
kono
parents:
diff changeset
106 with
kono
parents:
diff changeset
107 Implicit_Dereference => Element;
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109 function Constant_Reference
kono
parents:
diff changeset
110 (Container : aliased Map;
kono
parents:
diff changeset
111 Position : Cursor) return Constant_Reference_Type;
kono
parents:
diff changeset
112 pragma Inline (Constant_Reference);
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 function Reference
kono
parents:
diff changeset
115 (Container : aliased in out Map;
kono
parents:
diff changeset
116 Position : Cursor) return Reference_Type;
kono
parents:
diff changeset
117 pragma Inline (Reference);
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 function Constant_Reference
kono
parents:
diff changeset
120 (Container : aliased Map;
kono
parents:
diff changeset
121 Key : Key_Type) return Constant_Reference_Type;
kono
parents:
diff changeset
122 pragma Inline (Constant_Reference);
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 function Reference
kono
parents:
diff changeset
125 (Container : aliased in out Map;
kono
parents:
diff changeset
126 Key : Key_Type) return Reference_Type;
kono
parents:
diff changeset
127 pragma Inline (Reference);
kono
parents:
diff changeset
128
kono
parents:
diff changeset
129 procedure Assign (Target : in out Map; Source : Map);
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 function Copy (Source : Map) return Map;
kono
parents:
diff changeset
132
kono
parents:
diff changeset
133 procedure Move (Target : in out Map; Source : in out Map);
kono
parents:
diff changeset
134
kono
parents:
diff changeset
135 procedure Insert
kono
parents:
diff changeset
136 (Container : in out Map;
kono
parents:
diff changeset
137 Key : Key_Type;
kono
parents:
diff changeset
138 New_Item : Element_Type;
kono
parents:
diff changeset
139 Position : out Cursor;
kono
parents:
diff changeset
140 Inserted : out Boolean);
kono
parents:
diff changeset
141
kono
parents:
diff changeset
142 procedure Insert
kono
parents:
diff changeset
143 (Container : in out Map;
kono
parents:
diff changeset
144 Key : Key_Type;
kono
parents:
diff changeset
145 Position : out Cursor;
kono
parents:
diff changeset
146 Inserted : out Boolean);
kono
parents:
diff changeset
147
kono
parents:
diff changeset
148 procedure Insert
kono
parents:
diff changeset
149 (Container : in out Map;
kono
parents:
diff changeset
150 Key : Key_Type;
kono
parents:
diff changeset
151 New_Item : Element_Type);
kono
parents:
diff changeset
152
kono
parents:
diff changeset
153 procedure Include
kono
parents:
diff changeset
154 (Container : in out Map;
kono
parents:
diff changeset
155 Key : Key_Type;
kono
parents:
diff changeset
156 New_Item : Element_Type);
kono
parents:
diff changeset
157
kono
parents:
diff changeset
158 procedure Replace
kono
parents:
diff changeset
159 (Container : in out Map;
kono
parents:
diff changeset
160 Key : Key_Type;
kono
parents:
diff changeset
161 New_Item : Element_Type);
kono
parents:
diff changeset
162
kono
parents:
diff changeset
163 procedure Exclude (Container : in out Map; Key : Key_Type);
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165 procedure Delete (Container : in out Map; Key : Key_Type);
kono
parents:
diff changeset
166
kono
parents:
diff changeset
167 procedure Delete (Container : in out Map; Position : in out Cursor);
kono
parents:
diff changeset
168
kono
parents:
diff changeset
169 procedure Delete_First (Container : in out Map);
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 procedure Delete_Last (Container : in out Map);
kono
parents:
diff changeset
172
kono
parents:
diff changeset
173 function First (Container : Map) return Cursor;
kono
parents:
diff changeset
174
kono
parents:
diff changeset
175 function First_Element (Container : Map) return Element_Type;
kono
parents:
diff changeset
176
kono
parents:
diff changeset
177 function First_Key (Container : Map) return Key_Type;
kono
parents:
diff changeset
178
kono
parents:
diff changeset
179 function Last (Container : Map) return Cursor;
kono
parents:
diff changeset
180
kono
parents:
diff changeset
181 function Last_Element (Container : Map) return Element_Type;
kono
parents:
diff changeset
182
kono
parents:
diff changeset
183 function Last_Key (Container : Map) return Key_Type;
kono
parents:
diff changeset
184
kono
parents:
diff changeset
185 function Next (Position : Cursor) return Cursor;
kono
parents:
diff changeset
186
kono
parents:
diff changeset
187 procedure Next (Position : in out Cursor);
kono
parents:
diff changeset
188
kono
parents:
diff changeset
189 function Previous (Position : Cursor) return Cursor;
kono
parents:
diff changeset
190
kono
parents:
diff changeset
191 procedure Previous (Position : in out Cursor);
kono
parents:
diff changeset
192
kono
parents:
diff changeset
193 function Find (Container : Map; Key : Key_Type) return Cursor;
kono
parents:
diff changeset
194
kono
parents:
diff changeset
195 function Element (Container : Map; Key : Key_Type) return Element_Type;
kono
parents:
diff changeset
196
kono
parents:
diff changeset
197 function Floor (Container : Map; Key : Key_Type) return Cursor;
kono
parents:
diff changeset
198
kono
parents:
diff changeset
199 function Ceiling (Container : Map; Key : Key_Type) return Cursor;
kono
parents:
diff changeset
200
kono
parents:
diff changeset
201 function Contains (Container : Map; Key : Key_Type) return Boolean;
kono
parents:
diff changeset
202
kono
parents:
diff changeset
203 function "<" (Left, Right : Cursor) return Boolean;
kono
parents:
diff changeset
204
kono
parents:
diff changeset
205 function ">" (Left, Right : Cursor) return Boolean;
kono
parents:
diff changeset
206
kono
parents:
diff changeset
207 function "<" (Left : Cursor; Right : Key_Type) return Boolean;
kono
parents:
diff changeset
208
kono
parents:
diff changeset
209 function ">" (Left : Cursor; Right : Key_Type) return Boolean;
kono
parents:
diff changeset
210
kono
parents:
diff changeset
211 function "<" (Left : Key_Type; Right : Cursor) return Boolean;
kono
parents:
diff changeset
212
kono
parents:
diff changeset
213 function ">" (Left : Key_Type; Right : Cursor) return Boolean;
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 procedure Iterate
kono
parents:
diff changeset
216 (Container : Map;
kono
parents:
diff changeset
217 Process : not null access procedure (Position : Cursor));
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 procedure Reverse_Iterate
kono
parents:
diff changeset
220 (Container : Map;
kono
parents:
diff changeset
221 Process : not null access procedure (Position : Cursor));
kono
parents:
diff changeset
222
kono
parents:
diff changeset
223 -- The map container supports iteration in both the forward and reverse
kono
parents:
diff changeset
224 -- directions, hence these constructor functions return an object that
kono
parents:
diff changeset
225 -- supports the Reversible_Iterator interface.
kono
parents:
diff changeset
226
kono
parents:
diff changeset
227 function Iterate
kono
parents:
diff changeset
228 (Container : Map)
kono
parents:
diff changeset
229 return Map_Iterator_Interfaces.Reversible_Iterator'class;
kono
parents:
diff changeset
230
kono
parents:
diff changeset
231 function Iterate
kono
parents:
diff changeset
232 (Container : Map;
kono
parents:
diff changeset
233 Start : Cursor)
kono
parents:
diff changeset
234 return Map_Iterator_Interfaces.Reversible_Iterator'class;
kono
parents:
diff changeset
235
kono
parents:
diff changeset
236 private
kono
parents:
diff changeset
237
kono
parents:
diff changeset
238 pragma Inline (Next);
kono
parents:
diff changeset
239 pragma Inline (Previous);
kono
parents:
diff changeset
240
kono
parents:
diff changeset
241 type Node_Type;
kono
parents:
diff changeset
242 type Node_Access is access Node_Type;
kono
parents:
diff changeset
243
kono
parents:
diff changeset
244 type Node_Type is limited record
kono
parents:
diff changeset
245 Parent : Node_Access;
kono
parents:
diff changeset
246 Left : Node_Access;
kono
parents:
diff changeset
247 Right : Node_Access;
kono
parents:
diff changeset
248 Color : Red_Black_Trees.Color_Type := Red_Black_Trees.Red;
kono
parents:
diff changeset
249 Key : Key_Type;
kono
parents:
diff changeset
250 Element : aliased Element_Type;
kono
parents:
diff changeset
251 end record;
kono
parents:
diff changeset
252
kono
parents:
diff changeset
253 package Tree_Types is
kono
parents:
diff changeset
254 new Red_Black_Trees.Generic_Tree_Types (Node_Type, Node_Access);
kono
parents:
diff changeset
255
kono
parents:
diff changeset
256 type Map is new Ada.Finalization.Controlled with record
kono
parents:
diff changeset
257 Tree : Tree_Types.Tree_Type;
kono
parents:
diff changeset
258 end record;
kono
parents:
diff changeset
259
kono
parents:
diff changeset
260 overriding procedure Adjust (Container : in out Map);
kono
parents:
diff changeset
261
kono
parents:
diff changeset
262 overriding procedure Finalize (Container : in out Map) renames Clear;
kono
parents:
diff changeset
263
kono
parents:
diff changeset
264 use Red_Black_Trees;
kono
parents:
diff changeset
265 use Tree_Types, Tree_Types.Implementation;
kono
parents:
diff changeset
266 use Ada.Finalization;
kono
parents:
diff changeset
267 use Ada.Streams;
kono
parents:
diff changeset
268
kono
parents:
diff changeset
269 procedure Write
kono
parents:
diff changeset
270 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
271 Container : Map);
kono
parents:
diff changeset
272
kono
parents:
diff changeset
273 for Map'Write use Write;
kono
parents:
diff changeset
274
kono
parents:
diff changeset
275 procedure Read
kono
parents:
diff changeset
276 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
277 Container : out Map);
kono
parents:
diff changeset
278
kono
parents:
diff changeset
279 for Map'Read use Read;
kono
parents:
diff changeset
280
kono
parents:
diff changeset
281 type Map_Access is access all Map;
kono
parents:
diff changeset
282 for Map_Access'Storage_Size use 0;
kono
parents:
diff changeset
283
kono
parents:
diff changeset
284 type Cursor is record
kono
parents:
diff changeset
285 Container : Map_Access;
kono
parents:
diff changeset
286 Node : Node_Access;
kono
parents:
diff changeset
287 end record;
kono
parents:
diff changeset
288
kono
parents:
diff changeset
289 procedure Write
kono
parents:
diff changeset
290 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
291 Item : Cursor);
kono
parents:
diff changeset
292
kono
parents:
diff changeset
293 for Cursor'Write use Write;
kono
parents:
diff changeset
294
kono
parents:
diff changeset
295 procedure Read
kono
parents:
diff changeset
296 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
297 Item : out Cursor);
kono
parents:
diff changeset
298
kono
parents:
diff changeset
299 for Cursor'Read use Read;
kono
parents:
diff changeset
300
kono
parents:
diff changeset
301 subtype Reference_Control_Type is Implementation.Reference_Control_Type;
kono
parents:
diff changeset
302 -- It is necessary to rename this here, so that the compiler can find it
kono
parents:
diff changeset
303
kono
parents:
diff changeset
304 type Constant_Reference_Type
kono
parents:
diff changeset
305 (Element : not null access constant Element_Type) is
kono
parents:
diff changeset
306 record
kono
parents:
diff changeset
307 Control : Reference_Control_Type :=
kono
parents:
diff changeset
308 raise Program_Error with "uninitialized reference";
kono
parents:
diff changeset
309 -- The RM says, "The default initialization of an object of
kono
parents:
diff changeset
310 -- type Constant_Reference_Type or Reference_Type propagates
kono
parents:
diff changeset
311 -- Program_Error."
kono
parents:
diff changeset
312 end record;
kono
parents:
diff changeset
313
kono
parents:
diff changeset
314 procedure Read
kono
parents:
diff changeset
315 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
316 Item : out Constant_Reference_Type);
kono
parents:
diff changeset
317
kono
parents:
diff changeset
318 for Constant_Reference_Type'Read use Read;
kono
parents:
diff changeset
319
kono
parents:
diff changeset
320 procedure Write
kono
parents:
diff changeset
321 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
322 Item : Constant_Reference_Type);
kono
parents:
diff changeset
323
kono
parents:
diff changeset
324 for Constant_Reference_Type'Write use Write;
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 type Reference_Type
kono
parents:
diff changeset
327 (Element : not null access Element_Type) is
kono
parents:
diff changeset
328 record
kono
parents:
diff changeset
329 Control : Reference_Control_Type :=
kono
parents:
diff changeset
330 raise Program_Error with "uninitialized reference";
kono
parents:
diff changeset
331 -- The RM says, "The default initialization of an object of
kono
parents:
diff changeset
332 -- type Constant_Reference_Type or Reference_Type propagates
kono
parents:
diff changeset
333 -- Program_Error."
kono
parents:
diff changeset
334 end record;
kono
parents:
diff changeset
335
kono
parents:
diff changeset
336 procedure Read
kono
parents:
diff changeset
337 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
338 Item : out Reference_Type);
kono
parents:
diff changeset
339
kono
parents:
diff changeset
340 for Reference_Type'Read use Read;
kono
parents:
diff changeset
341
kono
parents:
diff changeset
342 procedure Write
kono
parents:
diff changeset
343 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
344 Item : Reference_Type);
kono
parents:
diff changeset
345
kono
parents:
diff changeset
346 for Reference_Type'Write use Write;
kono
parents:
diff changeset
347
kono
parents:
diff changeset
348 -- Three operations are used to optimize in the expansion of "for ... of"
kono
parents:
diff changeset
349 -- loops: the Next(Cursor) procedure in the visible part, and the following
kono
parents:
diff changeset
350 -- Pseudo_Reference and Get_Element_Access functions. See Sem_Ch5 for
kono
parents:
diff changeset
351 -- details.
kono
parents:
diff changeset
352
kono
parents:
diff changeset
353 function Pseudo_Reference
kono
parents:
diff changeset
354 (Container : aliased Map'Class) return Reference_Control_Type;
kono
parents:
diff changeset
355 pragma Inline (Pseudo_Reference);
kono
parents:
diff changeset
356 -- Creates an object of type Reference_Control_Type pointing to the
kono
parents:
diff changeset
357 -- container, and increments the Lock. Finalization of this object will
kono
parents:
diff changeset
358 -- decrement the Lock.
kono
parents:
diff changeset
359
kono
parents:
diff changeset
360 type Element_Access is access all Element_Type with
kono
parents:
diff changeset
361 Storage_Size => 0;
kono
parents:
diff changeset
362
kono
parents:
diff changeset
363 function Get_Element_Access
kono
parents:
diff changeset
364 (Position : Cursor) return not null Element_Access;
kono
parents:
diff changeset
365 -- Returns a pointer to the element designated by Position.
kono
parents:
diff changeset
366
kono
parents:
diff changeset
367 Empty_Map : constant Map := (Controlled with others => <>);
kono
parents:
diff changeset
368
kono
parents:
diff changeset
369 No_Element : constant Cursor := Cursor'(null, null);
kono
parents:
diff changeset
370
kono
parents:
diff changeset
371 type Iterator is new Limited_Controlled and
kono
parents:
diff changeset
372 Map_Iterator_Interfaces.Reversible_Iterator with
kono
parents:
diff changeset
373 record
kono
parents:
diff changeset
374 Container : Map_Access;
kono
parents:
diff changeset
375 Node : Node_Access;
kono
parents:
diff changeset
376 end record
kono
parents:
diff changeset
377 with Disable_Controlled => not T_Check;
kono
parents:
diff changeset
378
kono
parents:
diff changeset
379 overriding procedure Finalize (Object : in out Iterator);
kono
parents:
diff changeset
380
kono
parents:
diff changeset
381 overriding function First (Object : Iterator) return Cursor;
kono
parents:
diff changeset
382 overriding function Last (Object : Iterator) return Cursor;
kono
parents:
diff changeset
383
kono
parents:
diff changeset
384 overriding function Next
kono
parents:
diff changeset
385 (Object : Iterator;
kono
parents:
diff changeset
386 Position : Cursor) return Cursor;
kono
parents:
diff changeset
387
kono
parents:
diff changeset
388 overriding function Previous
kono
parents:
diff changeset
389 (Object : Iterator;
kono
parents:
diff changeset
390 Position : Cursor) return Cursor;
kono
parents:
diff changeset
391
kono
parents:
diff changeset
392 end Ada.Containers.Ordered_Maps;