Boost logo

Boost :

Subject: Re: [boost] [gil::io] Feedback for scanline_read_iterator
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-02-18 20:13:12


AFAIU, the proposal is to support equivalent to this:

scanline_read_iterator it =...
std::advance (it, 7); // no I/O performed
auto& buf = *it; // fetch 7th scanline data now

-- 
Mateusz Loskot, http://mateusz.loskot.net
(Sent from mobile, apology for top-posting or broken quotes)
On Feb 19, 2013 12:54 AM, "Christian Henning" <chhenning_at_[hidden]> wrote:
> >> Actually that doesn't work. How would the user signal to just skip a
> >> scanline? I cannot add a parameter to operator++.
> >>
> >> scanline_read_iterator< Reader >& operator++( bool read_scanline =
> >> true ) { //to something }
> >>
> >
> > The "do something" is in operator*, no?
> >
>
> Correct. I changed the code now so that the user will have to skip()
> to jump over scanlines. I think that's a good solution. If the user
> doesn't call skip the current scanline will be read.
>
> Christian
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk