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> {
56 Point2I const& dereference()
const {
return _p; }
58 void increment() { ++_p.getX(); }
60 void decrement() { --_p.getX(); }
62 void advance(
int n) { _p.getX() += n; }
65 return _p.getX() == other._p.getX() && _p.getY() == other._p.getY();
69 assert(other._p.getY() == _p.getY());
70 return other._p.getX() - _p.getX();
79 #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 & operator=(SpanPixelIterator const &)=default
SpanPixelIterator(Point2I const &p=Point2I())
~SpanPixelIterator()=default
A base class for image defects.