LSSTApplications  11.0-24-g0a022a1,12.1-4-g110c6f4+31,15.0+15,15.0+9,15.0-1-g19261fa+7,15.0-1-g60afb23+15,15.0-1-g615e0bb+7,15.0-1-g6668b0b+5,15.0-1-g788a293+15,15.0-1-ga91101e+15,15.0-1-gae1598d+8,15.0-1-gd076f1f+14,15.0-1-gdf18595+2,15.0-1-gf4f1c34+8,15.0-2-g100d730+8,15.0-2-g18f3f21+9,15.0-2-g20c4630+3,15.0-2-g35685a8+10,15.0-2-g5dfaa72+3,15.0-2-gf38729e+9,15.0-23-g309a1dfe0+1,15.0-3-g150fc43+18,15.0-3-g6f085af+8,15.0-3-g707930d,15.0-3-g9103c06+8,15.0-3-ga03b4ca+21,15.0-3-gaec6799+5,15.0-4-g5589a47+1,15.0-4-g654b129+13,15.0-4-gff20472+18,15.0-5-g0db841d+2,15.0-5-g23e394c+2,15.0-6-g4cfb9db,15.0-6-g9a9df217+10,15.0-8-g0cd0e28,15.0-8-g11095dd+1,15.0-8-g306a5613+1
LSSTDataManagementBasePackage
Namespaces | Functions
python.h File Reference
#include "pybind11/pybind11.h"
#include <cstddef>
#include <memory>
#include <string>
#include <sstream>
#include <utility>
#include "lsst/pex/exceptions.h"

Go to the source code of this file.

Namespaces

 lsst
 A base class for image defects.
 
 lsst::utils
 
 lsst::utils::python
 

Functions

template<typename T , typename PyClass >
void lsst::utils::python::addSharedPtrEquality (PyClass &cls)
 Add __eq__ and __ne__ methods based on two std::shared_ptr<T> pointing to the same address. More...
 
template<class PyClass >
void lsst::utils::python::addOutputOp (PyClass &cls, std::string const &method)
 Add __str__ or __repr__ method implemented by operator<<. More...
 
template<class PyClass >
void lsst::utils::python::addHash (PyClass &cls)
 Add __hash__ method implemented by std::hash. More...
 
std::size_t lsst::utils::python::cppIndex (std::ptrdiff_t size, std::ptrdiff_t i)
 Compute a C++ index from a Python index (negative values count from the end) and range-check. More...
 
std::pair< std::size_t, std::size_tlsst::utils::python::cppIndex (std::ptrdiff_t size_i, std::ptrdiff_t size_j, std::ptrdiff_t i, std::ptrdiff_t j)
 Compute a pair of C++ indices from a pair of Python indices (negative values count from the end) and range-check. More...