LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lsst.afw.geom.ellipses::PixelRegion::Iterator Class Reference

#include <PixelRegion.h>

Inheritance diagram for lsst.afw.geom.ellipses::PixelRegion::Iterator:

Public Member Functions

 Iterator (Span const &s=Span(0, 0, 0), PixelRegion const *region=NULL)
 

Private Member Functions

Span const & dereference () const
 
void increment ()
 
void decrement ()
 
void advance (int n)
 
bool equal (Iterator const &other) const
 
int distance_to (Iterator const &other) const
 

Private Attributes

Span _s
 
PixelRegion const * _region
 

Friends

class boost::iterator_core_access
 

Detailed Description

Definition at line 61 of file PixelRegion.h.

Constructor & Destructor Documentation

lsst.afw.geom.ellipses::PixelRegion::Iterator::Iterator ( Span const &  s = Span(0,0,0),
PixelRegion const *  region = NULL 
)
inlineexplicit

Definition at line 65 of file PixelRegion.h.

Member Function Documentation

void lsst.afw.geom.ellipses::PixelRegion::Iterator::advance ( int  n)
inlineprivate

Definition at line 78 of file PixelRegion.h.

78 { _s = _region->getSpanAt(_s.getY() + n); }
Span const getSpanAt(int y) const
int getY() const
Return the y-value.
Definition: Span.h:81
void lsst.afw.geom.ellipses::PixelRegion::Iterator::decrement ( )
inlineprivate

Definition at line 76 of file PixelRegion.h.

76 { _s = _region->getSpanAt(_s.getY()-1); }
Span const getSpanAt(int y) const
int getY() const
Return the y-value.
Definition: Span.h:81
Span const& lsst.afw.geom.ellipses::PixelRegion::Iterator::dereference ( ) const
inlineprivate

Definition at line 72 of file PixelRegion.h.

int lsst.afw.geom.ellipses::PixelRegion::Iterator::distance_to ( Iterator const &  other) const
inlineprivate

Definition at line 82 of file PixelRegion.h.

82  {
83  return other._s.getY() - _s.getY();
84  }
int getY() const
Return the y-value.
Definition: Span.h:81
bool lsst.afw.geom.ellipses::PixelRegion::Iterator::equal ( Iterator const &  other) const
inlineprivate

Definition at line 80 of file PixelRegion.h.

80 { return _s == other._s; }
void lsst.afw.geom.ellipses::PixelRegion::Iterator::increment ( )
inlineprivate

Definition at line 74 of file PixelRegion.h.

74 { _s = _region->getSpanAt(_s.getY()+1); }
Span const getSpanAt(int y) const
int getY() const
Return the y-value.
Definition: Span.h:81

Friends And Related Function Documentation

friend class boost::iterator_core_access
friend

Definition at line 70 of file PixelRegion.h.

Member Data Documentation

PixelRegion const* lsst.afw.geom.ellipses::PixelRegion::Iterator::_region
private

Definition at line 87 of file PixelRegion.h.

Span lsst.afw.geom.ellipses::PixelRegion::Iterator::_s
private

Definition at line 86 of file PixelRegion.h.


The documentation for this class was generated from the following file: