LSST Applications  21.0.0-137-gb83a959d+ed3655b548,22.0.0+11a2aa21cd,22.0.0+5e01a48229,22.0.0+64c1bc5aa5,22.0.0+7232f61ff9,22.0.0+7436aa99d4,22.0.0+afa7c1de23,22.0.0+d9cf0fe214,22.0.1-1-g1b65d06+81c16f1bcf,22.0.1-1-g7058be7+1cf78af69b,22.0.1-1-g7dab645+93c83ccaec,22.0.1-1-g87000a6+7b3a3f865e,22.0.1-1-g8760c09+64c1bc5aa5,22.0.1-1-g949febb+64c1bc5aa5,22.0.1-1-gc1211bb+b156e9107e,22.0.1-11-g977d919+4b051e1311,22.0.1-11-gc8c9b3f+0f19af481c,22.0.1-15-g1be395cc+b40e11d0d4,22.0.1-15-ge634287+afa7c1de23,22.0.1-19-g9283e855+359fbd1aa2,22.0.1-2-g8ef0a89+afa7c1de23,22.0.1-2-g92698f7+d9cf0fe214,22.0.1-2-gb66926d+7232f61ff9,22.0.1-2-gcb770ba+b9ea777ba7,22.0.1-24-g2e899d296+b05a4897c9,22.0.1-3-g7aa11f2+afa7c1de23,22.0.1-3-g8c1d971+f253ffa91f,22.0.1-3-g997b569+6ee09d4599,22.0.1-4-g1930a60+6871d0c7f6,22.0.1-4-g5b7b756+6b209d634c,22.0.1-6-ga02864e+6871d0c7f6,22.0.1-7-g3402376+61492745ce,22.0.1-9-ga0ac561+381b27b2e4,master-g5f2689bdc5+5e01a48229,w.2021.35
LSST Data Management Base Package
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...