LSSTApplications  18.0.0+74,19.0.0+5,19.0.0+75,19.0.0+9,19.0.0-1-g20d9b18+30,19.0.0-1-g49a97f9+3,19.0.0-1-g8c57eb9+30,19.0.0-1-g9a028c0+10,19.0.0-1-ga72da6b+3,19.0.0-1-gb77924a+11,19.0.0-1-gbfe0924+62,19.0.0-1-ge272bc4+30,19.0.0-1-gefe1d0d+46,19.0.0-1-gf8cb8b4,19.0.0-14-g7511ce4+2,19.0.0-16-g3dc1a33c+2,19.0.0-17-g59f0e8a,19.0.0-17-g9c22e3c+6,19.0.0-18-g2c901ce+6,19.0.0-18-g35bb99870+1,19.0.0-19-g2772d4a+5,19.0.0-19-g85fbfd3+5,19.0.0-2-g0d9f9cd+70,19.0.0-2-g260436e+50,19.0.0-2-g9675b69+3,19.0.0-2-gbcc4de1,19.0.0-2-gd6f004e+2,19.0.0-2-gde8e5e3+4,19.0.0-2-gff6972b+14,19.0.0-3-ga642a0f,19.0.0-3-gf3b1435+2,19.0.0-4-gac56cce+13,19.0.0-47-g0e06596+2,19.0.0-49-g6858528b,19.0.0-5-g66946eb+2,19.0.0-5-gd8897ba+2,19.0.0-7-g3343160,19.0.0-7-g686a884+4,19.0.0-7-g886f805+2,w.2020.17
LSSTDataManagementBasePackage
Classes | Namespaces | Functions
python.h File Reference
#include "pybind11/pybind11.h"
#include <cstddef>
#include <memory>
#include <string>
#include <sstream>
#include <utility>
#include <list>
#include <functional>
#include <iostream>
#include "lsst/pex/exceptions.h"
#include "lsst/pex/exceptions/python/Exception.h"

Go to the source code of this file.

Classes

class  lsst::utils::python::WrapperCollection
 A helper class for subdividing pybind11 module across multiple translation units (i.e. More...
 

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...