LSST Applications g011c388f00+c533e7e796,g0265f82a02+71b8ded0d6,g16a3bce237+71b8ded0d6,g2079a07aa2+b9108c1c87,g2bbee38e9b+71b8ded0d6,g337abbeb29+71b8ded0d6,g3ddfee87b4+efeeb9cceb,g44050f54f7+816a004954,g4cf46543a9+ac9bf1619d,g50ff169b8f+8309cf5058,g52b1c1532d+43dac7135f,g858d7b2824+816a004954,g8a8a8dda67+43dac7135f,g99855d9996+36230435de,g9cb17f706c+56afb287bb,g9ddcbc5298+389b8f2b7e,ga1e77700b3+4bafba478f,ga8c6da7877+9a92598c84,gae46bcf261+71b8ded0d6,gb0e22166c9+713927f999,gb700894bec+0b6c79d923,gb8350603e9+a03320826c,gba4ed39666+e464e2e6f0,gbeb006f7da+8cd302297b,gc86a011abf+816a004954,gcf0d15dbbd+efeeb9cceb,gd0e876f1fb+efeeb9cceb,gd162630629+3eacc90e0c,gd44f2fa1a7+82b768a15d,gd8a3c24633+eaa4ad6639,gdaeeff99f8+6b435c3f92,ge2eec9bf53+fad368631c,ge79ae78c31+71b8ded0d6,gee10cc3b42+43dac7135f,gf1cff7945b+816a004954,w.2024.08
LSST Data Management Base Package
|
#include "pybind11/pybind11.h"
#include <limits>
#include <sstream>
#include <stdexcept>
#include "lsst/sphgeom/Region.h"
Go to the source code of this file.
Namespaces | |
namespace | lsst |
namespace | lsst::sphgeom |
namespace | lsst::sphgeom::python |
Functions | |
ptrdiff_t | lsst::sphgeom::python::convertIndex (ptrdiff_t len, pybind11::int_ i) |
Convert a Python index i over a sequence with length len to a non-negative (C++ style) index, and perform a bounds-check. | |
pybind11::bytes | lsst::sphgeom::python::encode (Region const &self) |
Encode a Region as a pybind11 bytes object. | |
template<typename R > | |
std::unique_ptr< R > | lsst::sphgeom::python::decode (pybind11::bytes bytes) |
Decode a Region from a pybind11 bytes object. | |
template<typename S > | |
std::vector< std::unique_ptr< Region > > | lsst::sphgeom::python::convert_region_sequence (S const &seq) |
Create a vector of Region (or Region-subclass) pointers by copying the regions from a sized Python iterable (e.g. | |