summaryrefslogtreecommitdiff
path: root/gcc/ada/a-cihase.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-23 09:35:53 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-23 09:35:53 +0000
commitdee4c239eae6d805bcdadd421af4593452466869 (patch)
treeb1fee48f14a9a5cc25d00c2a2db9351c395f6a27 /gcc/ada/a-cihase.ads
parent25122b4c8c15f7715109d918a36ec9a3a8c3d046 (diff)
downloadgcc-dee4c239eae6d805bcdadd421af4593452466869.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cihase.ads')
-rw-r--r--gcc/ada/a-cihase.ads31
1 files changed, 16 insertions, 15 deletions
diff --git a/gcc/ada/a-cihase.ads b/gcc/ada/a-cihase.ads
index db59bdb7a00..f361830b78b 100644
--- a/gcc/ada/a-cihase.ads
+++ b/gcc/ada/a-cihase.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 --
@@ -32,6 +32,7 @@
------------------------------------------------------------------------------
with Ada.Iterator_Interfaces;
+
private with Ada.Containers.Hash_Tables;
private with Ada.Streams;
private with Ada.Finalization;
@@ -474,6 +475,18 @@ private
use Ada.Finalization;
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;
@@ -494,20 +507,6 @@ private
for Cursor'Read use Read;
- No_Element : constant Cursor := (Container => null, Node => null);
-
- 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;
@@ -525,4 +524,6 @@ private
Empty_Set : constant Set := (Controlled with HT => (null, 0, 0, 0));
+ No_Element : constant Cursor := (Container => null, Node => null);
+
end Ada.Containers.Indefinite_Hashed_Sets;