Class lsst::utils::python::PySharedPtr¶
- 
template<typename 
T>
classPySharedPtr¶ 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_ptrcreated this way will (I think) keep the Python reference alive, as described above.