LSSTApplications  19.0.0-14-gb0260a2+72aee35b6e,20.0.0+117106b506,20.0.0+30000fcb7e,20.0.0+3fc9f7ad86,20.0.0+477e9a1faa,20.0.0+76dc209b92,20.0.0+89c8776288,20.0.0+8e4ccb55f2,20.0.0+9457a788fe,20.0.0+95dc160249,20.0.0+99c1012587,20.0.0+b36b3b23ee,20.0.0+c93f448344,20.0.0+e5c4976b0d,20.0.0+eb0b68971d,20.0.0+ef667cdf05,20.0.0+f3c6aa4fa8,20.0.0+f45b7d88f4,20.0.0+f508b7937b,20.0.0-1-g10df615+9535e95112,20.0.0-1-g253301a+d3ed4cc2ab,20.0.0-1-g4d801e7+e2c0db9aca,20.0.0-1-g8a53f90+e0c9560612,20.0.0-1-gc96f8cb+d4044d9368,20.0.0-1-gd1c87d7+54d12611dd,20.0.0-1-gdb27ee5+f68f2de9db,20.0.0-11-gda4966f+6b932940cf,20.0.0-16-g6654009b+9733cd1e28,20.0.0-2-g25c5319+3eadce6b96,20.0.0-2-gec03fae+4d82fa78bb,20.0.0-25-g163437c+4e1a704cd6,20.0.0-3-gd2e950e+f45b7d88f4,20.0.0-4-g4a2362f+f45b7d88f4,20.0.0-4-gde602ef96+1a0e0454d8,20.0.0-4-ge48a6ca+4e088cdcdc,20.0.0-6-g01203fff+1e89328230,20.0.0-6-g9bcb941+a3f076f801,20.0.0-7-g3c4151b+8b45a8c617,20.0.0-7-gb92c176+129626b99a,w.2020.31
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...