LSSTApplications  16.0-10-g6e41885+3,16.0-11-g09ed895+1,16.0-11-g9bb73b2+1,16.0-12-g5c924a4+1,16.0-14-g6c7ed55+24,16.0-14-g9a974b3,16.0-15-ga29f190+1,16.0-15-gdd5ca33,16.0-17-g31abd91+2,16.0-17-g7d7456e+2,16.0-17-g7e0e4ff+18,16.0-17-ga3d2e9f+8,16.0-17-gd4cf91f+2,16.0-2-g0febb12+21,16.0-2-g9d5294e+67,16.0-2-ga8830df+5,16.0-20-g21842373+2,16.0-21-g91a1c50,16.0-26-gc0e79ff+5,16.0-27-ge118ca2+9,16.0-3-ge00e371+29,16.0-4-g18f3627+11,16.0-4-g5f3a788+20,16.0-4-ga3eb747+10,16.0-4-gabf74b7+24,16.0-4-gb13d127+5,16.0-48-gf310332e,16.0-5-g27fb78a+2,16.0-5-g6a53317+29,16.0-5-gb3f8a4b+82,16.0-6-g9321be7+4,16.0-6-gcbc7b31+37,16.0-6-gf49912c+24,16.0-69-ga986782ad,16.0-7-gd2eeba5+46,16.0-8-g21fd5fe+24,16.0-8-g3a9f023+18,16.0-8-g4734f7a,16.0-8-g5858431+1,16.0-9-gf5c1f43+6,master-gdbf645fb6d+5,w.2018.51
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...