LSSTApplications  21.0.0+1b62c9342b,21.0.0+4a36882ba2,21.0.0-1-ga51b5d4+2c88556dba,21.0.0-17-gf9a0284+69dd6c2060,21.0.0-2-g103fe59+d751821c91,21.0.0-2-g1367e85+ad4ce71c09,21.0.0-2-g2909d54+4a36882ba2,21.0.0-2-g45278ab+1b62c9342b,21.0.0-2-g4bc9b9f+56aff0fea6,21.0.0-2-g5242d73+ad4ce71c09,21.0.0-2-g54e2caa+dde81d9b0d,21.0.0-2-g66bcc37+905c13b855,21.0.0-2-g7f82c8f+ae0b31d2cf,21.0.0-2-g8dde007+5461f6ec49,21.0.0-2-g8f08a60+05ed0ab9e4,21.0.0-2-g973f35b+b1744c1cf5,21.0.0-2-ga326454+ae0b31d2cf,21.0.0-2-ga63a54e+c659dddc9d,21.0.0-2-ga885a99+4aa8b35973,21.0.0-2-gc738bc1+96c5b647eb,21.0.0-2-gde069b7+d0bdec52a8,21.0.0-2-ge17e5af+ad4ce71c09,21.0.0-2-ge712728+f9003e3bc5,21.0.0-2-gecfae73+e945072e23,21.0.0-2-gfc62afb+ad4ce71c09,21.0.0-21-g006371a9+8d72e8ff79,21.0.0-3-g4c5b185+b08abf4bf6,21.0.0-3-g5051ac2+1b62c9342b,21.0.0-3-g6d51c4a+905c13b855,21.0.0-3-gaa929c8+2605bebd58,21.0.0-3-gd222c45+21ef063859,21.0.0-3-gd5de2f2+905c13b855,21.0.0-4-g8a80011+3e4520b944,21.0.0-5-gb7080ec+f575c71e2b,21.0.0-5-gcff38f6+b82b996a2d,21.0.0-6-gd3283ba+2605bebd58,21.0.0-8-g19111d86+0648bf24f8,21.0.0-8-gd9c33f4a0+ec3713772a,w.2021.03
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...