LSST Applications g063fba187b+eddd1b24d7,g0f08755f38+4a855ab515,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+062a45aee3,g1dcb35cd9c+45d3fa5522,g20f6ffc8e0+4a855ab515,g217e2c1bcf+f55e51b560,g28da252d5a+7d8e536cc7,g2bbee38e9b+2d92fc7d83,g2bc492864f+2d92fc7d83,g3156d2b45e+6e55a43351,g32e5bea42b+625186cc6b,g347aa1857d+2d92fc7d83,g35bb328faa+a8ce1bb630,g3a166c0a6a+2d92fc7d83,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+1af189bab1,g7af13505b9+7b6a50a2f8,g80478fca09+6174b7f182,g82479be7b0+5b71efbaf0,g858d7b2824+4a855ab515,g9125e01d80+a8ce1bb630,ga5288a1d22+61618a97c4,gb58c049af0+d64f4d3760,gc28159a63d+2d92fc7d83,gc5452a3dca+f4add4ffd5,gcab2d0539d+d9f5af7f69,gcf0d15dbbd+6c7e0a19ec,gda6a2b7d83+6c7e0a19ec,gdaeeff99f8+1711a396fd,ge79ae78c31+2d92fc7d83,gef2f8181fd+55fff6f525,gf0baf85859+c1f95f4921,gfa517265be+4a855ab515,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
Loading...
Searching...
No Matches
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}

◆ 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}

◆ 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}

◆ 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}

◆ makeGetter() [7/8]

template<typename T >
IterGetter< T > lsst::afw::geom::details::makeGetter ( T 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}

◆ makeGetter() [8/8]

template<typename T >
ConstantGetter< T > lsst::afw::geom::details::makeGetter ( T 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}

◆ variadicBoundChecker() [1/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 {
67 variadicBoundChecker(box, area, first);
68 variadicBoundChecker(box, area, x...);
69}
void variadicBoundChecker(lsst::geom::Box2I const box, int area, T const &x)

◆ variadicBoundChecker() [2/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}

◆ variadicIncrementPosition() [1/2]

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

Definition at line 77 of file SpanSetFunctorGetters.h.

◆ variadicIncrementPosition() [2/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}

◆ variadicSpanSetter() [1/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 {
56 variadicSpanSetter(spn, first);
57 variadicSpanSetter(spn, x...);
58}
void variadicSpanSetter(Span const spn, T &x)

◆ variadicSpanSetter() [2/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}