LSSTApplications  16.0+22,16.0-1-g14407aa+7,16.0-1-g16dcc35+1,16.0-1-g928b041+1,16.0-1-g9884240+1,16.0-1-gce273f5+1,16.0-10-g0b41441+3,16.0-10-g549e159,16.0-11-ge4eb5c1,16.0-11-gf74ee13d,16.0-11-gf9130ea+4,16.0-2-g0febb12,16.0-2-g636dfb1,16.0-2-g839ba83+11,16.0-2-g9d5294e+8,16.0-25-g88abbd732,16.0-3-g0e3a094+1,16.0-3-g19f2ef8,16.0-3-g3806c63+1,16.0-3-g5dc86b7+11,16.0-3-g6923fb6+1,16.0-3-g9515088+5,16.0-3-gcfd6c53+6,16.0-4-g347813e+5,16.0-4-g50d071e+1,16.0-4-g5f3a788,16.0-4-g6c14c47+7,16.0-4-g7690030+6,16.0-4-gd6aeece+1,16.0-4-ge3254b7,16.0-5-gb3f8a4b+5,16.0-6-g9134ce5,16.0-6-gbe2f956+3,16.0-6-gf0acd13,16.0-7-g3dac777+5,16.0-8-g4aca173+6,16.0-9-g377a976,16.0-9-gc30114dc+3,16.0-9-gf78d8dd,w.2018.32
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...