lsst.log g8479130295+36d3522aec
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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()

static 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: