25 #ifndef LSST_AFW_GEOM_SpanPixelIterator_h_INCLUDED
26 #define LSST_AFW_GEOM_SpanPixelIterator_h_INCLUDED
28 #include "boost/iterator/iterator_facade.hpp"
43 boost::random_access_traversal_tag> {
50 Point2I const& dereference()
const {
return _p; }
52 void increment() { ++_p.getX(); }
54 void decrement() { --_p.getX(); }
56 void advance(
int n) { _p.getX() +=
n; }
59 return _p.getX() == other._p.getX() && _p.getY() == other._p.getY();
63 assert(other._p.getY() == _p.getY());
64 return other._p.getX() - _p.getX();
73 #endif // !LSST_AFW_GEOM_SpanPixelIterator_h_INCLUDED
An iterator that yields Point2I and increases in the x direction.
friend class boost::iterator_core_access
SpanPixelIterator(Point2I const &p=Point2I())
metadata import lsst afw display as afwDisplay n