annotate gcc/ada/libgnat/a-cbdlli.ads @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
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 -- ADA.CONTAINERS.BOUNDED_DOUBLY_LINKED_LISTS --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 -- Copyright (C) 2004-2018, 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 with Ada.Containers.Helpers;
kono
parents:
diff changeset
37 private with Ada.Streams;
kono
parents:
diff changeset
38 private with Ada.Finalization;
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 generic
kono
parents:
diff changeset
41 type Element_Type is private;
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 with function "=" (Left, Right : Element_Type)
kono
parents:
diff changeset
44 return Boolean is <>;
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 package Ada.Containers.Bounded_Doubly_Linked_Lists is
kono
parents:
diff changeset
47 pragma Annotate (CodePeer, Skip_Analysis);
kono
parents:
diff changeset
48 pragma Pure;
kono
parents:
diff changeset
49 pragma Remote_Types;
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 type List (Capacity : Count_Type) is tagged private with
kono
parents:
diff changeset
52 Constant_Indexing => Constant_Reference,
kono
parents:
diff changeset
53 Variable_Indexing => Reference,
kono
parents:
diff changeset
54 Default_Iterator => Iterate,
kono
parents:
diff changeset
55 Iterator_Element => Element_Type;
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 pragma Preelaborable_Initialization (List);
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 type Cursor is private;
kono
parents:
diff changeset
60 pragma Preelaborable_Initialization (Cursor);
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 Empty_List : constant List;
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 No_Element : constant Cursor;
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 function Has_Element (Position : Cursor) return Boolean;
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 package List_Iterator_Interfaces is new
kono
parents:
diff changeset
69 Ada.Iterator_Interfaces (Cursor, Has_Element);
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 function "=" (Left, Right : List) return Boolean;
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 function Length (Container : List) return Count_Type;
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 function Is_Empty (Container : List) return Boolean;
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 procedure Clear (Container : in out List);
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 function Element (Position : Cursor) return Element_Type;
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 procedure Replace_Element
kono
parents:
diff changeset
82 (Container : in out List;
kono
parents:
diff changeset
83 Position : Cursor;
kono
parents:
diff changeset
84 New_Item : Element_Type);
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 procedure Query_Element
kono
parents:
diff changeset
87 (Position : Cursor;
kono
parents:
diff changeset
88 Process : not null access procedure (Element : Element_Type));
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 procedure Update_Element
kono
parents:
diff changeset
91 (Container : in out List;
kono
parents:
diff changeset
92 Position : Cursor;
kono
parents:
diff changeset
93 Process : not null access procedure (Element : in out Element_Type));
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 type Constant_Reference_Type
kono
parents:
diff changeset
96 (Element : not null access constant Element_Type) is private
kono
parents:
diff changeset
97 with
kono
parents:
diff changeset
98 Implicit_Dereference => Element;
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 type Reference_Type
kono
parents:
diff changeset
101 (Element : not null access 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 function Constant_Reference
kono
parents:
diff changeset
106 (Container : aliased List;
kono
parents:
diff changeset
107 Position : Cursor) return Constant_Reference_Type;
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109 function Reference
kono
parents:
diff changeset
110 (Container : aliased in out List;
kono
parents:
diff changeset
111 Position : Cursor) return Reference_Type;
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 procedure Assign (Target : in out List; Source : List);
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115 function Copy (Source : List; Capacity : Count_Type := 0) return List;
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 procedure Move
kono
parents:
diff changeset
118 (Target : in out List;
kono
parents:
diff changeset
119 Source : in out List);
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 procedure Insert
kono
parents:
diff changeset
122 (Container : in out List;
kono
parents:
diff changeset
123 Before : Cursor;
kono
parents:
diff changeset
124 New_Item : Element_Type;
kono
parents:
diff changeset
125 Count : Count_Type := 1);
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 procedure Insert
kono
parents:
diff changeset
128 (Container : in out List;
kono
parents:
diff changeset
129 Before : Cursor;
kono
parents:
diff changeset
130 New_Item : Element_Type;
kono
parents:
diff changeset
131 Position : out Cursor;
kono
parents:
diff changeset
132 Count : Count_Type := 1);
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 procedure Insert
kono
parents:
diff changeset
135 (Container : in out List;
kono
parents:
diff changeset
136 Before : Cursor;
kono
parents:
diff changeset
137 Position : out Cursor;
kono
parents:
diff changeset
138 Count : Count_Type := 1);
kono
parents:
diff changeset
139
kono
parents:
diff changeset
140 procedure Prepend
kono
parents:
diff changeset
141 (Container : in out List;
kono
parents:
diff changeset
142 New_Item : Element_Type;
kono
parents:
diff changeset
143 Count : Count_Type := 1);
kono
parents:
diff changeset
144
kono
parents:
diff changeset
145 procedure Append
kono
parents:
diff changeset
146 (Container : in out List;
kono
parents:
diff changeset
147 New_Item : Element_Type;
kono
parents:
diff changeset
148 Count : Count_Type := 1);
kono
parents:
diff changeset
149
kono
parents:
diff changeset
150 procedure Delete
kono
parents:
diff changeset
151 (Container : in out List;
kono
parents:
diff changeset
152 Position : in out Cursor;
kono
parents:
diff changeset
153 Count : Count_Type := 1);
kono
parents:
diff changeset
154
kono
parents:
diff changeset
155 procedure Delete_First
kono
parents:
diff changeset
156 (Container : in out List;
kono
parents:
diff changeset
157 Count : Count_Type := 1);
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 procedure Delete_Last
kono
parents:
diff changeset
160 (Container : in out List;
kono
parents:
diff changeset
161 Count : Count_Type := 1);
kono
parents:
diff changeset
162
kono
parents:
diff changeset
163 procedure Reverse_Elements (Container : in out List);
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165 function Iterate
kono
parents:
diff changeset
166 (Container : List)
kono
parents:
diff changeset
167 return List_Iterator_Interfaces.Reversible_Iterator'class;
kono
parents:
diff changeset
168
kono
parents:
diff changeset
169 function Iterate
kono
parents:
diff changeset
170 (Container : List;
kono
parents:
diff changeset
171 Start : Cursor)
kono
parents:
diff changeset
172 return List_Iterator_Interfaces.Reversible_Iterator'class;
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 procedure Swap
kono
parents:
diff changeset
175 (Container : in out List;
kono
parents:
diff changeset
176 I, J : Cursor);
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 procedure Swap_Links
kono
parents:
diff changeset
179 (Container : in out List;
kono
parents:
diff changeset
180 I, J : Cursor);
kono
parents:
diff changeset
181
kono
parents:
diff changeset
182 procedure Splice
kono
parents:
diff changeset
183 (Target : in out List;
kono
parents:
diff changeset
184 Before : Cursor;
kono
parents:
diff changeset
185 Source : in out List);
kono
parents:
diff changeset
186
kono
parents:
diff changeset
187 procedure Splice
kono
parents:
diff changeset
188 (Target : in out List;
kono
parents:
diff changeset
189 Before : Cursor;
kono
parents:
diff changeset
190 Source : in out List;
kono
parents:
diff changeset
191 Position : in out Cursor);
kono
parents:
diff changeset
192
kono
parents:
diff changeset
193 procedure Splice
kono
parents:
diff changeset
194 (Container : in out List;
kono
parents:
diff changeset
195 Before : Cursor;
kono
parents:
diff changeset
196 Position : Cursor);
kono
parents:
diff changeset
197
kono
parents:
diff changeset
198 function First (Container : List) return Cursor;
kono
parents:
diff changeset
199
kono
parents:
diff changeset
200 function First_Element (Container : List) return Element_Type;
kono
parents:
diff changeset
201
kono
parents:
diff changeset
202 function Last (Container : List) return Cursor;
kono
parents:
diff changeset
203
kono
parents:
diff changeset
204 function Last_Element (Container : List) return Element_Type;
kono
parents:
diff changeset
205
kono
parents:
diff changeset
206 function Next (Position : Cursor) return Cursor;
kono
parents:
diff changeset
207
kono
parents:
diff changeset
208 procedure Next (Position : in out Cursor);
kono
parents:
diff changeset
209
kono
parents:
diff changeset
210 function Previous (Position : Cursor) return Cursor;
kono
parents:
diff changeset
211
kono
parents:
diff changeset
212 procedure Previous (Position : in out Cursor);
kono
parents:
diff changeset
213
kono
parents:
diff changeset
214 function Find
kono
parents:
diff changeset
215 (Container : List;
kono
parents:
diff changeset
216 Item : Element_Type;
kono
parents:
diff changeset
217 Position : Cursor := No_Element) return Cursor;
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 function Reverse_Find
kono
parents:
diff changeset
220 (Container : List;
kono
parents:
diff changeset
221 Item : Element_Type;
kono
parents:
diff changeset
222 Position : Cursor := No_Element) return Cursor;
kono
parents:
diff changeset
223
kono
parents:
diff changeset
224 function Contains
kono
parents:
diff changeset
225 (Container : List;
kono
parents:
diff changeset
226 Item : Element_Type) return Boolean;
kono
parents:
diff changeset
227
kono
parents:
diff changeset
228 procedure Iterate
kono
parents:
diff changeset
229 (Container : List;
kono
parents:
diff changeset
230 Process : not null access procedure (Position : Cursor));
kono
parents:
diff changeset
231
kono
parents:
diff changeset
232 procedure Reverse_Iterate
kono
parents:
diff changeset
233 (Container : List;
kono
parents:
diff changeset
234 Process : not null access procedure (Position : Cursor));
kono
parents:
diff changeset
235
kono
parents:
diff changeset
236 generic
kono
parents:
diff changeset
237 with function "<" (Left, Right : Element_Type) return Boolean is <>;
kono
parents:
diff changeset
238 package Generic_Sorting is
kono
parents:
diff changeset
239
kono
parents:
diff changeset
240 function Is_Sorted (Container : List) return Boolean;
kono
parents:
diff changeset
241
kono
parents:
diff changeset
242 procedure Sort (Container : in out List);
kono
parents:
diff changeset
243
kono
parents:
diff changeset
244 procedure Merge (Target, Source : in out List);
kono
parents:
diff changeset
245
kono
parents:
diff changeset
246 end Generic_Sorting;
kono
parents:
diff changeset
247
kono
parents:
diff changeset
248 private
kono
parents:
diff changeset
249
kono
parents:
diff changeset
250 pragma Inline (Next);
kono
parents:
diff changeset
251 pragma Inline (Previous);
kono
parents:
diff changeset
252
kono
parents:
diff changeset
253 use Ada.Containers.Helpers;
kono
parents:
diff changeset
254 package Implementation is new Generic_Implementation;
kono
parents:
diff changeset
255 use Implementation;
kono
parents:
diff changeset
256
kono
parents:
diff changeset
257 use Ada.Streams;
kono
parents:
diff changeset
258 use Ada.Finalization;
kono
parents:
diff changeset
259
kono
parents:
diff changeset
260 type Node_Type is record
kono
parents:
diff changeset
261 Prev : Count_Type'Base;
kono
parents:
diff changeset
262 Next : Count_Type;
kono
parents:
diff changeset
263 Element : aliased Element_Type;
kono
parents:
diff changeset
264 end record;
kono
parents:
diff changeset
265
kono
parents:
diff changeset
266 type Node_Array is array (Count_Type range <>) of Node_Type;
kono
parents:
diff changeset
267
kono
parents:
diff changeset
268 type List (Capacity : Count_Type) is tagged record
kono
parents:
diff changeset
269 Nodes : Node_Array (1 .. Capacity) := (others => <>);
kono
parents:
diff changeset
270 Free : Count_Type'Base := -1;
kono
parents:
diff changeset
271 First : Count_Type := 0;
kono
parents:
diff changeset
272 Last : Count_Type := 0;
kono
parents:
diff changeset
273 Length : Count_Type := 0;
kono
parents:
diff changeset
274 TC : aliased Tamper_Counts;
kono
parents:
diff changeset
275 end record;
kono
parents:
diff changeset
276
kono
parents:
diff changeset
277 procedure Read
kono
parents:
diff changeset
278 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
279 Item : out List);
kono
parents:
diff changeset
280
kono
parents:
diff changeset
281 for List'Read use Read;
kono
parents:
diff changeset
282
kono
parents:
diff changeset
283 procedure Write
kono
parents:
diff changeset
284 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
285 Item : List);
kono
parents:
diff changeset
286
kono
parents:
diff changeset
287 for List'Write use Write;
kono
parents:
diff changeset
288
kono
parents:
diff changeset
289 type List_Access is access all List;
kono
parents:
diff changeset
290 for List_Access'Storage_Size use 0;
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 type Cursor is record
kono
parents:
diff changeset
293 Container : List_Access;
kono
parents:
diff changeset
294 Node : Count_Type := 0;
kono
parents:
diff changeset
295 end record;
kono
parents:
diff changeset
296
kono
parents:
diff changeset
297 procedure Read
kono
parents:
diff changeset
298 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
299 Item : out Cursor);
kono
parents:
diff changeset
300
kono
parents:
diff changeset
301 for Cursor'Read use Read;
kono
parents:
diff changeset
302
kono
parents:
diff changeset
303 procedure Write
kono
parents:
diff changeset
304 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
305 Item : Cursor);
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 for Cursor'Write use Write;
kono
parents:
diff changeset
308
kono
parents:
diff changeset
309 subtype Reference_Control_Type is Implementation.Reference_Control_Type;
kono
parents:
diff changeset
310 -- It is necessary to rename this here, so that the compiler can find it
kono
parents:
diff changeset
311
kono
parents:
diff changeset
312 type Constant_Reference_Type
kono
parents:
diff changeset
313 (Element : not null access constant Element_Type) is
kono
parents:
diff changeset
314 record
kono
parents:
diff changeset
315 Control : Reference_Control_Type :=
kono
parents:
diff changeset
316 raise Program_Error with "uninitialized reference";
kono
parents:
diff changeset
317 -- The RM says, "The default initialization of an object of
kono
parents:
diff changeset
318 -- type Constant_Reference_Type or Reference_Type propagates
kono
parents:
diff changeset
319 -- Program_Error."
kono
parents:
diff changeset
320 end record;
kono
parents:
diff changeset
321
kono
parents:
diff changeset
322 procedure Read
kono
parents:
diff changeset
323 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
324 Item : out Constant_Reference_Type);
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 for Constant_Reference_Type'Read use Read;
kono
parents:
diff changeset
327
kono
parents:
diff changeset
328 procedure Write
kono
parents:
diff changeset
329 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
330 Item : Constant_Reference_Type);
kono
parents:
diff changeset
331
kono
parents:
diff changeset
332 for Constant_Reference_Type'Write use Write;
kono
parents:
diff changeset
333
kono
parents:
diff changeset
334 type Reference_Type (Element : not null access Element_Type) is record
kono
parents:
diff changeset
335 Control : Reference_Control_Type :=
kono
parents:
diff changeset
336 raise Program_Error with "uninitialized reference";
kono
parents:
diff changeset
337 -- The RM says, "The default initialization of an object of
kono
parents:
diff changeset
338 -- type Constant_Reference_Type or Reference_Type propagates
kono
parents:
diff changeset
339 -- Program_Error."
kono
parents:
diff changeset
340 end record;
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 procedure Read
kono
parents:
diff changeset
349 (Stream : not null access Root_Stream_Type'Class;
kono
parents:
diff changeset
350 Item : out Reference_Type);
kono
parents:
diff changeset
351
kono
parents:
diff changeset
352 for Reference_Type'Read use Read;
kono
parents:
diff changeset
353
kono
parents:
diff changeset
354 -- Three operations are used to optimize in the expansion of "for ... of"
kono
parents:
diff changeset
355 -- loops: the Next(Cursor) procedure in the visible part, and the following
kono
parents:
diff changeset
356 -- Pseudo_Reference and Get_Element_Access functions. See Exp_Ch5 for
kono
parents:
diff changeset
357 -- details.
kono
parents:
diff changeset
358
kono
parents:
diff changeset
359 function Pseudo_Reference
kono
parents:
diff changeset
360 (Container : aliased List'Class) return Reference_Control_Type;
kono
parents:
diff changeset
361 pragma Inline (Pseudo_Reference);
kono
parents:
diff changeset
362 -- Creates an object of type Reference_Control_Type pointing to the
kono
parents:
diff changeset
363 -- container, and increments the Lock. Finalization of this object will
kono
parents:
diff changeset
364 -- decrement the Lock.
kono
parents:
diff changeset
365
kono
parents:
diff changeset
366 type Element_Access is access all Element_Type with
kono
parents:
diff changeset
367 Storage_Size => 0;
kono
parents:
diff changeset
368
kono
parents:
diff changeset
369 function Get_Element_Access
kono
parents:
diff changeset
370 (Position : Cursor) return not null Element_Access;
kono
parents:
diff changeset
371 -- Returns a pointer to the element designated by Position.
kono
parents:
diff changeset
372
kono
parents:
diff changeset
373 Empty_List : constant List := (Capacity => 0, others => <>);
kono
parents:
diff changeset
374
kono
parents:
diff changeset
375 No_Element : constant Cursor := Cursor'(null, 0);
kono
parents:
diff changeset
376
kono
parents:
diff changeset
377 type Iterator is new Limited_Controlled and
kono
parents:
diff changeset
378 List_Iterator_Interfaces.Reversible_Iterator with
kono
parents:
diff changeset
379 record
kono
parents:
diff changeset
380 Container : List_Access;
kono
parents:
diff changeset
381 Node : Count_Type;
kono
parents:
diff changeset
382 end record
kono
parents:
diff changeset
383 with Disable_Controlled => not T_Check;
kono
parents:
diff changeset
384
kono
parents:
diff changeset
385 overriding procedure Finalize (Object : in out Iterator);
kono
parents:
diff changeset
386
kono
parents:
diff changeset
387 overriding function First (Object : Iterator) return Cursor;
kono
parents:
diff changeset
388 overriding function Last (Object : Iterator) return Cursor;
kono
parents:
diff changeset
389
kono
parents:
diff changeset
390 overriding function Next
kono
parents:
diff changeset
391 (Object : Iterator;
kono
parents:
diff changeset
392 Position : Cursor) return Cursor;
kono
parents:
diff changeset
393
kono
parents:
diff changeset
394 overriding function Previous
kono
parents:
diff changeset
395 (Object : Iterator;
kono
parents:
diff changeset
396 Position : Cursor) return Cursor;
kono
parents:
diff changeset
397
kono
parents:
diff changeset
398 end Ada.Containers.Bounded_Doubly_Linked_Lists;