[MOAB-dev] Changing the options format in iMesh

Jason Kraftcheck kraftche at cae.wisc.edu
Tue Nov 16 08:52:15 CST 2010


On 11/16/2010 08:44 AM, Tim Tautges wrote:
> On 11/15/2010 05:57 PM, Jason Kraftcheck wrote:
>> On 11/15/2010 05:49 PM, Tim Tautges wrote:
>>> On 11/15/2010 03:29 PM, James Porter wrote:
>>>> On Mon, 2010-11-15 at 14:12 -0600, Tim Tautges wrote:

>>
>>>> - (18) Possible issues with iterators over sets with duplicate
>>>> elements?
>>>
>>> Argh, I probably originated the problem, I recall using ranges for
>>> iterators, which won't work for list-type sets.
>>>
>>
>> We probably need a separate list iterator implementation. Using a
>> range-based iterator for lists is clearly wrong for the ordering, but
>> using a list-based iterator for ranges would be unnecessarily expensive
>> (memory-wise) for many cases.
>>
> 
> Ok.  I think that's a post-4.0 issue.
> 

We could also try making the iterator class a template on the container
type.  If it is only using forward iterators and calling begin() and end()
on the container then it should work fine for either a range or a vector.

- jason



More information about the moab-dev mailing list