OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [limited_with3_pkg1.ads] - Rev 714

Go to most recent revision | Compare with Previous | Blame | View Log

with Ada.Containers.Hashed_Maps;
 
generic
 
     type Object_Type is tagged private;
 
package Limited_With3_Pkg1 is
 
     type Key_Type is access all String;
 
     type Element_Type is new Object_Type with null record;
 
     type Element_Access is access all Element_Type;
 
     function Equal (Left, Right : Element_Access) return Boolean;
 
     function Equivalent_Keys (Left, Right : Key_Type) return Boolean;
 
     function Hash (Key : Key_Type) return Ada.Containers.Hash_Type;
 
     package Table_Package is new Ada.Containers.Hashed_Maps (
         Key_Type            => Key_Type,
         Element_Type        => Element_Access,
         Hash                => Hash,
         Equivalent_Keys     => Equivalent_Keys,
         "="                 => Equal);
 
end Limited_With3_Pkg1;
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.