comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <mheaney@on2.com>
Subject: Re: Ada.Containers.Indefinite_Hashed_Maps
Date: 26 Apr 2007 09:12:30 -0700
Date: 2007-04-26T09:12:30-07:00	[thread overview]
Message-ID: <1177603950.438814.247820@s33g2000prh.googlegroups.com> (raw)
In-Reply-To: <1177510391.733055.133060@n35g2000prd.googlegroups.com>

On Apr 25, 10:13 am, markp <markwor...@yahoo.com> wrote:
> I am using a hash table via Ada.Containers.Indefinite_Hashed_Maps to
> hash an array of records. We have a predfined array of records called
> X. The insert function works fine by passing in X(1), X(2), etc. I am
> having trouble with the syntax of the Update call, specifically the
> Process parameter. Could somebody provide a quick snippet of code that
> show how to setup this code and how the procedure actually looks to
> update the data?

Given map M and cursor C you would say:

declare
   procedure Process (K : KT; E : in out ET) is
   begin
      ... -- modify E as necessary
   end;
begin
   M.Update_Element (C, Process'Access);
end;





      parent reply	other threads:[~2007-04-26 16:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25 14:13 Ada.Containers.Indefinite_Hashed_Maps markp
2007-04-25 17:43 ` Ada.Containers.Indefinite_Hashed_Maps Jeffrey R. Carter
2007-04-26 12:12   ` Ada.Containers.Indefinite_Hashed_Maps Maciej Sobczak
2007-04-26 12:55     ` Ada.Containers.Indefinite_Hashed_Maps Stefan Bellon
2007-04-26 16:13       ` Ada.Containers.Indefinite_Hashed_Maps Matthew Heaney
2007-04-27  4:39     ` Ada.Containers.Indefinite_Hashed_Maps Jeffrey R. Carter
2007-04-26 15:52 ` Ada.Containers.Indefinite_Hashed_Maps Matthew Heaney
2007-04-26 19:56   ` Ada.Containers.Indefinite_Hashed_Maps Matthew Heaney
2007-04-26 16:12 ` Matthew Heaney [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox