[Dune-devel] Random-Access Iterators

Oliver Sander sander at igpm.rwth-aachen.de
Wed Oct 1 17:24:29 CEST 2014


Am 01.10.2014 um 17:18 schrieb Jö Fahlke:
> Am Wed,  1. Oct 2014, 16:22:48 +0200 schrieb Oliver Sander:
>> I would really expect property b):
>>
>>> (b) you could also want to write
>>>     gridView.begin() + gridView.indexSet().index( entity )
>>>     to obtain an iterator to "entity"
>>
>> I think people will assume this implicitly, and get confused if it doesn't hold.
>> On the other hand it cannot hold with mixed-element grids.  This for me is another
>> point against random-access iterators.
> 
> Actually, poeple have been confused about this in the _past_ already.  That
> is, we have had poeple expecting that iteration order == index order, and had
> to correct them.  That is nothing new about random access iterators.
> 

That is correct.  But so far the iteration order never appeared explicitly.
This changes with the random-access iterator.
Best,
Oliver


> Regards,
> Jö.
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20141001/1da2c971/attachment.sig>


More information about the Dune-devel mailing list