LSSTApplications  17.0+10,17.0+51,17.0+87,18.0.0+10,18.0.0+15,18.0.0+33,18.0.0+4,18.0.0+6,18.0.0-2-ge43143a+6,18.1.0-1-g0001055+2,18.1.0-1-g0896a44+9,18.1.0-1-g1349e88+8,18.1.0-1-g2505f39+6,18.1.0-1-g380d4d4+8,18.1.0-1-g5e4b7ea+2,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+6,18.1.0-1-g9a6769a+3,18.1.0-1-ga1a4c1a+5,18.1.0-1-gc037db8+2,18.1.0-1-gd55f500+3,18.1.0-1-ge10677a+6,18.1.0-10-g73b8679e+11,18.1.0-11-g311e899+7,18.1.0-12-gc95f69a+7,18.1.0-13-g451e75588,18.1.0-2-g31c43f9+6,18.1.0-2-g9c63283+8,18.1.0-2-gdf0b915+8,18.1.0-2-gf03bb23+2,18.1.0-3-g2e29e3d+9,18.1.0-3-g52aa583+3,18.1.0-3-g8f4a2b1,18.1.0-3-g9cb968e+7,18.1.0-4-gd2e8982+9,18.1.0-5-g510c42a+7,18.1.0-5-gaeab27e+8,18.1.0-6-gdda7f3e+10,18.1.0-8-g4084bf03,w.2019.33
LSSTDataManagementBasePackage
Classes | Functions
lsst::afw::geom::details Namespace Reference

Classes

class  AnyBitSetFunctor
 
class  ConstantGetter
 
class  FlatNdGetter
 
class  ImageNdGetter
 
struct  is_iterator
 
struct  is_iterator< T, typename std::enable_if< !std::is_same< typename std::iterator_traits< T >::value_type, void >::value >::type >
 
class  IterGetter
 

Functions

template<typename T >
void variadicSpanSetter (Span const spn, T &x)
 
template<typename T , typename... Args>
void variadicSpanSetter (Span const spn, T &first, Args &... x)
 
template<typename T >
void variadicBoundChecker (lsst::geom::Box2I const box, int area, T const &x)
 
template<typename T , typename... Args>
void variadicBoundChecker (lsst::geom::Box2I const box, int area, T const &first, Args &... x)
 
template<typename T >
void variadicIncrementPosition (T &x)
 
template<typename T , typename... Args>
void variadicIncrementPosition (T &first, Args &... x)
 
template<typename T , int inA, int inC>
FlatNdGetter< T, inA, inC > makeGetter (FlatNdGetter< T, inA, inC > &getter)
 
template<typename T , int inA, int inB>
ImageNdGetter< T, inA, inB > makeGetter (ImageNdGetter< T, inA, inB > &getter)
 
template<typename T >
ImageNdGetter< T, 2, 1 > makeGetter (lsst::afw::image::Image< T > &image)
 
template<typename T >
ImageNdGetter< T const, 2, 1 > makeGetter (lsst::afw::image::Image< T > const &image)
 
template<typename T >
ImageNdGetter< T, 2, 1 > makeGetter (lsst::afw::image::Mask< T > &image)
 
template<typename T >
ImageNdGetter< T const, 2, 1 > makeGetter (lsst::afw::image::Mask< T > const &image)
 
template<typename T >
ConstantGetter< T > makeGetter (T num, typename std::enable_if< std::is_arithmetic< T >::value, int >::type=0)
 
template<typename T >
IterGetter< T > makeGetter (T iter, typename std::enable_if< is_iterator< T >::value, int >::type=0)
 

Function Documentation

◆ makeGetter() [1/8]

template<typename T , int inA, int inC>
FlatNdGetter<T, inA, inC> lsst::afw::geom::details::makeGetter ( FlatNdGetter< T, inA, inC > &  getter)

Definition at line 239 of file SpanSetFunctorGetters.h.

239  {
240  // This function simply passes through any FlatNdGetter passed to it
241  return getter;
242 }

◆ makeGetter() [2/8]

template<typename T , int inA, int inB>
ImageNdGetter<T, inA, inB> lsst::afw::geom::details::makeGetter ( ImageNdGetter< T, inA, inB > &  getter)

Definition at line 245 of file SpanSetFunctorGetters.h.

245  {
246  // This function simply passes though any imageNdGetter passed to it
247  return getter;
248 }

◆ makeGetter() [3/8]

template<typename T >
ImageNdGetter<T, 2, 1> lsst::afw::geom::details::makeGetter ( lsst::afw::image::Image< T > &  image)

Definition at line 251 of file SpanSetFunctorGetters.h.

251  {
252  // Function to create a ndarray getter from an afw image
253  return ImageNdGetter<T, 2, 1>(image.getArray(), image.getXY0());
254 }
lsst::geom::Point2I getXY0() const
Return the image&#39;s origin.
Definition: ImageBase.h:340

◆ makeGetter() [4/8]

template<typename T >
ImageNdGetter<T const, 2, 1> lsst::afw::geom::details::makeGetter ( lsst::afw::image::Image< T > const &  image)

Definition at line 257 of file SpanSetFunctorGetters.h.

257  {
258  // Function to create a ndarray getter from an afw image
259  return ImageNdGetter<T const, 2, 1>(image.getArray(), image.getXY0());
260 }
lsst::geom::Point2I getXY0() const
Return the image&#39;s origin.
Definition: ImageBase.h:340

◆ makeGetter() [5/8]

template<typename T >
ImageNdGetter<T, 2, 1> lsst::afw::geom::details::makeGetter ( lsst::afw::image::Mask< T > &  image)

Definition at line 263 of file SpanSetFunctorGetters.h.

263  {
264  // Function to create a ndarray getter from an afw image
265  return ImageNdGetter<T, 2, 1>(image.getArray(), image.getXY0());
266 }
lsst::geom::Point2I getXY0() const
Return the image&#39;s origin.
Definition: ImageBase.h:340

◆ makeGetter() [6/8]

template<typename T >
ImageNdGetter<T const, 2, 1> lsst::afw::geom::details::makeGetter ( lsst::afw::image::Mask< T > const &  image)

Definition at line 269 of file SpanSetFunctorGetters.h.

269  {
270  // Function to create a ndarray getter from an afw image
271  return ImageNdGetter<T const, 2, 1>(image.getArray(), image.getXY0());
272 }
lsst::geom::Point2I getXY0() const
Return the image&#39;s origin.
Definition: ImageBase.h:340

◆ makeGetter() [7/8]

template<typename T >
ConstantGetter<T> lsst::afw::geom::details::makeGetter ( num,
typename std::enable_if< std::is_arithmetic< T >::value, int >::type  = 0 
)

Definition at line 275 of file SpanSetFunctorGetters.h.

275  {
276  // Function to create a getter for constant numeric types. Use template type checking to ensure the
277  // type is an integral type, or floating point type
278  return ConstantGetter<T>(num);
279 }

◆ makeGetter() [8/8]

template<typename T >
IterGetter<T> lsst::afw::geom::details::makeGetter ( iter,
typename std::enable_if< is_iterator< T >::value, int >::type  = 0 
)

Definition at line 294 of file SpanSetFunctorGetters.h.

294  {
295  // Use defined type trait checker to create an iterator getter if the template is an iterator type
296  return IterGetter<T>(iter);
297 }

◆ variadicBoundChecker() [1/2]

template<typename T >
void lsst::afw::geom::details::variadicBoundChecker ( lsst::geom::Box2I const  box,
int  area,
T const &  x 
)

Definition at line 61 of file SpanSetFunctorGetters.h.

61  {
62  x.checkExtents(box, area);
63 }
double x

◆ variadicBoundChecker() [2/2]

template<typename T , typename... Args>
void lsst::afw::geom::details::variadicBoundChecker ( lsst::geom::Box2I const  box,
int  area,
T const &  first,
Args &...  x 
)

Definition at line 66 of file SpanSetFunctorGetters.h.

66  {
68  variadicBoundChecker(box, area, x...);
69 }
void variadicBoundChecker(lsst::geom::Box2I const box, int area, T const &first, Args &... x)
double x

◆ variadicIncrementPosition() [1/2]

template<typename T >
void lsst::afw::geom::details::variadicIncrementPosition ( T &  x)

Definition at line 72 of file SpanSetFunctorGetters.h.

72  {
73  x.increment();
74 }
double x

◆ variadicIncrementPosition() [2/2]

template<typename T , typename... Args>
void lsst::afw::geom::details::variadicIncrementPosition ( T &  first,
Args &...  x 
)

Definition at line 77 of file SpanSetFunctorGetters.h.

77  {
80 }
double x
void variadicIncrementPosition(T &first, Args &... x)

◆ variadicSpanSetter() [1/2]

template<typename T >
void lsst::afw::geom::details::variadicSpanSetter ( Span const  spn,
T &  x 
)

Definition at line 50 of file SpanSetFunctorGetters.h.

50  {
51  x.setSpan(spn);
52 }
double x

◆ variadicSpanSetter() [2/2]

template<typename T , typename... Args>
void lsst::afw::geom::details::variadicSpanSetter ( Span const  spn,
T &  first,
Args &...  x 
)

Definition at line 55 of file SpanSetFunctorGetters.h.

55  {
57  variadicSpanSetter(spn, x...);
58 }
double x
void variadicSpanSetter(Span const spn, T &first, Args &... x)