OSDN Git Service

2005-06-15 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-cohata.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT LIBRARY COMPONENTS                          --
4 --                                                                          --
5 --                        ADA.CONTAINERS.HASH_TABLES                        --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 -- This specification is adapted from the Ada Reference Manual for use with --
10 -- GNAT.  In accordance with the copyright of that document, you can freely --
11 -- copy and modify this specification,  provided that if you redistribute a --
12 -- modified version,  any changes that you have made are clearly indicated. --
13 --                                                                          --
14 ------------------------------------------------------------------------------
15
16 with Ada.Finalization;
17
18 package Ada.Containers.Hash_Tables is
19 pragma Preelaborate;
20
21    generic
22       type Node_Access is private;
23
24    package Generic_Hash_Table_Types is
25       type Buckets_Type is array (Hash_Type range <>) of Node_Access;
26
27       type Buckets_Access is access Buckets_Type;
28
29       type Hash_Table_Type is new Ada.Finalization.Controlled with record
30          Buckets : Buckets_Access;
31          Length  : Count_Type := 0;
32       end record;
33    end Generic_Hash_Table_Types;
34
35 end Ada.Containers.Hash_Tables;