lsst.log
22.0.0-3-gd2ef7b4+782b3b5ca8
|
#include <PyObjectPtr.h>
Public Member Functions | |
PyObjectPtr (PyObject *object=nullptr) | |
PyObjectPtr (PyObjectPtr const &other) | |
PyObjectPtr (PyObjectPtr &&other) | |
PyObjectPtr & | operator= (PyObjectPtr const &other) |
PyObjectPtr & | operator= (PyObjectPtr &&other) |
PyObjectPtr & | operator= (PyObject *object) |
operator PyObject * () const | |
PyObject * | release () |
PyObject *& | get () |
bool | operator== (nullptr_t) const |
bool | operator!= (nullptr_t) const |
Static Public Member Functions | |
static PyObjectPtr | from_borrowed (PyObject *object) |
Smart pointer class for PyObject instances.
|
inlineexplicit |
Construct a pointer from a regular "new" object reference.
|
inlinestatic |
Wraps a "borrowed" object reference, reference counter is incremented.