LSST Applications 24.1.0,g009b5efdf7+c6932254d0,g0530b470b1+c6932254d0,g1011452fe8+91250f09a0,g131b30d954+f6e951a35a,g1e66b94187+416cc91f11,g2f36b36c37+6b96805cb3,g315bf1e6db+497b502411,g3b78743a05+c69886b81d,g3f8e1907dc+2986c7237a,g498fc93c42+366e3667d5,g4e8ce4af8a+d61c1479ad,g4f742bbdcc+c6932254d0,g620d7167b4+c9731a2194,g7750d4b5ea+f0a1800e64,g7d20b33f1e+2e4319cab9,g807e3ba568+f84f5c0727,g8479130295+36d3522aec,g883b199ddb+366e3667d5,g925d670809+f1523b3439,ga1d33178ee+c6932254d0,ga850d4fe91+416cc91f11,ga8547c2492+feacecf5fe,gaa9e307f6b+de2e8d6e75,gab650310a1+366e3667d5,gb34e52d7d4+416cc91f11,gb469cb74ca+8566bf350b,gb94f486bb8+dfcf4c526b,gc25e22d396+27a4e0517b,gc3c1122503+416cc91f11,gca804b0f43+f0a1800e64,gd4112516d0+c6932254d0,gd630573b98+c6932254d0,ge482522685+b500e6e25f,gee1b1095dd+1c688b154e
LSST Data Management Base Package
Loading...
Searching...
No Matches
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::cpputils::python::WrapperCollection
 A helper class for subdividing pybind11 module across multiple translation units (i.e. More...
 

Namespaces

namespace  lsst
 
namespace  lsst::cpputils
 
namespace  lsst::cpputils::python
 

Functions

template<typename T , typename PyClass >
void lsst::cpputils::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::cpputils::python::addOutputOp (PyClass &cls, std::string const &method)
 Add __str__ or __repr__ method implemented by operator<<. More...
 
template<class PyClass >
void lsst::cpputils::python::addHash (PyClass &cls)
 Add __hash__ method implemented by std::hash. More...
 
std::size_t lsst::cpputils::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::cpputils::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...