LSSTApplications  17.0+116,17.0+12,17.0+66,18.0.0+30,18.0.0+6,18.0.0+71,18.0.0-4-g68ffd23+1,18.1.0-1-g0001055+9,18.1.0-1-g03d53ef+2,18.1.0-1-g1349e88+46,18.1.0-1-g2505f39+36,18.1.0-1-g5315e5e+2,18.1.0-1-g5e4b7ea+11,18.1.0-1-g7e8fceb+2,18.1.0-1-g85f8cd4+39,18.1.0-1-g8ff0b9f,18.1.0-1-gd55f500+27,18.1.0-13-gfe4edf0b+2,18.1.0-14-g259bd21+11,18.1.0-16-gf53fc9f,18.1.0-2-g5f9922c+15,18.1.0-2-gd3b74e5+4,18.1.0-2-gfbf3545+23,18.1.0-2-gfefb8b5+35,18.1.0-23-ga5eeeb214,18.1.0-24-gd64d31bc,18.1.0-24-ged780bc,18.1.0-3-g52aa583+18,18.1.0-3-g8ea57af,18.1.0-3-g8f4a2b1+33,18.1.0-3-gb69f684+32,18.1.0-4-g1ee41a7+2,18.1.0-5-g6dbcb01+32,18.1.0-6-gae77429,18.1.0-7-g9d75d83,18.1.0-7-gae09a6d+20,18.1.0-8-gc69d46e+18,18.1.0-9-g1af92ce,18.1.0-9-gee19f03+4,w.2019.44
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...