|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Essai_Hash, seg_05444b
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with String_Map_Generic; with Text_Io; package body Essai_Hash is procedure Table is Rep1, Rep2 : Positive; Success : Boolean; package Hash_Table is new String_Map_Generic (Size => 10000, Range_Type => Positive); My_Hash_Table : Hash_Table.Map; begin Hash_Table.Initialize (My_Hash_Table); Hash_Table.Define (My_Hash_Table, "jose", 98); Hash_Table.Define (My_Hash_Table, "fred", 1000); Hash_Table.Define (My_Hash_Table, "alain", 2000); Hash_Table.Define (My_Hash_Table, "manu", 3000); Hash_Table.Define (My_Hash_Table, "olivier", 40000); Hash_Table.Define (My_Hash_Table, "joe", 3210); Hash_Table.Define (My_Hash_Table, "isabelle", 100000); Hash_Table.Undefine (My_Hash_Table, "alain"); Text_Io.Put_Line (Positive'Image (Hash_Table.Eval (My_Hash_Table, "isabelle"))); Hash_Table.Find (My_Hash_Table, "fred", Rep2, Success); if (Success = True) then Text_Io.Put_Line (Boolean'Image (Success)); Text_Io.Put_Line (Positive'Image (Rep2)); else Text_Io.Put_Line (Boolean'Image (Success)); Text_Io.Put_Line ("pas trouve"); end if; Hash_Table.Find (My_Hash_Table, "alain", Rep2, Success); if (Success = True) then Text_Io.Put_Line (Boolean'Image (Success)); Text_Io.Put_Line (Positive'Image (Rep2)); else Text_Io.Put_Line (Boolean'Image (Success)); Text_Io.Put_Line ("pas trouve"); end if; end Table; end Essai_Hash;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1d rec1=00 rec2=01 rec3=000 [0x01] rec0=14 rec1=00 rec2=02 rec3=001 tail 0x2154d04bc87b66d870e2a 0x42a00088462060003