lsst.log geaed405ab2+567f2e4b53
Loading...
Searching...
No Matches
lsst::log::detail::PyObjectPtr Class Reference

#include <PyObjectPtr.h>

Public Member Functions

 PyObjectPtr (PyObject *object=nullptr)
 PyObjectPtr (PyObjectPtr const &other)
 PyObjectPtr (PyObjectPtr &&other)
PyObjectPtroperator= (PyObjectPtr const &other)
PyObjectPtroperator= (PyObjectPtr &&other)
PyObjectPtroperator= (PyObject *object)
 operator PyObject * () const
PyObject * release ()
PyObject *& get ()
bool operator== (std::nullptr_t) const
bool operator!= (std::nullptr_t) const

Static Public Member Functions

static PyObjectPtr from_borrowed (PyObject *object)

Detailed Description

Smart pointer class for PyObject instances.

Constructor & Destructor Documentation

◆ PyObjectPtr()

lsst::log::detail::PyObjectPtr::PyObjectPtr ( PyObject * object = nullptr)
inlineexplicit

Construct a pointer from a regular "new" object reference.

Member Function Documentation

◆ from_borrowed()

PyObjectPtr lsst::log::detail::PyObjectPtr::from_borrowed ( PyObject * object)
inlinestatic

Wraps a "borrowed" object reference, reference counter is incremented.


The documentation for this class was generated from the following file: