RefCountedPyObject#

Fully qualified name: usd_optimize::RefCountedPyObject

class RefCountedPyObject#

A simple RAII wrapper for a PyObject* that increments the reference count when it is constructed and decrements the reference count when it goes out of scope.

Public Functions

inline RefCountedPyObject()#
inline RefCountedPyObject(PyObject *pyObject)#
inline RefCountedPyObject(const RefCountedPyObject &other)#
inline RefCountedPyObject &operator=(PyObject *other)#
inline RefCountedPyObject &operator=(
const RefCountedPyObject &other,
)#
inline ~RefCountedPyObject()#

Public Members

PyObject *obj#