File PySharedPtr.h

Functions

PYBIND11_DECLARE_HOLDER_TYPE(T, lsst::utils::python::PySharedPtr<T>)
namespace lsst

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Class for a simple mapping implementing a generic AstrometryTransform.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace utils
namespace python
template<typename T>
class PySharedPtr
#include <PySharedPtr.h>

A shared pointer that tracks both a C++ object and its associated PyObject.

Each group of PySharedPtr for a given object collectively counts as one reference to that object for the purpose of Python garbage collection.

A PySharedPtr is implicitly convertible to and from a std::shared_ptr to minimize API impact. Any shared_ptr created this way will (I think) keep the Python reference alive, as described above.

Public Types

template<>
using element_type = T

Public Functions

PySharedPtr(T *const ptr)

Create a pointer that counts as an extra reference in the Python environment.

Parameters
  • ptr: a pointer to a pybind11-managed object.

PySharedPtr(PySharedPtr const&)
PySharedPtr(PySharedPtr&&)
PySharedPtr &operator=(PySharedPtr const&)
PySharedPtr &operator=(PySharedPtr&&)
~PySharedPtr()
PySharedPtr(std::shared_ptr<T> r)
operator std::shared_ptr<T>()
T *get() const

Private Members

std::shared_ptr<T> _impl