aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-cborse.ads
diff options
context:
space:
mode:
authorMatthew Heaney <heaney@adacore.com>2012-01-23 09:35:53 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2012-01-23 10:35:53 +0100
commit3c24c853da7ea2106fe07213fdf1efd43b86bddf (patch)
treeb1fee48f14a9a5cc25d00c2a2db9351c395f6a27 /gcc/ada/a-cborse.ads
parentc61b6f0f3c7d3419603e9143a7065fefb3340247 (diff)
downloadgcc-3c24c853da7ea2106fe07213fdf1efd43b86bddf.zip
gcc-3c24c853da7ea2106fe07213fdf1efd43b86bddf.tar.gz
gcc-3c24c853da7ea2106fe07213fdf1efd43b86bddf.tar.bz2
a-cohase.ads, [...] (Cursor'Read, [...]): Declare in private part.
2012-01-23 Matthew Heaney <heaney@adacore.com> * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads, a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads, a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads, a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read, Cursor'Write): Declare in private part. (Reference_Type'Read, Reference_Type'Write): Ditto. (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto. From-SVN: r183418
Diffstat (limited to 'gcc/ada/a-cborse.ads')
-rw-r--r--gcc/ada/a-cborse.ads43
1 files changed, 24 insertions, 19 deletions
diff --git a/gcc/ada/a-cborse.ads b/gcc/ada/a-cborse.ads
index 6a8bff9..1626357 100644
--- a/gcc/ada/a-cborse.ads
+++ b/gcc/ada/a-cborse.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2004-2011, Free Software Foundation, Inc. --
+-- Copyright (C) 2004-2012, 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 --
@@ -31,10 +31,11 @@
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
-private with Ada.Containers.Red_Black_Trees;
-with Ada.Streams; use Ada.Streams;
with Ada.Iterator_Interfaces;
+private with Ada.Containers.Red_Black_Trees;
+private with Ada.Streams;
+
generic
type Element_Type is private;
@@ -60,6 +61,7 @@ package Ada.Containers.Bounded_Ordered_Sets is
Empty_Set : constant Set;
No_Element : constant Cursor;
+
function Has_Element (Position : Cursor) return Boolean;
package Set_Iterator_Interfaces is new
@@ -277,6 +279,8 @@ package Ada.Containers.Bounded_Ordered_Sets is
type Reference_Type
(Element : not null access Element_Type) is null record;
+ use Ada.Streams;
+
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Item : out Reference_Type);
@@ -310,6 +314,21 @@ private
type Set (Capacity : Count_Type) is
new Tree_Types.Tree_Type (Capacity) with null record;
+ use Tree_Types;
+ use Ada.Streams;
+
+ procedure Write
+ (Stream : not null access Root_Stream_Type'Class;
+ Container : Set);
+
+ for Set'Write use Write;
+
+ procedure Read
+ (Stream : not null access Root_Stream_Type'Class;
+ Container : out Set);
+
+ for Set'Read use Read;
+
type Set_Access is access all Set;
for Set_Access'Storage_Size use 0;
@@ -324,8 +343,6 @@ private
Node : Count_Type := 0;
end record;
- use Tree_Types;
-
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Item : Cursor);
@@ -338,20 +355,6 @@ private
for Cursor'Read use Read;
- No_Element : constant Cursor := Cursor'(null, 0);
-
- procedure Write
- (Stream : not null access Root_Stream_Type'Class;
- Container : Set);
-
- for Set'Write use Write;
-
- procedure Read
- (Stream : not null access Root_Stream_Type'Class;
- Container : out Set);
-
- for Set'Read use Read;
-
type Constant_Reference_Type
(Element : not null access constant Element_Type) is null record;
@@ -369,4 +372,6 @@ private
Empty_Set : constant Set := Set'(Tree_Type with Capacity => 0);
+ No_Element : constant Cursor := Cursor'(null, 0);
+
end Ada.Containers.Bounded_Ordered_Sets;