From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92c39a3be0a7f17d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-29 14:13:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C2E326C.BF074DA0@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Containers package References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 29 Dec 2001 22:13:20 GMT NNTP-Posting-Host: 158.252.122.160 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1009664000 158.252.122.160 (Sat, 29 Dec 2001 14:13:20 PST) NNTP-Posting-Date: Sat, 29 Dec 2001 14:13:20 PST X-Received-Date: Sat, 29 Dec 2001 14:13:22 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:18393 Date: 2001-12-29T22:13:20+00:00 List-Id: Eric Merritt wrote: > > Hello All, > > I have another newbie question for you. Is there a > well documented container library out there. I have > checked out several and on every one so far the > documentation on how to use it is sparse at best and > nonexistant at worst. It is just that the lack of > containers (or in this case, lack of instruction in > how to use those containers) has never been an issue > for any other language I have used. In any case, could > someone point out a decent containers library and its > associated documentation. The most well documented so > far seems to be Corey Minyard's library and the least > documented seems to be the PargmArc components. Mr. > Minyard did a good job in his documentation, however, > he only gave examples for a small subset of the > components. I was going to suggest Corey's, but I see you already found it. I pretty much use those components for everything I write. Here's a bit of advice on using them: When you figure out what component you want to use, e.g., Asgc.List.Expandable, start instantiating at the top and work your way down-- package Client_Manager_Base is new Asgc(Client_Manager_Handle); package List_Client_Manager is new Client_Manager_Base.List; package Client_Manager_List is new List_Client_Manager.Expandable; Clients : aliased Client_Manager_List.Object(10, 5); Notice how each instantiated package is used in the subsequent instantiation. The other important thing to know (and the reason the list object is aliased) is that when you're going to use an iterator, like: Client_Iter : Client_Manager_List.Iterator; don't forget to do a Set_Container-- Set_Container(Client_Iter, Clients'Access); Marc A. Criley Senior Staff Engineer Quadrus Corporation www.quadruscorp.com