LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Attributes | List of all members
lsst::afw::math::detail::RowOfKernelImagesForRegion Class Reference

A row of KernelImagesForRegion. More...

#include <Convolve.h>

Public Types

typedef std::vector
< boost::shared_ptr
< KernelImagesForRegion > > 
RegionList
 
typedef RegionList::iterator Iterator
 
typedef RegionList::const_iterator ConstIterator
 

Public Member Functions

 RowOfKernelImagesForRegion (int nx, int ny)
 Construct a RowOfKernelImagesForRegion. More...
 
RegionList::const_iterator begin () const
 Return the begin iterator for the list. More...
 
RegionList::const_iterator end () const
 Return the end iterator for the list. More...
 
RegionList::iterator begin ()
 Return the begin iterator for the list. More...
 
RegionList::iterator end ()
 Return the end iterator for the list. More...
 
boost::shared_ptr
< KernelImagesForRegion
front ()
 Return the first region in the list. More...
 
boost::shared_ptr
< KernelImagesForRegion
back ()
 Return the last region in the list. More...
 
int getNX () const
 
int getNY () const
 
int getYInd () const
 
boost::shared_ptr
< KernelImagesForRegion const > 
getRegion (int ind) const
 get the specified region (range-checked) More...
 
bool hasData () const
 
bool isLastRow () const
 
int incrYInd ()
 

Private Attributes

int _nx
 
int _ny
 
int _yInd
 
RegionList _regionList
 

Detailed Description

A row of KernelImagesForRegion.

Intended for iterating over subregions of a KernelImagesForRegion using computeNextRow.

Definition at line 205 of file Convolve.h.

Member Typedef Documentation

Definition at line 209 of file Convolve.h.

Definition at line 208 of file Convolve.h.

Definition at line 207 of file Convolve.h.

Constructor & Destructor Documentation

lsst::afw::math::detail::RowOfKernelImagesForRegion::RowOfKernelImagesForRegion ( int  nx,
int  ny 
)

Construct a RowOfKernelImagesForRegion.

Parameters
nxnumber of columns
nynumber of rows

Definition at line 335 of file KernelImagesForRegion.cc.

338 :
339  _nx(nx),
340  _ny(ny),
341  _yInd(-1),
342  _regionList(nx)
343 {
344  if ((nx < 1) || (ny < 1)) {
345  std::ostringstream os;
346  os << "nx = " << nx << " and/or ny = " << ny << " < 1";
347  throw LSST_EXCEPT(pexExcept::InvalidParameterError, os.str());
348  };
349 }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46

Member Function Documentation

boost::shared_ptr< KernelImagesForRegion > lsst::afw::math::detail::RowOfKernelImagesForRegion::back ( )
inline

Return the last region in the list.

Definition at line 235 of file Convolve.h.

235 { return _regionList.back(); };
RegionList::const_iterator lsst::afw::math::detail::RowOfKernelImagesForRegion::begin ( ) const
inline

Return the begin iterator for the list.

Definition at line 215 of file Convolve.h.

215 { return _regionList.begin(); };
RegionList::iterator lsst::afw::math::detail::RowOfKernelImagesForRegion::begin ( )
inline

Return the begin iterator for the list.

Definition at line 223 of file Convolve.h.

223 { return _regionList.begin(); };
RegionList::const_iterator lsst::afw::math::detail::RowOfKernelImagesForRegion::end ( ) const
inline

Return the end iterator for the list.

Definition at line 219 of file Convolve.h.

219 { return _regionList.end(); };
RegionList::iterator lsst::afw::math::detail::RowOfKernelImagesForRegion::end ( )
inline

Return the end iterator for the list.

Definition at line 227 of file Convolve.h.

227 { return _regionList.end(); };
boost::shared_ptr< KernelImagesForRegion > lsst::afw::math::detail::RowOfKernelImagesForRegion::front ( )
inline

Return the first region in the list.

Definition at line 231 of file Convolve.h.

231 { return _regionList.front(); };
int lsst::afw::math::detail::RowOfKernelImagesForRegion::getNX ( ) const
inline

Definition at line 236 of file Convolve.h.

int lsst::afw::math::detail::RowOfKernelImagesForRegion::getNY ( ) const
inline

Definition at line 237 of file Convolve.h.

boost::shared_ptr< KernelImagesForRegion const> lsst::afw::math::detail::RowOfKernelImagesForRegion::getRegion ( int  ind) const
inline

get the specified region (range-checked)

Exceptions
std::range_errorif ind out of range

Definition at line 244 of file Convolve.h.

244 { return _regionList.at(ind); };
int lsst::afw::math::detail::RowOfKernelImagesForRegion::getYInd ( ) const
inline

Definition at line 238 of file Convolve.h.

bool lsst::afw::math::detail::RowOfKernelImagesForRegion::hasData ( ) const
inline

Definition at line 245 of file Convolve.h.

245 { return static_cast<bool>(_regionList[0]); };
int lsst::afw::math::detail::RowOfKernelImagesForRegion::incrYInd ( )
inline

Definition at line 247 of file Convolve.h.

bool lsst::afw::math::detail::RowOfKernelImagesForRegion::isLastRow ( ) const
inline

Member Data Documentation

int lsst::afw::math::detail::RowOfKernelImagesForRegion::_nx
private

Definition at line 247 of file Convolve.h.

int lsst::afw::math::detail::RowOfKernelImagesForRegion::_ny
private

Definition at line 251 of file Convolve.h.

RegionList lsst::afw::math::detail::RowOfKernelImagesForRegion::_regionList
private

Definition at line 253 of file Convolve.h.

int lsst::afw::math::detail::RowOfKernelImagesForRegion::_yInd
private

Definition at line 252 of file Convolve.h.


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