Any interest in an "opaque iterator" library?

Hi folks, I've been working on an "opaque iterator" library that is designed to do for iterators what the pimpl idiom does for classes in general. A motivating example and some experimental code can be found here: http://www.mr-edd.co.uk/?p=36 Before I take it further I'd like to know if there's any interest in having such a library within the boost collection so I can start refactoring it in the rough direction needed for formal review. Thanks, Edd

lists@mr-edd.co.uk wrote:
Hi folks,
I've been working on an "opaque iterator" library that is designed to do for iterators what the pimpl idiom does for classes in general.
A motivating example and some experimental code can be found here: http://www.mr-edd.co.uk/?p=36
Hi, Though the motivations might be different, it seems "any_iterator". Another booster seems trying: http://tinyurl.com/yp7olk (You might want to contact the author.) BTW, I too implemented it. :-) If interested, unzip: http://tinyurl.com/2axp2l Regards, -- Shunsuke Sogame

shunsuke wrote:
Hi,
Though the motivations might be different, it seems "any_iterator". Another booster seems trying: http://tinyurl.com/yp7olk (You might want to contact the author.)
That's interesting. It does come at the problem from a different angle, as you say. In fact any_iterator.hpp alone pulls in ~260 headers! But it may be possible to reduce this with forward declarations. I'll contact the author, as you suggest.
BTW, I too implemented it. :-) If interested, unzip: http://tinyurl.com/2axp2l
That too looks interesting, though not as closely aligned to my needs/ideas as any_iterator. I'll try to find a couple of ours soon to grok it better :) Thanks again for pointing these out! Edd

on Mon May 28 2007, shunsuke <pstade.mb-AT-gmail.com> wrote:
lists@mr-edd.co.uk wrote:
Hi folks,
I've been working on an "opaque iterator" library that is designed to do for iterators what the pimpl idiom does for classes in general.
A motivating example and some experimental code can be found here: http://www.mr-edd.co.uk/?p=36
Hi,
Though the motivations might be different, it seems "any_iterator". Another booster seems trying: http://tinyurl.com/yp7olk (You might want to contact the author.)
BTW, I too implemented it. :-) If interested, unzip: http://tinyurl.com/2axp2l
There's also one in the Adobe Source Libraries. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

On 5/28/07, David Abrahams <dave@boost-consulting.com> wrote:
Though the motivations might be different, it seems "any_iterator". Another booster seems trying: http://tinyurl.com/yp7olk (You might want to contact the author.)
BTW, I too implemented it. :-) If interested, unzip: http://tinyurl.com/2axp2l
There's also one in the Adobe Source Libraries.
The Adobe one is called 'poly_iterator'. It is just a first pass at the idea, but pretty solid for what is there. I expect there will be more work on it in following releases. Tony

Gottlob Frege wrote:
On 5/28/07, David Abrahams <dave@boost-consulting.com> wrote:
There's also one in the Adobe Source Libraries.
The Adobe one is called 'poly_iterator'. It is just a first pass at the idea, but pretty solid for what is there. I expect there will be more work on it in following releases.
Is that the same as adobe::any_iterator, which I've now found here: http://opensource.adobe.com/classadobe_1_1any__iterator.html ? I can't find the poly_iterator of which you speak. Google results are flooded with stuff about polygons :) No results at all for "adobe poly_iterator" I found one poly_iterator, which is sort of the same, that was discussed on this list a number of years ago: http://aspn.activestate.com/ASPN/Mail/Message/boost/1146451 Thanks, Edd

On 5/28/07, Edd Dawson <lists@mr-edd.co.uk> wrote:
Gottlob Frege wrote:
The Adobe one is called 'poly_iterator'. It is just a first pass at the idea, but pretty solid for what is there. I expect there will be more work on it in following releases.
Is that the same as adobe::any_iterator, which I've now found here: http://opensource.adobe.com/classadobe_1_1any__iterator.html ?
Yeah, it was recently changed from 'any' to 'poly'. I think it is even still in a header called any_iterator.h. Like I said, first pass. But I expect it to evolve quickly. Tony

on Mon May 28 2007, "Gottlob Frege" <gottlobfrege-AT-gmail.com> wrote:
On 5/28/07, David Abrahams <dave@boost-consulting.com> wrote:
Though the motivations might be different, it seems "any_iterator". Another booster seems trying: http://tinyurl.com/yp7olk (You might want to contact the author.)
BTW, I too implemented it. :-) If interested, unzip: http://tinyurl.com/2axp2l
There's also one in the Adobe Source Libraries.
The Adobe one is called 'poly_iterator'. It is just a first pass at the idea, but pretty solid for what is there. I expect there will be more work on it in following releases.
Tony
So do we address you as Tony or Gottlob? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

On 5/30/07, David Abrahams <dave@boost-consulting.com> wrote:
on Mon May 28 2007, "Gottlob Frege" <gottlobfrege-AT-gmail.com> wrote:
The Adobe one is called 'poly_iterator'. It is just a first pass at the idea, but pretty solid for what is there. I expect there will be more work on it in following releases.
Tony
So do we address you as Tony or Gottlob?
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Tony if you know/notice, but I've gotten use to Gottlob as well (online at least, not in the real world). (sorry for the slow response I'm 400 emails behind - I finally decided to search unread emails for 'Gottlob' (and Tony) - Gottlob is nice and rare...)
participants (5)
-
David Abrahams
-
Edd Dawson
-
Gottlob Frege
-
lists@mr-edd.co.uk
-
shunsuke