LSST Applications g04a91732dc+78e6215e8b,g07dc498a13+97d95b5385,g1409bbee79+97d95b5385,g1a7e361dbc+97d95b5385,g1fd858c14a+05fbb309f5,g33399d78f5+e4334358cc,g35bb328faa+e55fef2c71,g384b62748c+f972c24389,g3bd4b5ce2c+501c4fe616,g3dabb73f91+a7e3687b5b,g44afde23fb+008c51a259,g53246c7159+e55fef2c71,g5477a8d5ce+bf3187b585,g60b5630c4e+8ac7d91166,g78460c75b0+8427c4cc8f,g786e29fd12+307f82e6af,g89139ef638+97d95b5385,g8b49a6ea8e+8ac7d91166,g8e3b232dfe+d0516451ec,g9125e01d80+e55fef2c71,g989de1cb63+97d95b5385,g9f33ca652e+e11c39fbe9,gaaedd4e678+97d95b5385,gabe3b4be73+9c0c3c7524,gb1101e3267+907f31a7a8,gb58c049af0+28045f66fd,gbbc2d44aac+8ac7d91166,gca43fec769+e55fef2c71,gce7788e931+2f638802eb,gcf25f946ba+e4334358cc,gd6cbbdb0b4+a0407a8a92,gdd9490a0bf+f93345285a,gde0f65d7ad+188e34327d,ge278dab8ac+1d4309d908,geab183fbe5+8ac7d91166,gecb8035dfe+4dc72c1cf9,gfba249425e+e55fef2c71,gfe7187db8c+c016983054,v28.0.1.rc1
LSST Data Management Base Package
|
#include "pybind11/pybind11.h"
#include <limits>
#include <sstream>
#include <stdexcept>
#include <cstdint>
#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. | |