At 11:58 PM -0400 on 7/21/99, [EMAIL PROTECTED] wrote:
><<is it ok if I use iterator instead of iterator_const?>>
>
>The only difference is that const_iterator won't let you write directly to an
>element. So, you should be fine using a plain ol' iterator.
>
><< Trouble is, in the long term I'd like to add GetIndType() and
>GetIndResource() functionality to XBlockFile. And I guess there will surely
>be only a couple of types, thus the gain from a hash map will probably be
>very low. maybe I'll make XBlockFile remember the last type chosen and
>check that first, which would speed up e.g. getting a list of all buttons.>>
>
>For GetInd_() calls, you'll need something that you can easily keep sorted by
>ID numbers, and also will give you random access. Unfortunately, maps and
>hashmaps won't give you the latter. A vector would probably work well for
>this part, but we wouldn't want to maintain a vector just for these calls I
>don't think. Hmmm...
Don't use GetInd calls. Use iterators.