diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-11-23 12:04:39 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-11-23 12:04:39 +0100 |
commit | f947ee3467dee8ca1b681c459804b02657113e9d (patch) | |
tree | 5fb6c077b0e3f24d74204d0e539e282bdb998d66 /gcc/ada/a-cborma.ads | |
parent | fb2bd3a70d29393806e9c21c9568de1170fee9f9 (diff) | |
download | gcc-f947ee3467dee8ca1b681c459804b02657113e9d.zip gcc-f947ee3467dee8ca1b681c459804b02657113e9d.tar.gz gcc-f947ee3467dee8ca1b681c459804b02657113e9d.tar.bz2 |
[multiple changes]
2011-11-23 Ed Schonberg <schonberg@adacore.com>
* exp_ch5.adb (Expand_Iterator_Loop): Wrap the expanded loop
and the cursor declarations in a block, so that the loop variable
is local to the construct.
2011-11-23 Matthew Heaney <heaney@adacore.com>
* a-coorma.ads, a-ciorma.ads, a-cborma.ads (Iterate): Returns
type Reversible_Iterator'Class.
* a-coorma.adb, a-ciorma.adb, a-cborma.adb (Iterator):
Declare type as limited.
(First, Last): Return value depends on iterator's start node value.
(Next, Previous): Call corresponding Cursor-based operation.
(Iterate): Indicate whether complete or partial iteration
From-SVN: r181659
Diffstat (limited to 'gcc/ada/a-cborma.ads')
-rw-r--r-- | gcc/ada/a-cborma.ads | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ada/a-cborma.ads b/gcc/ada/a-cborma.ads index e1f9f08..05c5573 100644 --- a/gcc/ada/a-cborma.ads +++ b/gcc/ada/a-cborma.ads @@ -227,17 +227,18 @@ package Ada.Containers.Bounded_Ordered_Maps is (Container : Map; Process : not null access procedure (Position : Cursor)); + procedure Reverse_Iterate + (Container : Map; + Process : not null access procedure (Position : Cursor)); + function Iterate - (Container : Map) return Map_Iterator_Interfaces.Forward_Iterator'class; + (Container : Map) + return Map_Iterator_Interfaces.Reversible_Iterator'Class; function Iterate (Container : Map; Start : Cursor) - return Map_Iterator_Interfaces.Reversible_Iterator'class; - - procedure Reverse_Iterate - (Container : Map; - Process : not null access procedure (Position : Cursor)); + return Map_Iterator_Interfaces.Reversible_Iterator'Class; private |