From: Matthew Heaney <matthewjheaney@earthlink.net>
Subject: Re: creating database
Date: Mon, 09 May 2005 03:00:03 GMT
Date: 2005-05-09T03:00:03+00:00 [thread overview]
Message-ID: <ud5s1rtn3.fsf@earthlink.net> (raw)
In-Reply-To: 1115570998.707181.84650@o13g2000cwo.googlegroups.com
caellumx@yahoo.com writes:
> I was thinking of creating the ADT as a record with various fields,
> and then an array with each element containing a record. However, I
> don't know how many records there'll be so it seems inefficient to
> declare an array of a particular size.
As someone else already pointed out, you should take a look at the
Ada.Container suite. It sounds like you need a set or maybe a map.
The latest API is described here:
<http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-20302.TXT?rev=1.19>
You can find a reference implementation here:
<http://charles.tigris.org/source/browse/charles/src/ai302/>
gcc 4.0 includes the ada.container library, so you might have it on your
system already.
I recommend poking around the examples directory for some ideas:
<http://charles.tigris.org/source/browse/charles/src/ai302/examples/>
I also recommend reading the !examples section that follows the
normative section of the AI-302 draft.
next prev parent reply other threads:[~2005-05-09 3:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-08 17:02 creating database caellumx
2005-05-08 17:36 ` Ludovic Brenta
2005-05-08 18:17 ` Jacob Sparre Andersen
2005-05-09 2:51 ` Matthew Heaney
2005-05-08 18:24 ` Jacob Sparre Andersen
2005-05-09 5:47 ` tmoran
2005-05-09 12:33 ` Robert A Duff
2005-05-09 3:00 ` Matthew Heaney [this message]
2005-05-11 16:57 ` brian.b.mcguinness
2005-05-11 21:16 ` Georg Bauhaus
2005-05-12 0:37 ` Randy Brukardt
2005-05-12 2:41 ` Matthew Heaney
2005-05-11 10:43 ` news.snafu.de
2005-05-12 2:50 ` Matthew Heaney
2005-05-12 7:31 ` Michael Erdmann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox