summaryrefslogtreecommitdiff
path: root/gcc/ada/a-cborse.ads
diff options
context:
space:
mode:
authorbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-16 20:19:34 +0000
committerbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-16 20:19:34 +0000
commit15af2a1f9de80d34cb8026a8d0fac9a63bc54597 (patch)
treec614525c1e2f0920e4fb6481b2b07d24b6227071 /gcc/ada/a-cborse.ads
parentdd75cc669a5b0e29ab695df8a59fab850e39e002 (diff)
downloadgcc-15af2a1f9de80d34cb8026a8d0fac9a63bc54597.tar.gz
Merged with trunk at revision 197989.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cilkplus@198009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cborse.ads')
-rw-r--r--gcc/ada/a-cborse.ads25
1 files changed, 24 insertions, 1 deletions
diff --git a/gcc/ada/a-cborse.ads b/gcc/ada/a-cborse.ads
index 16263577389..d22ef54b21b 100644
--- a/gcc/ada/a-cborse.ads
+++ b/gcc/ada/a-cborse.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2004-2012, Free Software Foundation, Inc. --
+-- Copyright (C) 2004-2013, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
@@ -35,6 +35,7 @@ with Ada.Iterator_Interfaces;
private with Ada.Containers.Red_Black_Trees;
private with Ada.Streams;
+private with Ada.Finalization;
generic
type Element_Type is private;
@@ -374,4 +375,26 @@ private
No_Element : constant Cursor := Cursor'(null, 0);
+ use Ada.Finalization;
+
+ type Iterator is new Limited_Controlled and
+ Set_Iterator_Interfaces.Reversible_Iterator with
+ record
+ Container : Set_Access;
+ Node : Count_Type;
+ end record;
+
+ overriding procedure Finalize (Object : in out Iterator);
+
+ overriding function First (Object : Iterator) return Cursor;
+ overriding function Last (Object : Iterator) return Cursor;
+
+ overriding function Next
+ (Object : Iterator;
+ Position : Cursor) return Cursor;
+
+ overriding function Previous
+ (Object : Iterator;
+ Position : Cursor) return Cursor;
+
end Ada.Containers.Bounded_Ordered_Sets;